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 |
i have doubt suppose iam purly working in manual, when i will get work to do on sql and performence testing? pls any one clarify doubt?
Whats the realtime QTP testing process
How to use setroproperty?
Diff b/w Test Design and Test case design? What is the Design Review's and Code Review's. When will you conduct tese reviews?
Java add-in is need to work on java oriented project ?
How should I click on the right click menu objects When I trying to add the object properties to the OR.It is showing only Window(Window).Not all the objects of the window. Also while recording I found No script. How to solve this>.
Is it possible to switch between recording modes during a test creation?
how to test one edit box using dotnet addin for Web Applications? write script?
we r conduction testing on a project USING QTP, regarding that project the object repository is full ? Till that project having objects that r not recognised by repository, then what wil you do? How we wil recogine remailning objects? Is it possible to maintain another shared(or)peraction repository? what is the maximum capcity of object repository? How the technical people decide this much object repository is enoughf for this project?
If u prepare bug report in Excel sheet . Is it possible to send thrw Test director? how it is?
What are the Test design techniques you uses in ur project?
When I used random numbers(1 to 9) with regular expression and run the test, it runs only 5 iterations with passed result instead of running all 1 to 9. Please tell me what can be the reason