Does anyone have another way to get a specific time of a certain test? [message #1823614] |
Mon, 30 March 2020 05:42 |
Eclipse User |
|
|
|
Hi Guys,
I was planning to write my own report using excel sheets.
But when I try to use minus from my endTest to my startTest Im getting this error (I attached an image)
global [val Excel "C:/Users/Bulan/TestAutomation/Performance/Files/Result.xlsx"]
global [val TestSheet "Sheet1"]
global [val ExcelConnect [read-excel-file $Excel $TestSheet]]
global [val Date[get-time | format-time -format "MM/DD/YY" ]]
global [val startTest 0]
global [val endTest 0]
global [val duration 0]
proc "startTest"{
global [val startTest [get-time | format-time -format "hh:mm:ss" ]] -override
}
proc "endTest"{
global [val endTest [get-time | format-time -format "hh:mm:ss" ]] -override
}
proc "generate-Time-Duration"{
startTest
wait 2000
endTest
global [val duration [minus $endTest $startTest]]
log $duration
}
generate-Time-Duration
Attachment: error.PNG
(Size: 23.94KB, Downloaded 76 times)
|
|
|
Powered by
FUDForum. Page generated in 0.03931 seconds