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

Describe how Smart Identification is used

0 Answers  


Is there any site to download QTP....otherwise tell me the way how to get the QTP sofware??????????????????? Thnx in advance

5 Answers   Cegonsoft,


What is FRAME WORK? How many Frameworks can QTP supports?

4 Answers  


How QTP recognize the object??how to add objcts into object repository??

3 Answers  


Hi Friends, If you got one Bug , and you are insert that bug in bug tracking tool , and you need to attach SC's (screen shots) also. how to tae SC's , in your organization any separate tools available to take SC's. please provide Ans. its urgent... Thanx in advance

3 Answers  






unique properties of button,edit box, radio button,check box?

1 Answers   IBM,


how we connect oracle or sql data server database to qtp. Hi Ram I was your answer for this. Can you kindly let me know in details steps on How we can connect to database. i am using QTP9.2 and SQL Server Database. I am new for QTP and this would be of great help.Thanks

2 Answers  


hello...any one tell me , where can i get company email id.. actually i am searching on testing... in my CV i put 3+ exp.. but all companies are asked company email id.. please provide solution for that... thanx in advance...

9 Answers   HDFC,


who will distribute the project modules for testing in testing team ?

2 Answers  


What is synchronization? What are the ways you can synchronize?

0 Answers  


explain qtp framework by taking an example?

3 Answers  


How to make arguments optional in a function?

2 Answers   Crea,


Categories