take one example and write vbscript on one web application
in qtp?
explian descriptive programe with one example?
Answers were Sorted based on User's Feedback
Answer / shyam.meghansh
Example for VB Script
Function fib(n)
Dim fab(70)
fab(0)=0
fab(1)=1
For j=2 to n
fab(j)=fab(j-1)+ fab(j-2)
Next
For i=0 to n-1
msgbox fab(i)
Next
end function
Next Save this function in .vbs file and call the function
in QTP Action
Example for Descriptive Programme
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 "testingwithshyam"
Browser(BRO).Page(PG).WebEdit(PWD).Set "shyamshyam"
Browser(BRO).Page(PG).WebButton(Login).Click
..................... Any More Querys mail to
testingwithshyam@gmail.com
Is This Answer Correct ? | 2 Yes | 1 No |
Answer / senthilkumar
Hi
i am senthilkumar now i am working manual tester. i will
test windows application.
how will test application
pls send me small script
Is This Answer Correct ? | 0 Yes | 1 No |
An object is non standard object, i mapped it to standard object, eventhogh on mapping to standard object i cannot use the methods available on the standard object with the mapped object. How i can use those standard object methods with these mapped object. (((Note : dont tell that we can use virtual object as virtual object is to map nonstandard obj to standard obj)))
What do you mean by iteration?
1.what is the difference between childobjects and child items in qtp? 2.what is difference between a class and function? 3.can u convert ustimings to indian timings using vbscript? 4.i have scripts in one machine.can i run those scripts in another machine.how?
2 Answers Genpact, Infosys, Symantic Space, TCS,
How can i use virtual objects? If have i created one new virtual object in a virtual object manager by following instructions.
Hello Friends, I am working with QTP 9.2 descriptive programming. Can you please let me know how to work with below. Browser is IE, for my site, it opens another page with different browser name, For example Parent Page is google.com and child page is inteview questions. How to work with this second page.
Write script to fetch the data from global sheet where row number is 3 and parameter is "text"
3 Answers Accenture, Thomson Reuters,
Hi Friends... What you are doing in Regression Testing and how many test cases you ran in regression testing... suppose there is 1000 test cases is there how many test cases again you run .. 1000 test caes r how many... thanx in advance..
What is qtpro? What is quick test pro?
If I change the property value at runtime is it effect is object repository?
In QTP, Give the difference of Global sheet and Local sheet in datatable?
What is the difference between Client/Server application and Web application ?
How can I use the value retrieved by OUTPUT VALUE check point as Input for other Actions?