From 6d9031afa5d5c8d921c53b5b1e752d1a8839f8d3 Mon Sep 17 00:00:00 2001 From: Frederic Marec Date: Thu, 23 May 2019 09:23:52 +0200 Subject: aft: adapt afb-test allow skip test Add skipped functions Add testVerbStatusSkipped Add assertVerbStatusSkipped Add documentation Bug-AGL: SPEC-2447 Change-Id: I84dd96b29e4838d6a1b951dc2aa230b6da3c048a Signed-off-by: Frederic Marec --- docs/Reference/0_BindingTestFunctions.md | 12 ++++++++++++ docs/Reference/1_BindingAssertFunctions.md | 6 ++++++ 2 files changed, 18 insertions(+) (limited to 'docs') diff --git a/docs/Reference/0_BindingTestFunctions.md b/docs/Reference/0_BindingTestFunctions.md index 8da86da..03905fa 100644 --- a/docs/Reference/0_BindingTestFunctions.md +++ b/docs/Reference/0_BindingTestFunctions.md @@ -20,6 +20,18 @@ (if set) functions, *tearDown* will be ran after your *testFunction* and **_AFT.afterEach()** (if set) functions. +* **_AFT.testVerbStatusSkipped(testName, api, verb, args, setUp, tearDown, msg)** + + Skip a test. + + *msg* is a message to indicate the reason why the test is skip, + it must contain your test name if you want to parse the output. + *setUp* and *tearDown* are functions that can be added to your context, + it works just like **_AFT.beforeEach()** and **_AFT.afterEach()**, + *setUp* will be ran before your *testFunction* and **_AFT.beforeEach()** + (if set) functions, *tearDown* will be ran after your *testFunction* and + **_AFT.afterEach()** (if set) functions. + * **_AFT.testVerbResponseEquals(testName, api, verb, args, expectedResponse, setUp, tearDown)** Test that the call of a verb successfully returns and that verb's response diff --git a/docs/Reference/1_BindingAssertFunctions.md b/docs/Reference/1_BindingAssertFunctions.md index 918bd04..a007875 100644 --- a/docs/Reference/1_BindingAssertFunctions.md +++ b/docs/Reference/1_BindingAssertFunctions.md @@ -8,6 +8,12 @@ The inverse than above. +* **_AFT.assertVerbStatusSkipped(api, verb, args, msg)** + + Skip a test. + + *msg* must contain your test name if you want to parse the output. + * **_AFT.assertVerbResponseEquals(api, verb, args, expectedResponse)** Test that the call of a verb successfully returns and that verb's response -- cgit 1.2.3-korg