Forum Discussion
Sandia_National
12 years agoOccasional Contributor
Hi Temil,
Here's a sample project and a little spreadsheet (Assuming I figure out how to upload them).
I put some comments into the "Groovy Script" test step, in the "TestCase 1" teardown method, and in the "Groovy Script Lead" test step. These describe what I am hoping to do.
In short, the DataSource is configured to load the Excel file: C:/Users/bwhiteside/example/Book1.xls. In the TestCase teardown, I'd like to be able to read that filename so I can write a little report right beside the spreadsheet. In C:/Users/bwhiteside/example/Book1.html, for example.
As a bonus wish, it would be awesome if a test step previous to the DataSource could *write* that filename. I could then write an "outer loop" over spreadsheets.
Cheers,
--Bob
Here's a sample project and a little spreadsheet (Assuming I figure out how to upload them).
I put some comments into the "Groovy Script" test step, in the "TestCase 1" teardown method, and in the "Groovy Script Lead" test step. These describe what I am hoping to do.
In short, the DataSource is configured to load the Excel file: C:/Users/bwhiteside/example/Book1.xls. In the TestCase teardown, I'd like to be able to read that filename so I can write a little report right beside the spreadsheet. In C:/Users/bwhiteside/example/Book1.html, for example.
As a bonus wish, it would be awesome if a test step previous to the DataSource could *write* that filename. I could then write an "outer loop" over spreadsheets.
Cheers,
--Bob