[Not an Issue] Test cases runs correctly on IDE but fails on the test runner [message #1701712] |
Wed, 15 July 2015 04:16  |
Eclipse User |
|
|
|
Hi Guys,
I have a test case here that works fine on my Mars IDE with RCPTT but fails when I run it via the Maven plugin on the same machine.
The summary of the test case here is that it auto-generates some java files based on changes done to a DSL type language. You will see that there is a Generator project there that does this. Any changes to the type file will trigger the java file to be regenerated with whatever was defined in the Generator project. On the IDE it all works but when it's run via the test runner, it always fails for some reason.
One interesting thing to note there is if that test case is run first, it does not fail. I initially suspected that the previous test case might have done something to the AUT workspace/environment but it's difficult to prove. The test case in question does have contexts to clear the workspace and to add projects as well as a context for setting the preferences. I did try removing all the contexts except for the workspace context that contains the project that it needs but the execution result is still the same. If I manually ran the same AUT (extracted somewhere else) with the generated test-runner aut workspace right after and made some changes to the type file, the java files are generated correctly.
So the problem now is, we're not sure what the test runner is doing differently with the RCPTT IDE in this case. It would seem like the test runner is preventing the AUT from generating the files or there might be an error that prevents the generation from happening.
I've attached the results folder from the test runner execution and the log file from the from the runner-workspace folder.
cheers!
Joseph
[Updated on: Wed, 15 July 2015 07:13] by Moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.10328 seconds