I want to open a Google page without recording a test and i
do not want to use system.Util.run command as well how do i
do this?

Answers were Sorted based on User's Feedback



I want to open a Google page without recording a test and i do not want to use system.Util.run com..

Answer / rico

Set Wsh = CreateObject("Wscript.Shell")
Wsh.run "iexplore google.com"

Is This Answer Correct ?    13 Yes 3 No

I want to open a Google page without recording a test and i do not want to use system.Util.run com..

Answer / rico

here is the one other way do this

Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = true
IE.Navigate "http://Google.Com"
Set IE = Nothing

Is This Answer Correct ?    9 Yes 0 No

I want to open a Google page without recording a test and i do not want to use system.Util.run com..

Answer / mreddy

Hi Bhavani and Reco try this.

dim wsh
Set Wsh = CreateObject("Wscript.Shell")
Wsh.run "iexplore google.com"

Regards,
Muni

Is This Answer Correct ?    4 Yes 0 No

I want to open a Google page without recording a test and i do not want to use system.Util.run com..

Answer / sanurajps

Hi,

Try this one..

Set MyObj = CreateObject("WScript.Shell")
MyObj.Run "www.google.com"


Sanu.

Is This Answer Correct ?    2 Yes 0 No

I want to open a Google page without recording a test and i do not want to use system.Util.run com..

Answer / kalyan

What Rico told is exactly correct. We can use below
function as a generic function. So when ever required we
will call them with differnt url"s.

function navbr(url)

Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = true
IE.Navigate (url)
Set IE = Nothing

end function



Any doubts I wil explain with pleasure.
mskalyan.smile@gmail.com

Is This Answer Correct ?    2 Yes 0 No

I want to open a Google page without recording a test and i do not want to use system.Util.run com..

Answer / srinivas

"invokeapplication C:/program/.../..../.." 100% it will work

Is This Answer Correct ?    1 Yes 0 No

I want to open a Google page without recording a test and i do not want to use system.Util.run com..

Answer / manchk

Set Wsh = CreateObject("Wscript.Shell")
Wsh.run "cmd iexplore google.com"

Is This Answer Correct ?    1 Yes 1 No

I want to open a Google page without recording a test and i do not want to use system.Util.run com..

Answer / prashant kumar

Kindly tell me the whole format.
I have tried this but some error like "Set Wsh is not a
valid internal or external command" is coming.

and for the answer no. 9 ,,,,,,,,, where should I need to
enter these commands ?

Keen to know the answer...............

Is This Answer Correct ?    0 Yes 0 No

I want to open a Google page without recording a test and i do not want to use system.Util.run com..

Answer / sushil

you can use command 'invokeapplication' or best way is u
can add url of application in 'run and record
setting'...there is one option 'record and run only
on'.....after setting this you start recording...and
webpage opens up automatically

Is This Answer Correct ?    0 Yes 1 No

I want to open a Google page without recording a test and i do not want to use system.Util.run com..

Answer / babu

Hi,
I executed the script mentioned above to open Google. It is
working for me.

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More QTP Interview Questions

You have a WebTable in Web application. When you Record a Scenario using QTP, WebTable didn't recognized and also Repository is not having Webtable information. In this case How to find RowCount and Coloumn Count?

2 Answers   PanTerra,


How can i use virtual objects? If have i created one new virtual object in a virtual object manager by following instructions.

0 Answers  


Hi All, How to get repeated word in string . Thanks Balaji

0 Answers  


Maximum synchronizing time out in QTP

3 Answers   Kanbay,


What is SQL injection?

2 Answers   CTS,






I used the below code to open QTP through VBscript?But i can unable to Invoke QTP...PLZ help me with the correct code to invoke QTP through VBS with description of the code aswell. Dim qtApp 'As QuickTest.Application 'Declare the Application object variable Dim qtTest 'As QuickTest.Test 'Declare a Test object variable Dim qtResultsOpt 'Declare a Run Results Options object variable Set qtApp = CreateObject("QuickTest.Application") 'Create the Application object qtApp.Launch 'Start QuickTest qtApp.Visible = False 'Make the QuickTest application visible qtApp.Open "C:\form", True 'Open the test in read-only mode 'set run settings for the test Set qtTest = qtApp.Test qtTest.Run 'Run the test 'WScript.StdOut.Write "Status is: " & qtTest.LastRunResults.Status 'Check the results of the test run qtTest.Close 'Close the test qtApp.quit 'Close QuickTest Pro Set qtResultsOpt = Nothing 'Release the Run Results Options object Set qtTest = Nothing 'Release the Test object Set qtApp = Nothing 'Release the Application object

0 Answers   ADITI,


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

4 Answers   Oracle,


How to capture a window in qtp or how to take snapshot of any window while writing script in qtp

3 Answers  


Where u will use output checkpoint in QTP?

3 Answers   HCL,


Create flight reservation login descriptive programing (Condition: Remove the value and substitute with a variable, and then call the validation from Excel) Plz help me....... very urgent.........

0 Answers  


Explain about reusable actions?

3 Answers   IBM,


i need qtp tutorial. pls send it to sridhar.k151@g mail.com

0 Answers  


Categories