SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 9 of 9
  1. #1
    Junior Member
    Join Date
    Jan 2011
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Cannot stop the test using the QTP Stop button

    Hi,

    I'm working with QTP 10 on XP.
    At some point after executing the test, QTP cannot be stopped by the clicking on the stop button.
    I also cannot stop it using the task manager as the entire machine is not very responsive to mouse clicks at this point. Some of the clicks are working. But most button do not respond to clicks.
    The only way to terminate QTP is to kill the process from another machine using taskkill.exe
    After QTP is terminated XP is back to normal.

    The test can be stopped using code like ExitTestIteration but not using QTP stop button.

    Some info that maybe related, the test is not a typical QTP test. It use a large amount of code found inside QFL files, the code is mostly classes based.

    what could be the reason for that?

    Thanks

  2. #2
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: Cannot stop the test using the QTP Stop button

    How much time does the test run before reaching to this state?

  3. #3
    Junior Member
    Join Date
    Jan 2011
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Cannot stop the test using the QTP Stop button

    Hi Traun,

    it happens almost straight after the test is executed

  4. #4
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: Cannot stop the test using the QTP Stop button

    See if the below thread is of any help

    http://knowledgeinbox.com/articles/qtp/i...lbars-and-more/

  5. #5
    Junior Member
    Join Date
    Jan 2011
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Cannot stop the test using the QTP Stop button

    Hi Tarun,

    Thanks for the article.
    I got more specific information about what is causing this issue.

    The issue reproduce when 2 classes are found in QFL file, and One class is calling to a second class function. In this case stop button will not stop the execution until all the calls are completed.

    I created a demo test to illustrate the problem
    Create a QFL file and paste the following code to it:

    '*****************
    Class ClassA

    Function FunctionA
    'Your code here

    Reporter.ReportEvent micPass, "FunctionB" , "Executed"
    Wait 2


    End Function

    End Class


    Class ClassB

    Function FunctionB

    InstanceOfA.FunctionA
    InstanceOfA.FunctionA
    InstanceOfA.FunctionA
    InstanceOfA.FunctionA

    End Function


    End Class

    Set InstanceOfA = new ClassA
    Set InstanceOfB = new ClassB


    '*****************

    Now create a new QTP project and associate the QFL file to it.

    At the main test insert the line:
    InstanceOfB.FunctionB

    Running the test will cause 4 prints to QTP test report (using Reporter.ReportEvent function) with 2 seconds delay between prints.

    Notice that pressing the stop button while this step is running will cause the test to stop imidiatlly, however looking at the log you will see that there are 4 entries, so the code was executed 4 times although stop was pressed. It's Just the wait that was skipped.

    As the test I'm running contains many commands, and almost no waits, the test will not stop until all the commands are executed and this may take hours.

    Could you tell how to solve this issue?

    Thanks

  6. #6
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: Cannot stop the test using the QTP Stop button

    Open regedit and change the value below

    Key: HKEY_CURRENT_USER\Software\Mercury Interactive\QuickTest Professional\MicTest

    Value name: "EnableQTPRunModeInFLs"

    Data: 00000001 (DWORD)

    And see if it helps

  7. #7
    Junior Member
    Join Date
    Jan 2011
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Cannot stop the test using the QTP Stop button

    Hi Tarun,

    I was not able to find this value at the registry. However, I added it as a new value with the data specified and the problem still reproduced.

    Maybe there is another value for QTP 10?

    Thanks

  8. #8
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: Cannot stop the test using the QTP Stop button

    In QTP10 to improve performance HP runs the Function Library in Fast Mode even if the test runs in normal mode. This is the only key they specified to change this behavior. I believe you can open a ticket with HP support to see if they have any answers to this

  9. #9
    Junior Member
    Join Date
    Jan 2011
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Cannot stop the test using the QTP Stop button

    Hi Tarun,

    Unfortunately the company I'm working in didn't extend the support contract.
    A possible workaround will be re-writing the code, not to use any classes. As there are thousands of code lines in this test it will take a lot of work.

    Thank you very much for help.

 

 

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:49 PM.

Copyright BetaSoft Inc.