SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jun 2002
    Location
    guangzhou
    Posts
    38
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Problem of QALoad Scripts

    I am a new learner. I have write a QALoad script which was inserted QARunScripts in workbench as follow:
    DEFINE_TRANS_TYPE("test2.C");
    .....
    DEFINE_OP_ID (1, "AWL -script99 ");
    DEFINE_OP_ID (2, "AWL -script99 ");
    SET_ABORT_FUNCTION( abort_function );

    err = DO_InitAWL(s_info);
    SYNCHRONIZE();
    BEGIN_TRANSACTION();
    BEGIN_TIMER(0);
    BEGIN_CHECKPOINT( );
    err = DO_StartAWL("Admin,Admin", "Default", "script99" );
    END_CHECKPOINT ( 1 );
    // here is just an error judgement

    END_TRANSACTION();

    BEGIN_TRANSACTION();
    BEGIN_TIMER(0);
    err = DO_StartAWL("Admin,Admin", "Default", "script99" );
    CHECK_POINT( 0, 2);
    // here is just an error judgement

    END_TRANSACTION();

    When I validate this script, QARun Script: script99 will be run 3 times! But I only wanna run twice. What's wrong with this code?
    Thx!

    ------------------

  2. #2
    Junior Member
    Join Date
    Nov 2002
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Problem of QALoad Scripts

    Aleafe,

    There are several things you should check:
    1) Number of 'Transactions', when assigning the script for execution, is set to '1' within QALoad's Conductor UI
    2) There is no looping logic within the QARun script that tells it to execute more than once
    3) Ensure that the QARun script runs only once in the native QARun environment

    Good luck and I hope this helps.

    ------------------

  3. #3
    Member
    Join Date
    Jun 2002
    Location
    guangzhou
    Posts
    38
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Problem of QALoad Scripts

    I have try the QARun Script only in QARun environment and it ran only once
    but insert it into QALoad, it will run 3 times, not 2.

    ------------------

  4. #4
    Junior Member
    Join Date
    Nov 2002
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Problem of QALoad Scripts

    Aleafe,

    I looked at your script further and discovered the following:
    1) Your code is using two methods for performing check-point timing. Try sticking to one
    2) The use of BEGIN_TIMER(0) is used twice and I believe because you are using two methods as described above, it is confusing the state of QALoad
    3) Try using one call to the QARun script within the QALoad script and have the Conductor drive the number of transactions to perform

    Good Luck!



    ------------------

 

 

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 11.54%
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 03:53 PM.

Copyright BetaSoft Inc.