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 |
HOW TO COUNT NUMBER OF ITEMS PRESENT IN WEB LIST
What is the Difference Between Quick Test Pro and Quick test professional?
What are accessibility check point and xml check point?
Take a situation when you are working with QTP, suddenly system has crashed.so you again start the system. My questyion is how can QTP directly opened when the system desktop appears.
we use a file extension .properties why is it used and where do we use it plz help me out with detailed explanation and navigation of how to use on the QTP 8.2?
am not having intrest in coding lang like c c++ java etc can i choose Testing tools as my carrier and please suggest me which tool is good (suitable for me)
How to capture screen shots when an error occurs?
For Regression testing already written test cases are sufficient?
How to count no of edit boxes on the page?
How to get popup error message.
Local Obj Repository and SOR are editable know, y we have to edit those.. i mean in which situation we need to edit those and how to do..? pls help me..
What is XML checkpoint in QTP. How we can use in Web Based application