Change AUT Config Path before executing test [message #1393503] |
Thu, 03 July 2014 18:39  |
Eclipse User |
|
|
|
Is it possible to change the AUT executable path, in the AUT config before running a test?
For example, I'm testing one installer, and after running the installer I would need to run the uninstaler, but the uninstaller path will depend on the path you supplied to the installer. <-This means, it will vary, I can't have a static AUT Config for this.
So, is there a way of changing the AUT Config of the Uninstaller Test Project, just before running it?
Thanks ind Advance.
|
|
|
|
|
|
|
|
|
|
Re: Change AUT Config Path before executing test [message #1397592 is a reply to message #1397576] |
Wed, 09 July 2014 19:44  |
Eclipse User |
|
|
|
You can use an event handler to do that; however, if the script's exit code does not match your expected value, then the test case that calls the script will still show up as a failure.
You might be able to get around this by storing your command in a variable, using the value of that variable as your COMMAND parameter, and then (in the event handler) overwriting the variable with a command that will always return your expected value. Then you can give the event handler a reentry type of RETRY, and the test case should pass after the event handler executes.
|
|
|
Powered by
FUDForum. Page generated in 0.08939 seconds