Improving test logs
Change-Id: I12583c5a378465a19d703c4718b3a441ee1879fc
diff --git a/src/test/cord-api/Tests/XosScaleValidations/xos-scale-att-workflow.robot b/src/test/cord-api/Tests/XosScaleValidations/xos-scale-att-workflow.robot
index d084334..a2838f8 100644
--- a/src/test/cord-api/Tests/XosScaleValidations/xos-scale-att-workflow.robot
+++ b/src/test/cord-api/Tests/XosScaleValidations/xos-scale-att-workflow.robot
@@ -6,6 +6,7 @@
Library Collections
Library String
Library OperatingSystem
+Library DateTime
Library ./utils/devices.py
Suite Setup Setup
Suite Teardown Teardown
@@ -63,7 +64,14 @@
${events} = Generate Onu Events
: FOR ${e} IN @{events}
\ Send Kafka Event onu.events ${e}
+ ${start} = Get Time
Wait Until Keyword Succeeds ${timeout} 5s Validate ATT_SI Number ${events}
+ ${end} = Get Time
+ Log To Console Test started at: ${start}
+ Log To Console Test ended at: ${end}
+ ${duration} = Subtract Date From Date ${end} ${start}
+ Log To Console Test duration: ${duration}
+
*** Keywords ***
@@ -73,6 +81,7 @@
${jsondata} = To Json ${res.content}
${length} = Get Length ${jsondata['items']}
${total} = Get Length ${events}
+ Log To Console ${length} Service Instances created, expecting ${total}
Should Be Equal ${length} ${total}
ModelPolicy completed ${jsondata['items']}
@@ -80,12 +89,14 @@
[Documentation] Check that model_policies had run for all the items in the list
[Arguments] ${list}
# NOTE we assume that here we get res.content["items"]
+ # TODO print something to the console to notify the user that this test is still running
: FOR ${i} IN @{list}
\ Should Be Equal As Integers ${i["policy_code"]} 1
Setup
${target} = Evaluate ${num_olts} * ${num_pon_ports} * ${num_onus}
Log Testing with ${target} ONUs
+ Log To Console Testing with ${target} ONUs
Connect Producer ${cord_kafka}:9092 onu.events
Connect Producer ${cord_kafka}:9092 authentication.events
Connect Producer ${cord_kafka}:9092 dhcp.events