How do you invoke any application and write a script to
invoke QTP using VB Script.
Answers were Sorted based on User's Feedback
Answer / srinvias
systemutil.run "QuickTest.Application"
set qtp_app=createobject("QuickTest.Application")
qtp_app.launch
qtp_app.visible=true
or
invokeapplication "C:/internet/explorer.exe"
| Is This Answer Correct ? | 12 Yes | 0 No |
TO Launch IE using VB Script:
Set IE=CreateObject("InternetExplorer.Application")
IE.Visible = True
IE.Navigate "www.google.com"
else
systemutil.run "iexplore.exe","www.google.com" (This is not VB Script, this is QTP builtin method)
But i dont understand that "when QTP is providing builting feature why do we need put more effort to write extra script instead using tool features" ( Why interviewers dont ask which are usefull)
| Is This Answer Correct ? | 1 Yes | 1 No |
what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?
what is test scheduling?
what is meant by keyword driven frame work can any one answer plzzzzzzzzzzz
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..
Write the code for select the 5 values from drop down list. drop down list having the 10 values.
I wanted to create Data Driven test for login page (loginname,password). Password is same for all the loginnames. I recorded the script for one user. I mentioned all the user names in the global excel sheet with the column name as "Loginname". I mentioned 5 loginnames. I selected tools- >datadriver and select loginname. Select parameterize and select parameter all option.Changed the parameter name to "loginname" which i mentioned in the global excel sheet. I executed the script. For the users 2 and 4 only, the script is failing... can anybody explain why the script is failing for users 2 and 4.
How to get line numbers in your editor in expert view?
There is a table with 4 columns and 10 rows, how to write the script to display the first column records using qtp? can anybody help me with script?
Some time when i wanna learn the object i face issue like i am not able learn the object in proper manner... eg:for text bo on web page it should learn as webedit but some times it reads as winobject:internetexpoler-server, because of this i have to uninstall the qtp and re-install it again when i do this it reads the object perfectly.....plz suggest the soln
what is clean sweep?
Hi Frriends... I have one Query please give the apropriate ans. when we r working with web based application , the user loggedin page name is changed respect to the username ( Take a exp. Yahoomail.com) .When we use Datadriven test to this scenario ,each time the loggedin page name is changed ...then the script is fail.. at that time wat can do... please give the apropriate ans. Thanx in advance..
can anyone answer this question ........in the DICTIONARY OBJECT....i created the dictionary object in reserved object ok....here i have some sets of values ...now i want to retrieve the item i done too ok.......here my question is now i saved the test and close the qtp tool ,again i opened now i retrieve the same item in the dictionary is it possible ????. friends when i try to do this i am getting empty message box i mean no value will be retrieved ......ans me any one plz...