X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Automation%2FTests%2FResource%2FKeywords.robot;h=20b4e3a74926ff432bf8ce1168c151089704afd4;hb=947897d1f1df89967f4db1862d67a5649e10f3a2;hp=e5af3d3c6a3defc51b7553de0ba22594f93fc78f;hpb=4db397dbfa07d202f1a7134e1a7a52b8fb3b5d8a;p=ric-plt%2Fe2mgr.git diff --git a/Automation/Tests/Resource/Keywords.robot b/Automation/Tests/Resource/Keywords.robot index e5af3d3..20b4e3a 100755 --- a/Automation/Tests/Resource/Keywords.robot +++ b/Automation/Tests/Resource/Keywords.robot @@ -18,20 +18,17 @@ *** Settings *** Documentation Keywords file +Library ${CURDIR}/scripts.py Resource ../Resource/resource.robot Library OperatingSystem - - - *** Keywords *** Post Request setup node b x-2 Set Headers ${header} POST /v1/nodeb/x2-setup ${json} - Get Request node b enb test1 Sleep 1s GET /v1/nodeb/test1 @@ -41,8 +38,6 @@ Get Request node b enb test2 Sleep 1s GET /v1/nodeb/test2 - - Post Request setup node b endc-setup Set Headers ${header} POST /v1/nodeb/endc-setup ${endcjson} @@ -51,8 +46,35 @@ Post Request setup node b endc-setup Prepare Simulator For Load Information Run And Return Rc And Output ${stop_simu} Run And Return Rc And Output ${docker_Remove} - Run And Return Rc And Output ${run_simu} + ${flush} scripts.flush + Should Be Equal As Strings ${flush} True + Run And Return Rc And Output ${run_simu_load} + ${result}= Run And Return Rc And Output ${docker_command} + Should Be Equal As Integers ${result[1]} 5 + +Prepare Enviorment + ${flush} scripts.flush + Should Be Equal As Strings ${flush} True + Run And Return Rc And Output ${stop_simu} + Run And Return Rc And Output ${docker_Remove} + Run And Return Rc And Output ${run_simu_regular} + Run And Return Rc And Output ${restart_e2adapter} + ${result}= Run And Return Rc And Output ${docker_command} + Should Be Equal As Integers ${result[1]} 5 + +Start E2 + Run And Return Rc And Output ${start_e2} + ${result}= Run And Return Rc And Output ${docker_command} + Should Be Equal As Integers ${result[1]} 5 + Sleep 2s + +Start Redis + Run And Return Rc And Output ${redis_remove} + Run And Return Rc And Output ${start_redis} ${result}= Run And Return Rc And Output ${docker_command} Should Be Equal As Integers ${result[1]} 5 + + +