SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Jul 2007
    Posts
    97
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    how to run different testcases from two .t file

    hi to all,

    will it be possible to run multiple test cases from two different .t file
    for ex 1.t file conatin testcase 1, test case 2, testcase 3 & 2.t file contain testcase 4, testcase 5, testcase 6 . if the requirement is i need to run the testcase 1 from 1.t file & then testcase 5 & 6 from 2.t file how do that ?
    i need to write the main function or is their is another way out to do ?

    thanks
    raghu

  2. #2
    Senior Member
    Join Date
    Jan 2007
    Posts
    147
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: how to run different testcases from two .t file

    Use Testplans to organise the test run as required.

  3. #3
    Junior Member
    Join Date
    Nov 2007
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: how to run different testcases from two .t file

    If you have a testplan plan 1.pln that calls the script 1.t and from the same testplan you want to call a test case that is defined in 2.t , then at the top of 1.t , you can use a statement
    include 2.t
    So when you run the plan 1.pln, it will look for testcases in 1.t and 2.t - both.

    And another simple way - as ttk also mentioned is that you have 2 test plans 1.pln and 2.pln to refer to the respective scripts and call the respective testcases.

    Anshu

  4. #4
    Advanced Member
    Join Date
    May 2005
    Location
    Fremont, CA
    Posts
    832
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: how to run different testcases from two .t fil

    I'm not sure if this will also work, but logically it should...
    include your .t file in another .t file
    for example in 1.t write the following statement
    use "<full path to 2.t file>
    then in 1.t file use a main ()
    like this
    <font class="small">Code:</font><hr /><pre>
    void main ()
    testcase1 () // from 1.t file
    testcase2 () // from 2.t file
    </pre><hr />

    good luck

    dimaj

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

    Re: how to run different testcases from two .t fil

    Sorry - i made a mistake in my reply(above).
    Instead of
    include 2.t -&gt; it should be
    use 2.t

  6. #6
    Member
    Join Date
    Jul 2007
    Posts
    97
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: how to run different testcases from two .t fil

    hi to all,
    ttk ,Anshu, dimaj.

    thanks for u r reply , they are helpful.

    cheers
    raghu..

 

 

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 10.00%
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 02:45 AM.

Copyright BetaSoft Inc.