From eb4d2471f1609e217b2a3a919eeb7d76ca1c7417 Mon Sep 17 00:00:00 2001 From: Frederic Marec Date: Tue, 9 Apr 2019 17:52:22 +0200 Subject: Fix event management in test framework Fix event receive Fix event not receive Fix lockwait event Remove trailing indentation Bug-AGL: SPEC-2374 Change-Id: Ie64b23c242bc13dcf7af96ff3ed2316bf6cad5f7 Signed-off-by: Frederic Marec (cherry picked from commit 5c3503e35c1b883e97ed6874f7683d0a7b5938b7) --- docs/4_Tests_Examples.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs') diff --git a/docs/4_Tests_Examples.md b/docs/4_Tests_Examples.md index caccea4..a68fb9f 100644 --- a/docs/4_Tests_Examples.md +++ b/docs/4_Tests_Examples.md @@ -43,6 +43,8 @@ The example will run some basics tests on API verb calls and events received. _AFT.testVerbStatusSuccess('testEventSub', 'hello', 'eventsub', {tag = 'evt'}) _AFT.testVerbStatusSuccess('testEventPush', 'hello', 'eventpush', {tag = 'evt', data = { key = 'weird others data', another_key = 123.456}}) + _AFT.testVerbStatusSkipped('testEventSub', 'hello', 'eventsub', {tag = 'evt'}) + _AFT.testVerbStatusSuccess('testGenerateWarning', 'hello', 'verbose', {level = 4, message = 'My Warning message!'}) _AFT.testEvtGrpReceived("TestEventGroupReceived",{"hello/anEvent","hello/anotherEvent"},300000) @@ -96,6 +98,7 @@ function _callback(responseJ) _AFT.assertStrContains(responseJ.response, "Some S function _callbackError(responseJ) _AFT.assertStrContains(responseJ.request.info, "Ping Binder Daemon fails") end _AFT.describe("testAssertVerbStatusSuccess",function() _AFT.assertVerbStatusSuccess('hello', 'ping', {}) end) +_AFT.describe("testAssertVerbStatusSkipped",function() _AFT.assertVerbStatusSkipped('hello', 'ping', {}) end) _AFT.describe("testAssertVerbResponseEquals",function() _AFT.assertVerbResponseEquals('hello', 'ping', {},"Some String") end) _AFT.describe("testAssertVerbCb",function() _AFT.assertVerbCb('hello', 'ping', {},_callback) end) _AFT.describe("testAssertVerbStatusError",function() _AFT.assertVerbStatusError('hello', 'pingfail', {}) end) -- cgit 1.2.3-korg