Getting the error while executing the All_testcases.script in a file:
FAILURE Screen_Error.tiff STUnknownMessage ERROR: No Such Function: ‘testcase1’
I have the scripts the scripts basic1,jobinfo1,jobinfo2 etc… in test.suite
and the below code in All_testcases.script
put{ [basic1 testcase1],
[jobinfo1 testcase2],
[jobinfo2 testcase3],
[ jobinfo3 testcase4],
[jobinfo4 testcase5],
[media1 testcase6],
[media2 testcase7],
[media3 testcase8],
[media4 testcase9],
[layout1 testcase10],
[layout2 testcase11],
[layout3 testcase12],
[layout4 testcase13],
[layout5 testcase14],
[layout6 testcase15],
[layout7 testcase16],
[layout8 testcase17],
[layout9 testcase18],
[layout10 testcase19],
[color1 testcase20],
[color2 testcase21],
[color3 testcase22],
[color4 testcase23],
[color5 testcase24],
[image1 testcase25],
[Finishing1 testcase26],
[Finishing2 testcase27],
[Finishing3 testcase28],
[Finishing4 testcase29],
[Finishing5 testcase30],
[Finishing6 testcase31],
[Finishing7 testcase32],
[Finishing8 testcase33],
[Finishing9 testcase34],
[Finishing10 testcase35],
[Finishing11 testcase36],
[Finishing12 testcase37],
[Finishing13 testcase38],
[Finishing14 testcase39],
[Finishing15 testcase40],
[Finishing16 testcase41],
[stamping1 testcase42],
[stamping2 testcase43],
[stamping3 testcase44] } into mytestcases
put “/Volumes/Eggplant_Related/test.suite/resultsMailer.csv” into testfile
repeat with each testcase of mytestcases
runWithNewResults testcase
put the result into outcome
put testcase & "; " after file testfile
if outcome's status is "Failure" then
put "Failed" after file testfile
else
put "Passed" after file testfile
end if
put return after file testfile
end repeat
open testfile with “TextEdit”