Forum Discussion

zxsoap's avatar
zxsoap
Occasional Contributor
17 years ago

How to write a test result report from Groovy script?

All,

I would like to like a test result from groovy script which iterates through data source (excel)? Basicly, I want to have a test result say like ..

Testcasexxx  run_datasource_1 Passed
Testcasexxx  run_datasource_2 Passed
Testcasexxx  run_datasource_3 Passed
Testcasexxx  run_datasource_4 Passed

Any suggestions?

Thanks,
zx
  • rvisaTEST's avatar
    rvisaTEST
    Occasional Contributor
    I am trying to do something like this.

    I want to define a parameter in test case Report Parameters tab and modify it by Report Script

    params.parameter="parameter value"

    then I would like to print this parameter in a subreport.

    Anyone has any suggestions?

    Regars,
    RV
  • apuredol's avatar
    apuredol
    New Contributor
    I am using the results of testrunner.sh and then parsing with perl in the same purpose that you need: key-value format. It's really useful and easy, results are taken by my monitoring application.

    Don't know your purpose, but maybe you can consider perl as an alternative...

    Best regards,