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 |
Explain about opening notepad in QTP and writing of test result in notepad?
what is vmodel?advantages and disadvantages of vmodel?
how do we know whether all objects are stored in the object repository or not? how can we know if a particular object is not stored in the repository?
Hi, Can any body please tell me how to create framework in qtp & where i can get some material to learn about it. regards, rahulT
Using QTP checkpoint, where do you store your expected Properties of the object which later compares with the actual properties of the object???
In QTP 8.2 there are lot of check points is this same in latest version QTP 9.5 ?
What are the Features & Benefits of Quick Test Pro ?
Hi all, I am using windows vista, I am in the process of learning QTP. When ever I try to work with insert mode in flight application , i am getting the error of 'Operation must use an update table query, fractional truncation(null) error. Can anyone help me regarding this?
Is it possible to change the property value at runtime? How it is possible?
While recording a login window QTP is identifying only parent window,then how can u identify the child objects.
I Selected for TCS-Chennai(Contract to hire) position plz suggest me whether i have to join or not
How to define array in qtp?