how to write vbscript on web applications in qtp. explian
with one example?

Answers were Sorted based on User's Feedback



how to write vbscript on web applications in qtp. explian with one example?..

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

how to write vbscript on web applications in qtp. explian with one example?..

Answer / shyam.meghansh

Any more question mail me testingwithshyam@gmail.com

Is This Answer Correct ?    2 Yes 2 No

how to write vbscript on web applications in qtp. explian with one example?..

Answer / raghavenderraj

need clear information.if any one knows ans to this plz
forward

Is This Answer Correct ?    2 Yes 3 No

how to write vbscript on web applications in qtp. explian with one example?..

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

Post New Answer

More QTP Interview Questions

what is the difference btn risks & Therads in the Test plan documentation?

0 Answers   Accenture,


Hi Frriends... I have one Query please give the apropriate ans. when we r working with web based application , the user loggedin page name is changed respect to the username ( Take a exp. Yahoomail.com) .When we use Datadriven test to this scenario ,each time the loggedin page name is changed ...then the script is fail.. at that time wat can do... please give the apropriate ans. Thanx in advance..

3 Answers  


how will u do database testing in qtp? how will u do the same with descriptive programming?

1 Answers   Ordain Solutions,


Can we Test Welcome Screens and Process Images with QTP

0 Answers  


write a test script in QTP to test the text that written in an image(i.e jpg)of a web page???

0 Answers  






What are Error handling other than Recovery scenario manager?

3 Answers  


Hi friends I need to know about jubula automation tool. Is anybody know in bangalore where jubula tanning class is going on do let me know. Its urgent for me to learn that tool please help.

0 Answers  


in a web table , i want you to click a particular object inside cell

2 Answers  


How can we use the "CreateObject ("Scripting.FileSystemObject")" in QTP and what is the definition and purpose of it?

2 Answers  


get the order no from the following orderdetails orderstring="ORD13456PNR" eg:13456

10 Answers   Oracle,


There are 3 types of frame works in QTP 1. Linear frame work 2. Modular frame work 3. Key word driven frame work. Can any body explain the above 3 frame work models. y2k_ram2000@yahoo.com

6 Answers   Fidelity, GDS, IBM, TCS, Wipro,


Can we do qtp testing without creating objects in Dbject repository? can we do it completely writing code i.e in expert view only. Are there any books for this?

7 Answers   Accenture,


Categories