diff options
author | CorentinLGS <corentinlgs@gmail.com> | 2018-08-06 11:31:27 +0200 |
---|---|---|
committer | CorentinLGS <corentinlgs@gmail.com> | 2018-08-08 11:32:42 +0200 |
commit | f8129b73691310f4576c7033310d59d4b80fefb3 (patch) | |
tree | 018d67e270cf507a81fa5d07e60b0e5a69e24bc7 | |
parent | a1aa316178b097ad50417360f4f9e777b7f9999e (diff) |
Tested and added doc on updated assertEvtGrpReceived functions
- Tested changed assertEvtGrpReceived functions
- Updated doc about it
Change-Id: I91725152e54ebba9d65e501da54a72801699c760
Signed-off-by: Corentin Le Gall <corentinlgs@gmail.com>
-rw-r--r-- | conf.d/controller/lua.d/helloworld.lua | 5 | ||||
-rw-r--r-- | docs/2_LaunchTheExample.md | 2 | ||||
-rw-r--r-- | docs/WriteYourTests/Reference/0_BindingTestFunctions.md | 16 | ||||
-rw-r--r-- | docs/WriteYourTests/Reference/1_BindingAssertFunctions.md | 16 |
4 files changed, 18 insertions, 21 deletions
diff --git a/conf.d/controller/lua.d/helloworld.lua b/conf.d/controller/lua.d/helloworld.lua index bffb230..41ba603 100644 --- a/conf.d/controller/lua.d/helloworld.lua +++ b/conf.d/controller/lua.d/helloworld.lua @@ -55,8 +55,9 @@ _AFT.testVerbStatusSuccess('testEventPushanotherEvent', 'hello', 'eventpush', {t _AFT.testVerbStatusSuccess('testGenerateWarning', 'hello', 'verbose', {level = 4, message = 'My Warning message!'}) -_AFT.testEvtGrpReceived("testEventGroupReceived",{"hello/anEvent","hello/anotherEvent"},300000) -_AFT.testEvtGrpNotReceived("testEventGroupNotReceived",{"hello/anEvent","hello/anotherEvent"},300000) +_AFT.testEvtGrpReceived("testEventGroupReceived",{["hello/anEvent"]=1,["hello/anotherEvent"]=1},300000) +_AFT.testEvtGrpReceived("testEventGroupReceived",{["hello/anEvent"]=2,["hello/anotherEvent"]=1},300000) +_AFT.testEvtGrpReceived("testEventGroupReceived",{["hello/anEvent"]=0,["hello/anotherEvent"]=0},300000) _AFT.testEvtReceived("testanEventReceived", "hello/anEvent",300000) _AFT.testEvtReceived("testanotherEventReceived", "hello/anotherEvent",300000) diff --git a/docs/2_LaunchTheExample.md b/docs/2_LaunchTheExample.md index 2186d53..e968f9a 100644 --- a/docs/2_LaunchTheExample.md +++ b/docs/2_LaunchTheExample.md @@ -3,7 +3,7 @@ To launch your tests, enter this command. ```bash -afb-daemon --name afbd-test --port=1234 --workdir=package --ldpaths=/opt/AGL/lib64/afb:lib --token= -vvv --tracereq=common +afb-daemon --name aft-aftest --port=1234 --workdir=package --ldpaths=/opt/AGL/lib64/afb:lib --token= -vvv --tracereq=common ``` On afb-daemon startup you should have all the app-framework config displayed: diff --git a/docs/WriteYourTests/Reference/0_BindingTestFunctions.md b/docs/WriteYourTests/Reference/0_BindingTestFunctions.md index da8f014..8da86da 100644 --- a/docs/WriteYourTests/Reference/0_BindingTestFunctions.md +++ b/docs/WriteYourTests/Reference/0_BindingTestFunctions.md @@ -89,14 +89,12 @@ received, you have to register the event with the test framework using **_AFT.addEventToMonitor** function. - Check if events has been correctly received in time (timeout in µs). An - event name use the application framework naming scheme: **api/event_name**. - -* **_AFT.testGrpEvtNotReceived(testName, eventGrp, timeout, setUp, tearDown)** + The table has to have this format: + ```lua + eventGrp = {["api/event_name_1"]=1,["api/event_name_2"]=2,["api/event_name_3"]=5} + ``` + As you can see, in the table, event names are table keys and the value stored are + the number of time that the events have to be received. - Prior to be able to check that a group of event (a table of event) has not - been received, you have to register the event with the test framework using - **_AFT.addEventToMonitor** function. - - Check if event has not been correctly received in time (timeout in µs). An + Check if events has been correctly received in time (timeout in µs). An event name use the application framework naming scheme: **api/event_name**.
\ No newline at end of file diff --git a/docs/WriteYourTests/Reference/1_BindingAssertFunctions.md b/docs/WriteYourTests/Reference/1_BindingAssertFunctions.md index 1202976..918bd04 100644 --- a/docs/WriteYourTests/Reference/1_BindingAssertFunctions.md +++ b/docs/WriteYourTests/Reference/1_BindingAssertFunctions.md @@ -53,14 +53,12 @@ received, you have to register the event with the test framework using **_AFT.addEventToMonitor** function. - Check if events has been correctly received in time (timeout in µs). - An event name use the application framework naming scheme: **api/event_name**. - -* **_AFT.assertGrpEvtNotReceived(eventGrp, timeout)** + The table has to have this format: + ```lua + eventGrp = {["api/event_name_1"]=1,["api/event_name_2"]=2,["api/event_name_3"]=5} + ``` + As you can see, in the table, event names are table keys and the value stored are + the number of time that the events have to be received. - Prior to be able to check that a group of event (a table of event) has not - been received, you have to register the event with the test framework using - **_AFT.addEventToMonitor** function. - - Check if events has not been correctly received in time (timeout in µs). + Check if events has been correctly received in time (timeout in µs). An event name use the application framework naming scheme: **api/event_name**.
\ No newline at end of file |