Our test team likes to create test outlines and plans in plain old text. We have lots of vim users here.
I found that I was taking too much time to insert a test plan into TestLink, so I came up with a faster way that worked for our team. At the suggestion of management, I've thrown our project on GitHub.
This is, without a doubt, a work in progress, but it's functional and in-use in a production environment. It may not fit everyone's personal work style, but it works great for me and my co-workers.
https://github.com/avleaf/Test-Outline- ... verter.php
Code: Select all
./TestOutlineConverter.php <INFILE> <OUTFILE>
When creating a plain text test plan, preface each line with one of the following keys:
'+ ' Starting a line with '+ ' creates a test case
'- ' '- ' Denotes a Test Step
'= ' '= ' Denotes Expected Results. If no associated step exists, a blank step is created.
[comments]
Both C-style (two consecutive slashes '//') and shell-style ('# ') comments are allowed.
[no line prefix]
No Line prefix means it will get entered into the Test Case 'Summary' in Test Link.
[blank lines]
Blank lines will be ignored.
Sample Test Plan:
Code: Select all
+ Test Case Name
Summary line1
"Continued Summary"
More Summary
- Test Step 1
= Expected 1
- Test Step 2
= Expected 2
+ Test Case Name2
// This line will be commented out
# So will this line
- Test Step 1
= Expected 1a
= Expected 1b
- Test Step 2
= Expected 2
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<testcases>
<testcase name="Test Case Name">
<summary>Summary line1
"Continued Summary"
More Summary
</summary>
<steps>
<step>
<step_number>1</step_number>
<actions>Test Step 1</actions>
<expectedresults>Expected 1</expectedresults>
</step>
<step>
<step_number>2</step_number>
<actions>Test Step 2</actions>
<expectedresults>Expected 2</expectedresults>
</step>
</steps>
</testcase>
<testcase name="Test Case Name2">
<steps>
<step>
<step_number>1</step_number>
<actions>Test Step 1</actions>
<expectedresults>Expected 1a</expectedresults>
</step>
<step>
<step_number>2</step_number>
<actions></actions>
<expectedresults>Expected 1b</expectedresults>
</step>
<step>
<step_number>3</step_number>
<actions>Test Step 2</actions>
<expectedresults>Expected 2</expectedresults>
</step>
</steps>
</testcase>
</testcases>