Page 1 of 1

How To - Reuse Test Case Steps

Posted: Sun Nov 06, 2011 2:43 pm
by fman
==================================================================================================================
Keywords: reuse, test case, test case step, step
From mantis: http://mantis.testlink.org/view.php?id=4797
Fix Available.
==================================================================================================================

After testing Test Collab (http://www.testcollab.com), choose to copy their logic to reuse test step.
Idea is similar to note (0015339), but firts implementation will be Bare Bones => user will have to know what he want to add, without fancy choices.

following string has to be written on step:

[ghost]"Step":STEPNUMBER,"TestCase":"FULL EXTERNAL TEST CASE ID","Version":"Version number"[/ghost]

During rendering content of this step will be replace with target step.

Example:
Test project name = 'Test Issue 555'
Test Case Prefix = 'DXI'
You create Test Case 'DXI-1' with 3 steps
Then you Create 'DXI-2' and want step 2 be same as STEP 1 of DXI-1
You create Step 2 and writte
[ghost]"Step":1,"TestCase":"DXI-1","Version":1[/ghost]

IMPORTATE NOTICE
Test Case External ID MUST BE enclosed bewteen " (DOUBLE QUOTES)
Version number MUST BE enclosed bewteen " (DOUBLE QUOTES)