ContributionsMost RecentMost LikesSolutionsRe: [Resolved] Setup/teardown. Am I the "root" of testrunner?Oh. Du'uh. I can just examine/set a flag in context. I guess I wanted something much more complicated.... Cheers, --Bob[Resolved] Setup/teardown. Am I the "root" of testrunner?Hi Smartbear, Each of the levels: Project, TestCase, and TestSuite, have setup and teardown methods, as well as a green "run" arrow. I'd like to detect in the setup/teardown code whether the current runner is "rooted" (for lack of a better word) at *me*. That is, at the TestCase level, it's possible that *my* run button was pressed. Alternatively, perhaps the run started from the Suite or even project levels above me. I want to do some special setup/teardown if I am the actual root of the run. Is my question lucid? I can see that if I'm some setup code at the Project level, the I'm necessarily the level at which the test run started. (Or ... can I compose projects?). Cheers, --BobRe: (Res) reset/refresh the progress bar earlier.Thanks, Smartbear.Re: (Res) reset/refresh the progress bar earlier.So I have figured out that my whine is applicable only to running tests from the TestCase level. It works as I'd hoped when I run from the TestSuite level. I'm such a newb. Cheers, --Bob(Res) reset/refresh the progress bar earlier.I know this seems trivial, but it keeps grating on me. Perhaps because my tests have a time-consuming setup() step, after I push the cool green "Run" arrow, it takes a long time before the progress bar resets itself and starts accumulating new results. I have to spend ~10 seconds staring at the red "FAILED" bar from my previous attempt. It would be better for my psyche if it cleared the color and told me something like "Starting tests". Even better would be a little annotation saying, "It'll work this time for sure, Bob!" Cheers, --BobRe: Want the name of the file loaded into DataSource.I did find the filename. I get it from: testCase.getTestStepByName("DataSource").datasource.filename Part of my confusion arose because the class involved, ExcelDataSource, is not included in the javadocs that I found at http://www.soapui.org/apidocs/index.html Is there a better url I should use? Did some packages get intentionally left out of the docs? Now that I've found it, I note that there's a setter for the filname. Any chance you could tell me how to use it? I tried just setting the filename, but the it didn't seem to work. There are other methods in that class, like load() for example, that are possibly needed after setting the filename, but I dunno. Cheers, --BobRe: Want the name of the file loaded into DataSource.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, --BobRe: Want the name of the file loaded into DataSource.Oh. The "subsequent TestStep" is a groovy step, if that matters. I looked around in the javadocs for something like a "DataSourceStep" class, but only found stuff about a DataSourceConfig, and couldn't figure out how to use it (nor to get one, even if I knew how to use it). BTW, the javadocs were very hard for me to find. Did I just miss the big "API" button somewhere? Cheers, --BobWant the name of the file loaded into DataSource.Hi All, Newbie here. I've successfully used a DataSource loaded up with an Excel spreadsheet. Sweet! Now, down in another Step, I'd like to know the name of that file. Is it stored away in some property? I'm getting the columns of the spreadsheet just fine. To make sure I've described it: I Browsed to my .xls file in the DataSource. That filename is displayed in the File: textbox of the DataSource editor. I would like, in a subsequent TestStep of the same TestCase, to know that filename. Cheers, --Bob