Contributions
Testcase disable from groovy
Hello! I have a test that compares a previous stored response with a new response. In order to generate the files I created a test that runs the request and stores the response into a directory/ (eg: C:\Test\Test2022\response.json) Basically my test suite has two test cases. One that creates the file and one that verifies the data. (data has to be static). Since i don't want to run every time the file creation test case I was thinking that it would be a "test director". A groovy code that can check that the file exists and skip the file creation part and move to validation. Can someone help me with some info on test runner how to do this? Sample code: def filePath "C:\Test\Test2022\response.json" if( filePath.size() > 10) testrunner.testcase.disable = true else testrunner.testcase.disable = false2 years agoPlace ReadyAPI QuestionsReadyAPI Questions370Views0likes0CommentsRe: PDF content decode
The API response contains a PDF file. The file contains a table with data gathered from several tables from the database. The need for a decode is sustained by the fact that the request send some parameters (eg: "roleCode": "<int>" and a date period.) and the response file contains the information needed. In order to validate the complete test, the file must be checked for the correct data corresponding to the certain parameter combination.2 years agoPlace ReadyAPI QuestionsReadyAPI Questions820Views0likes1CommentPDF content decode
Hello community! Is there a way to decode the pdf content file that comes as a response from the API? Did a groovy script on asserting the file presence and size but need to add an assertion for the content of the file also.2 years agoPlace ReadyAPI QuestionsReadyAPI Questions888Views0likes4CommentsRe: Pass test suite with failed test cases
Hellorichie Thank you for your involvement and sugestions. I seams that the link you referred to is missing. I had taken in consideration the methods mentioned by you but keeping them reported is kind of a reminder that the issues have to be fixed.2 years agoPlace ReadyAPI QuestionsReadyAPI Questions717Views0likes1CommentPass test suite with failed test cases
Hello! I have a API that has a feature still under development so I am getting a 500 error when running some teste. I know this issue will be addressed in future updates. Is it possible to have the test suite pass but still keep those test cases that failed with their status? I would like to have them in the report but not fail the whole test suite for two tests.737Views0likes3Comments