From b6af469b2fe28f7546930a8791286c71c1b3e8ac Mon Sep 17 00:00:00 2001 From: Guillaume Nourry-Marquis Date: Fri, 25 Sep 2015 15:13:44 -0400 Subject: [PATCH] Update README.md --- README.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/README.md b/README.md index 9e548a5..51af1d6 100644 --- a/README.md +++ b/README.md @@ -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