SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 10 of 10
  1. #1
    Junior Member
    Join Date
    Feb 2005
    Location
    Perth, Western Australia
    Posts
    23
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Test Step Numbering

    Hello

    I have been looking into using templates for test procedures/cases.

    Has anybody found a way to renumber the test case steps after the test case + template has been moved over to the test run?

    At the moment it looks like this :-
    Step 1 <description>, <expected result>
    Step 2 <description>, <expected result>
    Step 3 <description>, <expected result>
    Step 1 <description>, <expected result>
    Step 2 <description>, <expected result>
    ...

    The first 3 steps are the manual test, the second set of 1 & 2 steps are the template.

    How can I get it the be numbered 1 to 5?

    Thanks
    J
    --
    When the mind, one pointed and fully focused, knows the supreme silence in the Heart, this is true learning - Sri Ramana Maharshi

  2. #2
    Advanced Member
    Join Date
    Aug 2001
    Location
    Minneapolis, MN
    Posts
    953
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Test Step Numbering

    Don't know which version of TD you are using, but in 7.6 and 8.0 there is a 'renumber steps' button that you can click that'll renumber your test steps for you.

    Piece o' cake.
    Jason Trebilcock

    "The single biggest problem in communication is the illusion that it has taken place."

    -George Bernard Shaw, Irish playwright and Nobel Prize winner, 1856-1950

  3. #3
    Junior Member
    Join Date
    Feb 2005
    Location
    Perth, Western Australia
    Posts
    23
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Test Step Numbering

    Jason

    Thats correct, but I am not talking about the Test Plan View.

    I am talking about the Test Lab --> Manual Run view of the test case.

    Try this, create a test "Manual_1". Add 3 steps using the default step name - Step 1, 2 etc.

    Do the same for a "Template_1" test.

    After step 3 in the manual test, make a call to the template test.

    Now create a test run and add the manual test case.

    Execute/run (CTRL + F9) the manual test.

    Then you will see what I mean.

    Regards
    Jonathan
    --
    When the mind, one pointed and fully focused, knows the supreme silence in the Heart, this is true learning - Sri Ramana Maharshi

  4. #4
    Moderator
    Join Date
    Mar 2004
    Location
    West Coast of the East Coast!
    Posts
    7,756
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Test Step Numbering

    I see what you are saying, but I don't comprehend why you would want to do this. As the Template Test is a separate test and has it's own sequence. However the only work-a-round I can see is to number your steps in the Template Test step 4 & Step 5, then the next sequential steps in the calling test as Step 6 & Step 7. This seems like a bad way to run it, and if you add a step in the future you will have to renumber both the main test steps and the Template Test Steps. I suppose you could number the steps in the called Template Step 4A, Step 4B, etc. But that doesn't get you much either. There are some things in heaven and earth and Mercury which are just not controllable!

    Good Luck!
    Personal Comment

    Success is the ability to go from one failure to another with no loss of enthusiasm.
    ~ Winston Churchill ~


    ...Rich Wagner

  5. #5
    Junior Member
    Join Date
    Feb 2005
    Location
    Perth, Western Australia
    Posts
    23
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Test Step Numbering

    Jason

    The "Final" solution.

    Leave all the step names blank !

    The reason for doing this:
    We dump out all the test cases from a test run into a word document. This document is forwarded to the client as proof of the testing (for FAT).

    So we will write a macro for word to "re-number" the test steps.

    Thanks, I posted in case somebody else had a neat solution.

    Jonathan
    --
    When the mind, one pointed and fully focused, knows the supreme silence in the Heart, this is true learning - Sri Ramana Maharshi

  6. #6
    Advanced Member cgrzelka's Avatar
    Join Date
    Feb 2005
    Location
    Bordeaux, France
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Test Step Numbering

    Hi Jonathan,
    You did not mention which version of TD you're using, so I'll suppose you're on TD80 SP2.

    You can rename run steps with a little bit of workflow in the Manual Run module.

    When the user click the Exec Steps button, the ActionCanExecute function gets called but the run steps are not created yet: we'll flag that we're just starting a run so that in Step_MoveTo we can renumber the steps.

    Here is the code (did work for me):
    </font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">Dim fStarting
    fStarting = False

    Function ManualRun_ActionCanExecute(ActionName)
    On Error Resume Next
    If ActionName = &quot;act_exec_steps&quot; Then fStarting = True
    ManualRun_ActionCanExecute = True
    On Error GoTo 0
    End Function

    Sub ManualRun_Step_MoveTo
    Dim rn

    On Error Resume Next
    If fStarting Then
    fStarting = False
    Set rn = TDConnection.RunFactory (CLng(Run_Fields.Field(&quot;RN_RUN_ID&quot.Value))
    RenameSteps rn
    Set rn = Nothing
    End If
    On Error GoTo 0
    End Sub

    Sub RenameSteps (rn)
    On Error Resume Next
    Dim stepFact
    Dim stepList
    Dim step
    Dim stepNumber

    Set stepFact = rn.StepFactory
    Set stepList = stepFact.NewList(&quot;&quot
    stepNumber = 1
    For Each step in stepList
    step.Name = &quot;Step &quot; &amp; CStr (stepNumber)
    stepNumber = stepNumber + 1
    step.Post
    Next
    Set stepList = Nothing
    Set stepFact = Nothing
    End Sub</pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">This gets also called when you continue the run.

    HTH. Christian

  7. #7
    Moderator
    Join Date
    Mar 2004
    Location
    West Coast of the East Coast!
    Posts
    7,756
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Test Step Numbering

    Very funny Jonathan, You had us going thinking that we were helping you. Why didn't you tell us your solution and ask for comments and possible alternatives to it? You have still not answered why in the world would you want to do what you are doing, as they are still separate tests and should be noted as such.

    You have lost some credibility with us.
    Personal Comment

    Success is the ability to go from one failure to another with no loss of enthusiasm.
    ~ Winston Churchill ~


    ...Rich Wagner

  8. #8
    Junior Member
    Join Date
    Feb 2005
    Location
    Perth, Western Australia
    Posts
    23
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Test Step Numbering

    Hi Rich

    At the time of writing we had not thought of making the step name blank and then running a macro on the word doc.

    Christian
    Thanks a heap - your solution is exactly what I was looking for. I will pass it onto the Test Manager and see if he likes it.

    As I said earlier, the problem is when the test set is dumped into word (using the default numbering by TD) we get steps 1,2,3,1,2 ...

    The original post was not a joke or intended to embarrass anyone.

    Regards
    Jonathan.
    --
    When the mind, one pointed and fully focused, knows the supreme silence in the Heart, this is true learning - Sri Ramana Maharshi

  9. #9
    Moderator
    Join Date
    Mar 2004
    Location
    West Coast of the East Coast!
    Posts
    7,756
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Test Step Numbering

    But what's wrong with 1,2,3,1,2?

    I apologize for attacking you. I had a bad day yesterday.
    Personal Comment

    Success is the ability to go from one failure to another with no loss of enthusiasm.
    ~ Winston Churchill ~


    ...Rich Wagner

  10. #10
    Junior Member
    Join Date
    Feb 2005
    Location
    Perth, Western Australia
    Posts
    23
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Test Step Numbering

    It just looks 'odd' when printing the test case document for the client.

    Apology accepted Rich.

    Jonathan
    --
    When the mind, one pointed and fully focused, knows the supreme silence in the Heart, this is true learning - Sri Ramana Maharshi

 

 

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 06:04 AM.

Copyright BetaSoft Inc.