you written some code in qtp for opening google.com browser
and entered some text inthe search text box and clicked
search button. this is ur script..
before running this script i have already opened two
google.com browsers.
now am running the script what will happen?
script will run or what??
Thanks...
Nani
Answer Posted / rajendra prasad reddy
Yes Nani even if u opend google the browser,if run another
script,script will open another web page and performs
wat ever u wrote in that script.
For example i am providing a script for opening a
google.co.in web page and seraching for 'search' on goolge.
Code:
Set IE = CreateObject("InternetExplorer.Application")
IE.Navigate "http://www.google.co.in"
IE.Visible = True
Wscript.Sleep 8000
IE.Document.All.Item("q").Value = "serach"
IE.Document.All.Item("f").submit()
Copy above code in notepad abd save it serach.vbs on desk
top.
then click on file after saving it desk top.
this scripts runs and opens goog.co.in web page.
if u click once again it will open again a web page.
If u have any doubt please mail me
byee
Rajendra Prasad Reddy
rajendra_penumalli@yahoo.com
Test engineer
Hyderabad
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
How to check which add-ins are associated with a test in qtp?
If I change the property value at runtime is it effect is object repository?
How can i check items sorted or not in a weblist ? Give me the script for this...
1.Write a CRITICAL test cases for calculator ? 2.What is the difference b/w FRS and SRS documents ? 3.What is Component ? 4.What is object ? 5.what is the difference b/w static and dynamic descriptive programming ?
How many add-ins comes by default with quicktest professional (qtp)?
Hello, Is there any way to send the test results in html format (or any other) by email using outlook after the test run ends? thank you in advance
Is it possible to split an action? How?
What is recovery scenario in qtp?
Explain building blocks of the bpt framework ?
What is ‘object spy’ and what is the function of object spy in qtp?
When using descriptive programming?
Can anybody post some real time scenario in qtp? please its very urgent.
How to handle the exceptions using the recovery scenario manager in qtp?
How to write business scripts using object repository with different scenarios
wht type of User defined functions or Java Releated functions Do we write in VB scripting