how to write vbscript on web applications in qtp. explian
with one example?
Answers were Sorted based on User's Feedback
Answer / shyam.meghansh
systemutil.Run("http://www.rediffmail.com")
set BRO =Description.Create()
BRO("title").Value = "Welcome to Rediff.com India"
BRO("name").value ="Welcome to Rediff.com India"
BRO("openedbytestingtool").value= true
Set PG =Description.Create()
PG("title").value="Welcome to Rediff.com India"
PG("url").value="http://www.rediff.com/index.html"
Set UN =Description.Create()
UN("name").value= "login"
UN("Class Name").value ="WebEdit"
UN("type").value= "text"
UN("html tag").value="INPUT"
Set PWD =Description.Create()
PWD("name").value ="passwd"
PWD("Class Name").value="WebEdit"
PWD("type").value="password"
PWD("html tag").value="INPUT"
Set Login =Description.Create()
Login("name").value ="Go"
Login("Class Name").value="WebButton"
Login("type").value="submit"
Login("html tag").value="INPUT"
Login("value").value="GO"
Login("class").value="rmailgobtn"
temp= Browser("Welcome to Rediff.com").Page("Welcome to
Rediff.com").WebElement("ShockwaveFlash1").Exist
If temp= true Then
'Browser("Welcome to Rediff.com").Page("Welcome to
Rediff.com").WebElement("ShockwaveFlash1").
End If
Browser(BRO).Page(PG).WebEdit(UN).Set "shyam_sad"
Browser(BRO).Page(PG).WebEdit(PWD).Set "shyam"
Browser(BRO).Page(PG).WebButton(Login).Click
This is for DS.... for VB script u need put this is one
notepad and save it as .vbs file and run it
| Is This Answer Correct ? | 18 Yes | 11 No |
Answer / shyam.meghansh
Any more question mail me testingwithshyam@gmail.com
| Is This Answer Correct ? | 2 Yes | 2 No |
Answer / raghavenderraj
need clear information.if any one knows ans to this plz
forward
| Is This Answer Correct ? | 2 Yes | 3 No |
Answer / ajreddy
Hi
Using Vb script language u can write scripts in Descriptive
programing
Example u want to open Gmail acoount for that script is
systemutil.run "www.google.com"
| Is This Answer Correct ? | 2 Yes | 6 No |
what are the areas that cannot be tested using an automated tool? list a few
what is the Vbscript to connect Database
what are the mandatory properties for a tex boxc (scenario?)
It is regarding VBScript, how to export our function results to ExcelSheet through VBscripting. Ex: I have written add function, that result should export to Excel.
How can you merge two Object Repositories?
What are some test assets and related extensions of qtp?
How to make Shared object repository in qtp 9.1 and 9.2?
How can we parameterize our test, values in flat file. Ex:- Values in notepad, with that values i want to parameterize the test.
what is exit and entry criteria of automation testing. any body wants a real time script,please mail to me. contactno;9986435766
w is datatable
What is the Risk Analysis? Waht types of risk analysis are there?
Where to use function or action?