Matt,
Here we go. The printing is the file name. I did put mytestcases right after I create the list below, there is nothing display/return
if there is a file “~buffalo/Desktop/kiosk8_log” then
delete file “~buffalo/Desktop/kiosk8_log”
end if
create file “~buffalo/Desktop/kiosk8_log”
repeat 8 times
put ([“Printing” testcase61],
[“Printing” testcase62],
[“Printing” testcase63]) into mytestcases
put mytestcases
set the strictProperties to true
repeat with each testcase of mytestcases
try
get Printing.(testcase)
set the itemDelimiter to tab
put file( the logfile of the last item of scriptResults(testcase) ) into theLog
put time( the first item of the first line of theLog) into startTime
convert startTime to long time
put time(the first item of the last line of theLog) into endTime
convert endTime to long time
put the third word of the last item of the last line of theLog into executionTime
open file “~buffalo/Desktop/kiosk8_log” for appending
write testcase & “:” & " " & startTime & " " & endTime & " " & executionTime to file “~buffalo/Desktop/kiosk8_log” at end
close file “~buffalo/Desktop/kiosk8_log”
put testcase & “; Passed” into reportLine
catch error
put testcase & ";Failed; " & error.reason into reportLine
end try
end repeat
add 1 to myloop
put “Printing iteration is” & " " & myloop
end repeat
function testcase61
put failed into testfailed
put passed into testpassed
wait 60 // add a 1-minute delay between testcases
[“ComonShare” FindWelcomeScreen]
(* if [“ComonShare” FindWelcomeScreen] is true then
put the time into starttime
end if *)
if imagefound(enterusernamescreen) then
[“ComonShare” PrintLogin]
else
set reporterror = “Testcase61 is failed at login”
LogError reporterror
return testfailed & reporterror
exit function
end if
put ((mainprintbutton, mainscreen), (documentvaultbutton, docstored),
(kiosktiff, selectvaultdocscreen), (vaultselectdocbutton, selectvaultdocscreen),
(printdocbutton, printdocscreen),
(continuetransactionbutton, howtopayfortransactionscreen),
(iagreebutton, acceptagreementscreen), (nothanksbutton, printedreceiptscreen),
(logoutimdonebutton, printtaskcompleted)) into mytestcaseimages
repeat with each item of mytestcaseimages
if [“ComonShare” FindCurrentScreenAndPressButton: it] is false then
set reporterror = "Testcase61 is failed at " & " " & it
LogError reporterror
return testfailed & reporterror
exit function
end if
end repeat
return testpassed
end testcase61
function testcase62
put failed into testfailed
put passed into testpassed
wait 60 // add a 1-minute delay between testcases
[“ComonShare” FindWelcomeScreen]
if imagefound(enterusernamescreen) then
[“ComonShare” PrintLogin]
else
set reporterror = “Testcase62 is failed at login”
LogError reporterror
return testfailed & reporterror
exit function
end if
put ((mainprintbutton, mainscreen), (documentvaultbutton, docstored),
(kioskpdf, selectvaultdocscreen), (vaultselectdocbutton, selectvaultdocscreen),
(printdocbutton, printdocscreen),
(continuetransactionbutton, howtopayfortransactionscreen),
(iagreebutton, acceptagreementscreen), (nothanksbutton, printedreceiptscreen),
(logoutimdonebutton, printtaskcompleted)) into mytestcaseimages
repeat with each item of mytestcaseimages
if ["ComonShare" FindCurrentScreenAndPressButton: it] is false then
set reporterror = "Testcase62 is failed at " & " " & it
LogError reporterror
return testfailed & reporterror
exit function
end if
end repeat
return testpassed
end testcase62