From 08486cf3a7972219c3d017d5e47a2c802b225794 Mon Sep 17 00:00:00 2001 From: JohnKeeney Date: Tue, 24 May 2022 12:34:49 +0100 Subject: Attempt to get stdout&stderr for CSIT tests Also small tweak for RTD documentation Issue-ID: CCSDK-3675 Change-Id: Idd8acca0e07dc45c6f76a78a321b1075f3ee31ef Signed-off-by: JohnKeeney --- csit/tests/healthcheck/test1.robot | 11 +++++++---- csit/tests/healthcheck/test2.robot | 13 ++++++++----- csit/tests/healthcheck/test3.robot | 13 ++++++++----- 3 files changed, 23 insertions(+), 14 deletions(-) (limited to 'csit/tests') diff --git a/csit/tests/healthcheck/test1.robot b/csit/tests/healthcheck/test1.robot index e65928a3..a8eba153 100644 --- a/csit/tests/healthcheck/test1.robot +++ b/csit/tests/healthcheck/test1.robot @@ -5,12 +5,15 @@ Library Process *** Variables *** ${health_check} ${SCRIPTS}/healthcheck/test/health_check.sh - +${test1_stdout} ${OUTPUT_DIR}/test1_healthcheck_STDOUT.log +${test1_stderr} ${OUTPUT_DIR}/test1_healthcheck_STDERR.log *** Test Cases *** Health check test case for NONRTRIC - [Documentation] Health check - ${cli_cmd_output}= Run Process ${health_check} - Log ${cli_cmd_output.stdout} + [Documentation] Health check - Test 1 + Log Variables + ${cli_cmd_output}= Run Process ${health_check} shell=no stdout=${test1_stdout} stderr=${test1_stderr} + Log Many Standard output: ${test1_stdout} ${\n} ${cli_cmd_output.stdout} + Log Many Standard error: ${test1_stderr} ${\n} ${cli_cmd_output.stderr} Should Be Equal as Integers ${cli_cmd_output.rc} 0 diff --git a/csit/tests/healthcheck/test2.robot b/csit/tests/healthcheck/test2.robot index 98151693..ae51982e 100644 --- a/csit/tests/healthcheck/test2.robot +++ b/csit/tests/healthcheck/test2.robot @@ -4,13 +4,16 @@ Library Process *** Variables *** -${pms_a1sim} ${SCRIPTS}/healthcheck/test/pms_a1sim.sh - +${pms_a1sim} ${SCRIPTS}/healthcheck/test/pms_a1sim.sh +${test2_stdout} ${OUTPUT_DIR}/test2_pms_a1sim_STDOUT.log +${test2_stderr} ${OUTPUT_DIR}/test2_pms_a1sim_STDERR.log *** Test Cases *** Health check test case for NONRTRIC - [Documentation] Deploy NONRTRIC without SDNC - ${cli_cmd_output}= Run Process ${pms_a1sim} - Log ${cli_cmd_output.stdout} + [Documentation] Deploy NONRTRIC without SDNC - Test 2 + Log Variables + ${cli_cmd_output}= Run Process ${pms_a1sim} shell=no stdout=${test2_stdout} stderr=${test2_stderr} + Log Many Standard output: ${test2_stdout} ${\n} ${cli_cmd_output.stdout} + Log Many Standard error: ${test2_stderr} ${\n} ${cli_cmd_output.stderr} Should Be Equal as Integers ${cli_cmd_output.rc} 0 diff --git a/csit/tests/healthcheck/test3.robot b/csit/tests/healthcheck/test3.robot index f735df05..f2687572 100644 --- a/csit/tests/healthcheck/test3.robot +++ b/csit/tests/healthcheck/test3.robot @@ -4,13 +4,16 @@ Library Process *** Variables *** -${pms_a1sim_sdnc} ${SCRIPTS}/healthcheck/test/pms_a1sim_sdnc.sh - +${pms_a1sim_sdnc} ${SCRIPTS}/healthcheck/test/pms_a1sim_sdnc.sh +${test3_stdout} ${OUTPUT_DIR}/test3_pms_a1sim_sdnc_STDOUT.sh.log +${test3_stderr} ${OUTPUT_DIR}/test3_pms_a1sim_sdnc_STDERR.sh.log *** Test Cases *** Health check test case for NONRTRIC - [Documentation] Deploy NONRTRIC with SDNC - ${cli_cmd_output}= Run Process ${pms_a1sim_sdnc} - Log ${cli_cmd_output.stdout} + [Documentation] Deploy NONRTRIC with SDNC - Test 3 + Log Variables + ${cli_cmd_output}= Run Process ${pms_a1sim_sdnc} shell=no stdout=${test3_stdout} stderr=${test3_stderr} + Log Many Standard output: ${test3_stdout} ${\n} ${cli_cmd_output.stdout} + Log Many Standard error: ${test3_stderr} ${\n} ${cli_cmd_output.stderr} Should Be Equal as Integers ${cli_cmd_output.rc} 0 -- cgit 1.2.3-korg