how to invoke the web application through script in qtp
Answers were Sorted based on User's Feedback
Answer / neeraj chauhan
Hi this is neeraj, and i went through your query and the
solution is:
Systemutil.Run("iexplore")
Set vBrowser=Browser("Creationtime:=0")
vBrowser.navigate("Url of your application for example:
"gmail.com" ")
Description:
this is descriptive programming code, this code first will
open the "Internet Explorer" and then will put your given
"url" to the browser automatically.
| Is This Answer Correct ? | 18 Yes | 2 No |
Answer / venkat reddy
we have 2 ways in QTP to open a web application through the
script,
1)
systemutil.run("URL")
or
systemutil.run "iexplore.exe","URL"
2)
systemutil.run("iexplore")
set vbrowser=createobject("creationtome:=0")
vbrowser.navigate"URL"
| Is This Answer Correct ? | 12 Yes | 2 No |
Answer / niranjan
please use the following code"
url= "url name"
Set IE=CreateObject("InternetExplorer.Application")
IE.Visible = true
IE.Navigate url
| Is This Answer Correct ? | 8 Yes | 1 No |
Answer / satyanarayana
Hi we can invoke the application in the following ways
1).systemutil.run"path of the application"
2).Invokeapplication"path of the application"
| Is This Answer Correct ? | 11 Yes | 7 No |
Answer / kapil bande
above methods are correct one more method is there we can
create IEexplore object and pass the URL.
set Browser =createobject("InternetExplorer")
Browser.visible =True
| Is This Answer Correct ? | 4 Yes | 3 No |
Answer / soni
The simple way is to use systemutil.Run ("Application path")
or go to Record Settings and in Web tab give the path.
| Is This Answer Correct ? | 1 Yes | 4 No |
Answer / shilpa reddy
Syntax:
system.util.run("path of the application")
this invokes any type of application.
| Is This Answer Correct ? | 8 Yes | 12 No |
Diff. between keyword driven Data driven testing?
What is the extension of script and object repository files?
Hi, I have a login page. To login in that page I need to have a valid username and password, which is stored in database. I imported that table to my DataTable in QTP (Global sheet). Now I need to write a code in qtp so that I can login only with valid username and data. my condition is : I want to get username and password from inputbox(which i did) and click on login button- which should verify the datatable for username and password and if value is present only then lofin else stop the testing. DataTable contains columns : LoginName and Password Code: Rowcount= DataTable.GetSheet("Global").GetRowCount msgbox "RowCount= " &RowCount,1 CurrentRow= DataTable.SetCurrentRow(1) Do Browser("").Page("").Frame("Frame").WebEdit("ctl10$ct l00$ctl00$UserName$ctl").Set DataTable("LoginName",1) Browser("").Page("").Frame("Frame").WebEdit("ctl10$ct l00$ctl00$Password$ctl").Set DataTable("Password",1) Browser("").Page("").Frame("Frame").Link("Login").Cli ck CurrentRow=CurrentRow+1 Loop Until CurrentRow>Rowcount Can anyone help? Thanks, Priya
How will you report the bug and explain the defect tracking sheet you handled?
What are the Application Functions available in QTP?
Can anyone tell me what is the equivalant method to be used in QTP for "web_obj_get_text" used in winrunner. My winrunner code is below. set_window("Confirm Add Subscriber"); rc = web_obj_get_text("Add subscriber:","#8","#1",orderID,"The order number is","\.",1); basically I need to retrieved the "orderID " from a string present in 8th row & 1st col of table "Add subscriber"
Hi All, I am a beginner in QTP and have understood the basics of QTP by going through tutorial. I am trying to Automate a HRMIS application, What is the right approach to Automate this application. Kindly answer. Thanks in advance
What is descriptive programming?
Does the Existing reusable action can be modified at the time of calling the action?? Please help me..
I am in .Net development for past 3.5 years and want to enter in to automated testing and learn QTP. For this I need some good tutorial for beginners. I will be really greatful if any one has and they can send it to me on this address- ruchidureja@gmail.com
What is a runtime datatable ?
We have 10 page.In first page we 2 popup and next page we 3 popup window......(windows name is different)how can we handle the all the popups without using recovery scenario