SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Nov 1999
    Location
    Boston, MA, USA
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    -p command line switch

    Does anyone know how to use this -p switch for partner.exe? I've spent the last few hours trying to write a program that will do what the book asks pg 446 of the users guide, and I still never get any number of errors passed down to the app.

    Has anyone had success with the Windows PostMessage that Silk is supposed to do automatically with the -p switch?

  2. #2
    Junior Member
    Join Date
    Apr 2001
    Location
    Scotts Valley, CA
    Posts
    16
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: -p command line switch

    Anybody had any luck with this?

    I am starting Silk from a DOS batch file, then calling a Kshell (MKS Toolkit) script to parse the .REX file and generate an HTML results table. But I'd love to be able to get the total # of errors back from Silk itself, instead of getting the Kshell script to total up the errors in each testcase.

    Any help or advice would be much appreciated!

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

  3. #3
    Super Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    1,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: -p command line switch

    Use the SilkTest Repository which is an optional install. This information will ge tlogged to a database and you can readily get it from there.

    ------------------
    James Soderborg
    http://www.ameliortech.com
    jamesso@ameliortech.com

  4. #4
    Guest

    Re: -p command line switch

    I also had the same problem and here is what segue had to say:
    PROBLEM
    ----------------------------------
    How can you use the SilkTest/QAP -p command line switch to let a launch program receive the number of errors generated by a testscript?


    SOLUTION
    ----------------------------------
    The -p option is a way to let a parent application (launch program) that starts partner to receive the number of errors in the script that partner just executed.


    So, in the parent app on WIN32, you have to do something like the following to start partner:


    uiPartnerReturnMessage = RegisterWindowMessage ("QAP_RETURN_MESSAGE");


    WinExec ("c:\qap4\partner.exe -p QAP_RETURN_MESSAGE -r TEST.T",
    SW_MINIMIZE);

    The parent app continues to execute after WinExec. The app's Windows
    message procedure will be waiting for a Windows message with id equal
    uiPartnerReturnMessage. When this message arrives, Partner has finished
    the script and the LPARAM is the number of errors generated by
    the script. Here is a sample for the Windows message procedure:


    /*Define WM_PARTNER_RET to some unused message id */
    #define WM_PARTNER_RET WM_USER + 0x0123


    LRESULT MyWndProc (HWND hWnd, UINT uiMsg, WPARAM wParam, LPARAM lParam)
    {
    if (uiMsg == uiPartnerReturnMessage)
    uiMsg = WM_PARTNER_RET;


    switch (uiMsg)
    {
    case WM_PARTNER_RET:
    {
    uiNumErrors = (UINT) lParam;
    /* Partner is now finished the script*/
    }
    break;


    case ...
    case ...

    default:
    return (DefWindowProc (hWnd, uiMsg, wParam lParam);
    break;
    }


    return (0);
    }

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

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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 02:26 AM.

Copyright BetaSoft Inc.