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

Explain about opening notepad in QTP and writing of test result in notepad?

4 Answers  


what is vmodel?advantages and disadvantages of vmodel?

3 Answers   AZTEC, scintel,


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?

0 Answers  


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

1 Answers  


Using QTP checkpoint, where do you store your expected Properties of the object which later compares with the actual properties of the object???

4 Answers  


In QTP 8.2 there are lot of check points is this same in latest version QTP 9.5 ?

2 Answers  


What are the Features & Benefits of Quick Test Pro ?

1 Answers   Crea,


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?

0 Answers  


Is it possible to change the property value at runtime? How it is possible?

0 Answers  


While recording a login window QTP is identifying only parent window,then how can u identify the child objects.

2 Answers   Symphony,


I Selected for TCS-Chennai(Contract to hire) position plz suggest me whether i have to join or not

2 Answers   TCS,


How to define array in qtp?

0 Answers  


Categories