Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Update README.md
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,45 @@ | ||
# framework_for_postman | ||
|
||
|
||
This hack/add-on to Postman can be use for better automatic testing, repetition of tests cases and better logging. | ||
|
||
This was build on the side as a hobby, and I can offer best-effort support only. | ||
|
||
When you launch Postman, or any Runner window, another reporting window should pop up. | ||
|
||
You can now use a few methods to define sequence of tests cases, and to repeat the whole thing. | ||
|
||
For example : | ||
|
||
TC-1 | ||
Sequence-1 : | ||
Pre-request script : | ||
//All my invalid characters for testing, in an array | ||
repetition_data_array = FRAMEWORK.INVALID_CHARACTERS.split(''); | ||
FRAMEWORK.repeatTC_for(repetition_data_array); | ||
FRAMEWORK.test_init("TC-1","Test case name",['testcategories#1']); | ||
FRAMEWORK.sequence_init("Part1 - Create"); | ||
Tests : | ||
FRAMEWORK.sequence_end(tests); | ||
Sequence-2 : | ||
Pre-request script | ||
FRAMEWORK.sequence_init("Part2 - Modify"); | ||
Tests : | ||
FRAMEWORK.sequence_end(tests); | ||
Sequence-3 : | ||
Pre-request script | ||
FRAMEWORK.sequence_init("Part3 - Validation"); | ||
Tests : | ||
FRAMEWORK.sequence_end(tests); | ||
FRAMEWORK.test_exit(); | ||
TC-2 | ||
|
||
|
||
|
||
|
||
***Every tests cases should have it's subfolder in a collection, and every sequence is a test under that folder. | ||
|
||
Collection/ | ||
TestCase-TC1/ | ||
sequence #1 | ||
sequence #2 |