Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » Does anyone have another way to get a specific time of a certain test?(Trying to get start and end time and getting the duration of a test.)
Does anyone have another way to get a specific time of a certain test? [message #1823614] Mon, 30 March 2020 09:42
Justin Bulan is currently offline Justin BulanFriend
Messages: 3
Registered: March 2020
Junior Member
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 54 times)
Previous Topic:maven can not find 2.5.2-SNAPSHOT
Next Topic:Automating the opening of AUT via code in test
Goto Forum:
  


Current Time: Tue Feb 27 04:57:56 GMT 2024

Powered by FUDForum. Page generated in 0.03183 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top