Contributions
Re: Test case from java secure Pro case runner has failed, but junit output looks like it has passed.
I have no assertions added to the test. As for the test case structure I have 3 test , two of them fail one passes. The first test that fails, has 2 steps that are rest request. Hope this is enough I have made another discovery, that the test that look like they have failed from java actually have not. I assume that the error comes from when I override the afterRun() method. here is a code snippet of the afterRun() method: @Override public void afterRun(TestCaseRunner runner, TestCaseRunnerContext context) { super.afterRun(runner, context); ... output.append("Status" + runner.getStatus().toString()); ... } A better assumption is that runner.getStatus().toString() returns fail when it should return finished. I mentioned earlier that the test which fails has the additional security scans compared to the one which passes. Regards, Andrei7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.5KViews0likes1CommentRe: Test case from java secure Pro case runner has failed, but junit output looks like it has passed.
test 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 helps7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.5KViews0likes3CommentsRe: Test case from java secure Pro case runner has failed, but junit output looks like it has passed.
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.7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.5KViews0likes5CommentsTest case from java secure Pro case runner has failed, but junit output looks like it has passed.
Hello, One issue that i'm having is that I'm using the java approach to run the secure Pro test cases and an problem has occure. When I run the junit , certain test cases fail, but the whole junit acts as it has passed. I do not know how to make the junit to act as if it has failed when there are test cases that have failed. The second issue is that when I run the test from readyApi they pass, but when I run them from java case runner some of them have failed. I looked at different properties that have been set in ready api to make sure that they are uploaded to the test case runner and they have been loaded. I do not know where else to look for a solution Please help me with these two issues. Have a nice day, Andrei N.7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.5KViews0likes6Comments