How to customise JUnit html report to include request and response for failed cases
I have around 2500+ test cases organised under 40 testsuites, which are runningvia cli by Jenkins and default JUnit style report is hosted at a url. Sometimes, it is pretty difficult to look at the assertion fails and learn about the error. So, I am planning to include request and response in the report for the failing test cases. I know, there are quite a few documents available, but are not easy to understand. Anyone with a simpler and swift solution? Currently, the default report gives, Name, Status, Type and Time columns for failed test cases, I just need the same format, but Name, Status, Type, Request, Response and Time.7.1KViews0likes10CommentsReprt of readyAPi
Requirement of report - 1) request 2)response 3)why teststep pass 4)Why teststep fail 5)method 6)End point 7)Assertions 8)Testcase name 9)test suite name please find attached for approach and follow that . We need report in Pdf format. How to write teardownscript and setupscript in readyAPI ?Solved4.6KViews0likes6CommentsHow to get reporting at test step level instead of test case level what surefire currently provides
I am running my test via jenkins and i have surefire plugin which generates xml reports in my workspace. But this report has run status of all test suites and all test cases. Each test case will have failed test step information too. I want a way by which i can have run status of each test step whether failed or passed. Can some one help here if we can do this with surefire plugin or with some other way/plugin. Thanks a lot.4.4KViews0likes7Comments[TechCorner Challenge #9] A script to include custom details to the report
Hi ReadyAPI Community! I bring more challenges 🙂 If you have the "Complete error logs" option enabled, the printable report includes the Raw request and Raw response for the failed test steps. But, you may need to get this info for passed test steps, as well. Currently, there is no built-in option in ReadyAPI to show raw request and response of passed test steps in the printable (Jasper) report. Task:Write a Groovy script for the "TestRunListener.afterStep"event that will post the raw request URL and the full raw response to the printable report. Difficulty: Here is an example: 💡Hint:https://community.smartbear.com/t5/SoapUI-Pro/TechCorner-Challenge-9-A-script-to-include-custom-details-to-the/m-p/205242/thread-id/46875 Check out the TechCornerLeaderboard here. Good luck😊Solved4.4KViews0likes7CommentsSuppressing info logging when using a maven plugin
Hello, I am using the ready-api maven plugin to run tests. I have a composite project. I am trying to supress the logging and output file creation because it is filling up the filesystem on our jenkins build slave. <logger name="com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner" level="warn" additivity="false"> <appender-ref ref="STDOUT"/> </logger> Here is what I have tried, none of which seems to supress the info logging: - logback.xml in src/main/java/resources <- set the log level to warn for the SoapUIProTestCaseRunner - logback.xml in src/test/java/resources <- set the log level to warn for the SoapUIProTestCaseRunner - soapui-log4j.xml in src/main/java/resources <- set the log level to warn for the SoapUIProTestCaseRunner - soapui-log4j.xml in src/test/java/resources <- set the log level to warn for the SoapUIProTestCaseRunner I am wondering why the project is not picking up the logging level when I build it. We do not have the acess to SOAP_UI home directory to install the logging configuration there. So, that is not an option for us.Solved4.3KViews0likes9CommentsHow to run a Test case from Java and be able to set and retrieve properties and see report
SoapUI is a great product for managing Soap and Rest messaging in the context of testing. I want to support theuse of existing and future SoapUI Pro tests within our chosen test framework - but I have an issue that is driving me crazy. The alternative is to not use SoapUI Pro at all - which is not my objective at all. I am trying to run a Test case from Java and be able to set and retrieve properties and see report output. I see examples of some of these elements here: https://support.smartbear.com/readyapi/docs/testing/integrations/junit.html These examples seem to be out-of-date - or is that just me? The link to theSoapUIProTestCaseRunneris to:https://soapui.org/apidocs/pro/com/eviware/soapui/SoapUIProTestCaseRunner.html#_ga=2.53884712.1072604993.1494427979-1195040155.1434438474 However the example uses:import com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner; SoapUIProTestCaseRunner is good to run the test case and see the report - but I cannot set the properties or retrieve the results. The next description: "To have more control over integration and error reporting, run a specific test case:" seems to suggest that the same asSoapUIProTestCaseRunner but with more control is possible. Unfortunately, this does not seem to be the case. I can do this call:testCase.run(new PropertiesMap(), false) . . . and the test case runs - but when a step fails - how do I find out which step or which assertion failed? Also - any steps involving Pro features (e.g. reading data from Excel) fails with reason: "Cancelling due to failed test step" - but which step failed? Looking through the API, I see this: https://soapui.org/apidocs/pro/index.html?com/eviware/soapui/SoapUIProTestCaseRunner.html SoapUIProTestCaseRunner seems to offer the useful runTestCase method:https://soapui.org/apidocs/pro/com/eviware/soapui/SoapUIProTestCaseRunner.html#runTestCase(com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase) https://soapui.org/apidocs/pro/com/eviware/soapui/SoapUIProTestCaseRunner.html#runTestCase(com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase) SoapUIProTestCaseRunner also looks to have helpful reporting methods. I cannot find the SoapUIProTestCaseRunnerobject in the versions of SoapUI that I have (1.5; 1.6). Further, I have found the use of this code: SoapUIPro.SoapUIProCore soapuiCore = new SoapUIPro.SoapUIProCore(true, "/path/to/soapui-settings.xml"); Which might be helpful, but I cannot find the classSoapUIPro.SoapUIProCore - only the SoapUIProCore interface. Please, can someone suggest what combination of objects/methods in current versions of SoapUI Pro can be used to both run specific test cases - giving report output - and access the properties? I need to see the imports - my Java skills are a bit dusty and I am yet to learn how to search through Jars (something like using Oops! I think)! Attached is my existing attempt. Thank you4.2KViews0likes1CommentSoapUI Pro Integration with Zephyr
Hi, I have automated tests in SoapUI Pro, I would like to run them in Zephyr. I don't know much about Zephyr, though the project requires the SoapUI tests to be run in Zephyr. I have done some research and realised that SoapUI Pro does not offer direct support to Zephyr (unless I'm wrong?) I was wondering if anyone has done automation in such manner? If they have, could you please provide steps to enable this? I also have access to JIRA, I know that JIRA integrates well with SoapUI and Zephyr, Is anyone able to comment on best approach here please? Thanks :)3.9KViews0likes4CommentsHow to generate test case printable report during automation execution and Save in local system ?
Using TestRunner GUI, There are reports that can be generated such as Junit Report, Allure Report and Printable report. How to save these reports after execution of each testcase ?Solved3.3KViews0likes7Commentsgenerate report
Hi, I would like to seek information if the generated report from Ready!API can be export/send to slacks channel? For example, the following steps below is how I generate a report manually. 1. Execute or run a test first by clicking RUN button in soapUI NG 2. Once the test (test-suite or test-case) is completed click on the "Create Report" icon - icon can be find near the RUN button 3. Select what type of report, I used HTML report type for easy viewing, then select Single page style 4. Browse a directory path to where you want to save the report, then click OK button 5. Go to the folder where the report is save. What I need to do is to automate these steps, I will run the test manually and then at the end of test it will generate a report that will send or notify a message in slacks channel. Is it possible? Thanks.Solved3.2KViews0likes7Comments