Forum Discussion
Nspyre_BV_Suppo
14 years agoNew Contributor
Hi Ole,
Thank you for the reply, i tried your Groovy Script code but gave the error:
"org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script19.groovy: 1: unexpected char: '#' @ line 1, column 36. return context.expand("${DataSource#TestCase-Nr}") ^ org.codehaus.groovy.syntax.SyntaxException: unexpected char: '#' @ line 1, column 36. at org.codehaus.groovy.antlr.AntlrParserPlugin.transformCSTIntoAST(AntlrParserPlugin.java:134) at ... "
I have changed your quotes >"< to single quotes >'< and that helped me, when running the script i got the latest testcase Nr "M300301-T010". But... the row nr did nog change on the report, see the screenshot (With and without your solution):

I see that step 2 appears in the report, but the whole list of all transfers is to much of it
Can this be limited to just the testcase-Nr.
The report shows every transfer in it, but the main target is to replace the text "Current Row = 1" to "Current testcase = M300301-T010" so we can validate the outcome with our testcases. My question, do you know the code for change this "Current Row" item on the report?
Somthing: return report.Current.Row-NR = context.expand( '${DataSource#TestCase-Nr}' )???
Manny thanks in advance
p.s. I am not familiar with Groovy script, perhaps you have a link to a guide for me?
Thank you for the reply, i tried your Groovy Script code but gave the error:
"org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script19.groovy: 1: unexpected char: '#' @ line 1, column 36. return context.expand("${DataSource#TestCase-Nr}") ^ org.codehaus.groovy.syntax.SyntaxException: unexpected char: '#' @ line 1, column 36. at org.codehaus.groovy.antlr.AntlrParserPlugin.transformCSTIntoAST(AntlrParserPlugin.java:134) at ... "
I have changed your quotes >"< to single quotes >'< and that helped me, when running the script i got the latest testcase Nr "M300301-T010". But... the row nr did nog change on the report, see the screenshot (With and without your solution):

I see that step 2 appears in the report, but the whole list of all transfers is to much of it
Can this be limited to just the testcase-Nr.The report shows every transfer in it, but the main target is to replace the text "Current Row = 1" to "Current testcase = M300301-T010" so we can validate the outcome with our testcases. My question, do you know the code for change this "Current Row" item on the report?
Somthing: return report.Current.Row-NR = context.expand( '${DataSource#TestCase-Nr}' )???
Manny thanks in advance
p.s. I am not familiar with Groovy script, perhaps you have a link to a guide for me?