SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4

Thread: globalsettings

  1. #1
    Member
    Join Date
    Aug 2003
    Location
    bangalore
    Posts
    43
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    globalsettings

    Hi All
    i have created global settings for my all testcases as .

    globalsetting.vbs
    ==============================================
    Dim qtApp 'As QuickTest.Application ' Declare the Application object variable
    Dim qtTest 'As QuickTest.Test ' Declare a Test object variable
    Dim qtResultsOpt 'As QuickTest.RunResultsOptions ' Declare a Run Results Options object variable

    Set qtApp = CreateObject("QuickTest.Application") ' Create the Application object
    qtApp.Launch ' Start QuickTest
    qtApp.Visible = True ' Make the QuickTest application visible

    ' Set QuickTest run options
    qtApp.Options.Run.RunMode = "Fast"
    qtApp.Options.Run.ViewResults = False

    then loading the environment file and libraries s file .

    qtApp.Test.Save ' Save the test
    qtApp.Quit ' Quit QuickTest

    Set qtLibraries = Nothing ' Release the test's libraries collection
    Set qtApp = Nothing ' Release the Application object

    ============================================

    Afer executing this file its gives me error as

    1) Failed to save the test and
    2)the Operation failed because the application is busy.

    Please help me to resolve this issue

    Thanks in advance
    girish
    girish

  2. #2
    Moderator
    Join Date
    Sep 2001
    Location
    Doncaster, UK
    Posts
    5,788
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: globalsettings

    Girish which line of the code is causing the problem?

    Mark Smith.

  3. #3
    Member
    Join Date
    Aug 2003
    Location
    bangalore
    Posts
    43
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: globalsettings

    Hi Smith ,
    Thanks for reply .
    From the line qtApp.Test.Save .

    i hane created reusable action which calls the globalsettings.vbs ,This will be called in all my testscript . so i need not make settings for each of the testscript.This my approach.

    When i comment the from the above statement. its executes sucessfully . it loads the environment file and also library files ,but it fails to call the library methods .

    when i run for second time,it works fine .

    please could you suggest to resolve the issue.

    Thanks in advance
    girish
    girish

  4. #4
    Moderator
    Join Date
    Sep 2001
    Location
    Doncaster, UK
    Posts
    5,788
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: globalsettings

    Girish I think you need to use SaveAs like this:

    qtApp.Test.SaveAs Environment.Value("TestName") ' Save the test

    You may want to create a small dummy test and test it 1st.

    Mark Smith.

 

 

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 12.50%
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 06:24 PM.

Copyright BetaSoft Inc.