Forum Discussion
A little update, I am using the ready api maven plugin 1.9.0 as a dependency in my pom.
I look at the difference between the test that have failed and those that pass. Aparently when I use invalid JSON types, JSON Boundary scan and JSON Fuzzy scan the test fails from the terminal but when run from the readyApi application it passes.
Still the whole junit acts as it has passed when it has failed tests.
- nmrao7 years agoChampion Level 3Would you mind showing the respective code?
- AndreiN17 years agoOccasional Contributor
public void test() {
SoapUIProSecurityRunner runner = new CustomSecurityRunner();
runner.setEndpoint(endpoint);
// just load the properties need to run the test
setupProperties(runner);
runner.setProjectFile(pathToFile);
runner.setPrinReport(true);
runner.run();
}
The CustomSecurityRunner extends the SoapUIProSecurityRunner and overrides the printReport() and afterRun methods.
Hope this helps
- nmrao7 years agoChampion Level 3
Thank you for the code snippet.
It is mentioned that the test is passed when it is run from ReadyAPI and getting failed when it is run from Java.
Now, it is difficult to comment without knowing the details of the problem i.e., why it is passed from ReadyAPI and not from Java.
Based on the code snippet, can't draw any conclusion as that is very generic code which runs the project.
Next to look at is, do you have any kind of assertions? what is the test case structure? how may steps and its type? Any screen shot to make easy to understand the case.
Related Content
- 3 years agosth2ot