take one exmple and write on that discriptive programe in
qtp?



take one exmple and write on that discriptive programe in qtp?..

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 "7134999"
Browser(BRO).Page(PG).WebButton(Login).Click

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More QTP Interview Questions

what r the verstions from 1st to present (verstions) of mercury tools (like winrunner,QTP,Loadrunner) ? Chandana

0 Answers   Mannar Company, Wipro,


How to switch between browser tabs? )moving from one tab to another tab)

1 Answers   CTS,


Explain about Test Fusion Report of QTP?

0 Answers  


How do u override the meaning of a standard object in QTP?

1 Answers  


Reverse string without mid or streverse function.

1 Answers   Deloitte,






hi, can u tell me the QTP TEsting process in present real time companies?(beware of this... now a days Recording is not using,, only DP) and don't tell note book answers like step 1 spep2....like this .......post answer with professional skills in simple english words) thank u

0 Answers  


What are the benefits of qtp?

0 Answers  


What exactly is the difference among all the three recording modes.

5 Answers   Accenture,


what is the diff between Procedure and function

3 Answers   iFlex,


Plz write the code, function will take the parameter as month number, i.e., numerical value, but it returns the last day of the month in string (weekday). example: input: function parameter: 3(march) output: thursday

1 Answers  


How to creating an output value using quicktest professional?

0 Answers  


Wat is the command used to add an object(properties) to an object repository?

2 Answers   Virtusa,


Categories