SPONSORS:






User Tag List

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

Thread: tl_step

  1. #1
    Senior Member
    Join Date
    Sep 2000
    Location
    Hyderabad, India
    Posts
    427
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: tl_step

    tl_step statement is used for user level reporting. The tl_step will be more advantages if you are executing the scripts through TD.
    Ex:
    tl_step (Step Name,PASS/FAIL,"The user message");
    Vinod
    If you want a high quality software system, you must ensure each of its parts is of high quality. by Watts S. Humphrey

  2. #2
    Junior Member
    Join Date
    Aug 2003
    Location
    Chennai
    Posts
    19
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: tl_step

    to report pass status,
    tl_step( "Step-1", 0, "Login SUCCESSFUL." ) ;

    to report fail status,
    tl_step("Step-1", 1, "Login FAILED" );

  3. #3
    Junior Member
    Join Date
    Jul 2002
    Location
    akra, jamaica
    Posts
    19
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    tl_step

    Can someone guide me as to how does one write tl_step. I went throught the winrunner help, could not figure it out with the example.
    Thanks

  4. #4
    Moderator JakeBrake's Avatar
    Join Date
    Dec 2000
    Location
    St. Louis - Year 2025
    Posts
    15,609
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: tl_step

    type in your script:

    tl_step

    put the cursor in that text and press F1

  5. #5
    Member
    Join Date
    Mar 2004
    Location
    Reston, VA
    Posts
    94
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: tl_step

    See Example below:
    if (you==smart)
    {tl_step("Smart Test",0,"You are smart"); }
    else
    {tl_step("Smart Test",1,'You're NOT Smart"); }

  6. #6
    Senior Member
    Join Date
    May 2001
    Location
    Ankh-Morpork
    Posts
    2,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: tl_step

    Note that you can make your code more readable by using the pre-defined constants PASS and FAIL:
    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">if (you==smart) {
    tl_step(&quot;Smart Test&quot;, PASS, &quot;You are smart&quot;
    }
    else {
    tl_step(&quot;Smart Test&quot;, FAIL, &quot;You're NOT Smart&quot;
    }</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">Also note that since both PASS and E_OK equal 0, where applicable you can simply use the return value of many WR functions as your pass/fail indicator (since any non-zero value inicates a failure):
    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">rc = set_window(&quot;My Window&quot;, 20);
    tl_step(&quot;Launch 'My Window'&quot;, rc, &quot;Return code = &quot; &amp; rc);</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">
    web site | [url=http://www.ebookworm.us/[/url]

    [i]...Sound trumpets! Every trumpet in the host! / Sixty thousand, on these words, sound, so high the mountains sound, and the valleys resound.&lt;/i] (The Song of Roland)

  7. #7
    Moderator
    Join Date
    Mar 2002
    Location
    Tampa Bay
    Posts
    7,673
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: tl_step

    That's a snappy idea, Charles - I like it!

 

 

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 9.38%
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 05:52 PM.

Copyright BetaSoft Inc.