SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Member
    Join Date
    May 2007
    Posts
    68
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Run from Quality Center

    Hi,

    I am new to quality center. Im having two queries:

    1.I created Test sets and all the stuffs but while running the test, first it is opening the "http://newtours.mercuryinteractive.com/tour/" page automatically.
    How to come out of that and run my appln without the irrelevant mercury tour page.

    2. while Automate running from QC the ActiveX,VBScript add-ins r got unchecked. Why it is happening like that and how to enable that while runtime.

    Thanks in advance.

  2. #2
    Senior Member
    Join Date
    Dec 2006
    Location
    Germany, Dresden
    Posts
    1,536
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Run from Quality Center

    for 1.

    Set App = CreateObject("QuickTest.Application")
    If App.Test.Settings.Launchers("Web").Active Then
    App.Test.Settings.Launchers("Web").Active = False
    End If
    Set App = Nothing
    (run this once in your script and save the script after doing this, the second run will be start without the mercury-page and without browser)

    for 2.
    QTP will be loaded with the associated addins. if you have not associated addins for the script there will never been loaded the addins you need
    http://qcmt.pc-polis.de

    de omnibus dubitandum

    For all Questions: Please be sure to take a look at the QTP Manual before posting any Questions, thanks for doing this

  3. #3
    Member
    Join Date
    May 2007
    Posts
    68
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Run from Quality Center

    I was wondering about the step 1(for 1).

    for 2.

    If i open the QTP alone(without from QC) it has the ActiveX , VBScript, and web add-ins. but if i open the QTP thru QC-Testscript tab-> Launch Quick Test Professional then the both(Activex and VBscript only) add-ins r got unchecked automatically but web is remain.

    To enable that Add-ins i have to close the QTP and reopen again and enable the add-ins manually.

    i got confused bit about this how it is happening.

  4. #4
    Senior Member
    Join Date
    Dec 2006
    Location
    Germany, Dresden
    Posts
    1,536
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Run from Quality Center

    for 1.:
    you have tell QTP with the first recording attempt to open every time the script is running, that QTP will open a webbrowser (see the picture http://www.pc-polis.de/pics/first_record_web.jpg )
    you can change this only with the application object for QTP, the other way is to create a new script and set your run settings properly...


    for 2.:
    you must associate the needed addins with the script you wanna run....

    see the picture http://www.pc-polis.de/pics/testsettings_properties.jpg
    http://qcmt.pc-polis.de

    de omnibus dubitandum

    For all Questions: Please be sure to take a look at the QTP Manual before posting any Questions, thanks for doing this

  5. #5
    Senior Member
    Join Date
    Jan 2007
    Location
    Pune, India
    Posts
    466
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Run from Quality Center

    Hi rscholz660,

    1. From where we can get this scripting info of record and run settings? for e.g. App.Test.Settings.Launchers("Web")
    2. If I wanted to know which browser user has specified into 2nd option of record and run settings then its possible or not? (As using your above code we must have to execute this code 2 times, in first time it open browser whichever specified here so it is necessary to close that browser)

    Jitesh.

  6. #6
    Senior Member
    Join Date
    Dec 2006
    Location
    Germany, Dresden
    Posts
    1,536
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Run from Quality Center

    for 1.:
    in the picture http://www.pc-polis.de/pics/testsettings_properties.jpg there is displayed a button "generate script". you can do this and have a look at the generated vbscript to see, how the qtp-object will work. thats all.

    for 2.:
    yes, you must run it first time (with opening the browser, now you will see an "*" on the window title) and then save the script and remove the code. the settings are done.

    for the future be carefully when you press the record-button first time which options you select. only clicking the "OK"button without reading is not the way
    http://qcmt.pc-polis.de

    de omnibus dubitandum

    For all Questions: Please be sure to take a look at the QTP Manual before posting any Questions, thanks for doing this

  7. #7
    Senior Member
    Join Date
    Jan 2007
    Location
    Pune, India
    Posts
    466
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Run from Quality Center

    # For 1, I am aware of "Generate script" but i am specific to "Record and run seetings" where this type of option is not available.

  8. #8
    Senior Member
    Join Date
    Dec 2006
    Location
    Germany, Dresden
    Posts
    1,536
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Run from Quality Center

    i got the following script (QTP 9.2!!!!)

    Dim App 'As Application
    Set App = CreateObject("QuickTest.Application")
    App.Launch
    App.Visible = True
    App.Test.Settings.Launchers("Web").Active = False
    App.Test.Settings.Launchers("Web").Browser = "IE"
    App.Test.Settings.Launchers("Web").Address = "http://newtours.mercury.com "
    App.Test.Settings.Launchers("Web").CloseOnExit = True
    App.Test.Settings.Launchers("Windows Applications").Active = False
    App.Test.Settings.Launchers("Windows Applications").Applications.RemoveAll
    App.Test.Settings.Launchers("Windows Applications").RecordOnQTDescendants = True
    App.Test.Settings.Launchers("Windows Applications").RecordOnExplorerDescendants = False
    App.Test.Settings.Launchers("Windows Applications").RecordOnSpecifiedApplications = True
    App.Test.Settings.Run.IterationMode = "rngAll"
    App.Test.Settings.Run.StartIteration = 1
    App.Test.Settings.Run.EndIteration = 1
    App.Test.Settings.Run.ObjectSyncTimeOut = 20000
    App.Test.Settings.Run.DisableSmartIdentification = False
    App.Test.Settings.Run.OnError = "Dialog"
    App.Test.Settings.Resources.DataTablePath = "<Default>"
    App.Test.Settings.Resources.Libraries.RemoveAll
    App.Test.Settings.Web.BrowserNavigationTimeout = 60000
    App.Test.Settings.Web.ActiveScreenAccess.UserName = ""
    App.Test.Settings.Web.ActiveScreenAccess.Password = ""
    http://qcmt.pc-polis.de

    de omnibus dubitandum

    For all Questions: Please be sure to take a look at the QTP Manual before posting any Questions, thanks for doing this

  9. #9
    Senior Member
    Join Date
    Jan 2007
    Location
    Pune, India
    Posts
    466
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Run from Quality Center

    Yes, this was my concern!! Will you please tell me from where you got this information of "Record and Run Settings"

    Jits.

  10. #10
    Senior Member
    Join Date
    Dec 2006
    Location
    Germany, Dresden
    Posts
    1,536
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Run from Quality Center

    experience?
    i was comparing some of my vbscripts with different script-properties and found it out
    http://qcmt.pc-polis.de

    de omnibus dubitandum

    For all Questions: Please be sure to take a look at the QTP Manual before posting any Questions, thanks for doing this

 

 
Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 12:20 PM.

Copyright BetaSoft Inc.