Contributions
Custom Reports in the composite file structure, or must be in /bin?
Hello, I converted one of my ReadyAPI projects to composite format, and I noticed there was a "reports" subfolder. There's a big set of custom reports I've been using (jasper and other xml configuration files) that I've had to move into the different \bin report folder structures in the smartbear installation folder when setting up on a new computer. Is there a way when I import the composite project that ReadyAPI can use the reports in the composite folder structure? Or do I have to move everything into the /bin folder when I install on a new machine? I tried populating the report folders of the composite project but I didn't seem to have the option in ReadyAPI to use those custom reports.112Views0likes0CommentsContinuing to run all test steps in a test case despite failure
Hello, I would like all test steps in a test case to continue running after a test step fails. I tried turning off "Abort test if an error occurs" and "Fail Test Case if it has failed Test Steps", but the behavior doesn't change. All the best, -MDAR487Views0likes1CommentRe: Sharing custom class object between Groovy scripts
Ili, Thank you for the response. I gave it a try and it seemed to work fine! It's a bit of an odd pattern I guess to have sort of a "utility script" called by other scripts -- also keeping it disabled because I don't want to run it on it's own. -Mdar2 years agoPlace ReadyAPI QuestionsReadyAPI Questions1KViews0likes0CommentsSharing custom class object between Groovy scripts
Hello, I was wondering if it was possible to create a Java object (from an imported package) and saveit to some ReadyAPI global scope storage feature. So I would have an initialization script that creates the object with certain parameters, and then that object would become available to all other Groovy scripts by some ReadyAPI access call, similar to how primitive properties are shared. Thank you, -MdarSolved1.1KViews0likes4CommentsRe: HTTP Request assertion predicated on parameters and injecting URL components
Ahh, thank you for your response! I've been looking at the documentation and will continue to do so -- but I'm wondering about the strategy you described. a. An excel resource file for each different parameter value pair combination b. A template HTTP request test step reads the file, fires the request, and contains all assertions related to the endpoint, applies assertions based on the subset of parameters present Is this similar to what you're describing? All the best, -Mdar2 years agoPlace ReadyAPI QuestionsReadyAPI Questions570Views0likes0CommentsHTTP Request assertion predicated on parameters and injecting URL components
Hello, I was wondering if there was a way to create HTTP request test steps, but call them from a groovy script for example, and inject certain parts of the URL -- interupting the script on fail. For example, the domain, parameters, endpoint, etc. The idea behind this question (maybe I should be going about this another way) is to create re-usable HTTP requests as components in my scripts that do validation. 1. Test Step A is an HTTP request, with a collection of assertions: [Assertion A, Assertion B, Assertion C . . ] preloaded http://service.my/endpoint 2.Test Step B (perhaps in another test case) is a groovy script that wants to fire an HTTP request using Test Step A, but also inject certain parameters, so the following request is made, http://service.my/endpoint?Param1=true&Param2=false 3. Test Step C might want to change the domain, http://service.your/endpoint?Param1=true&Param2=false Finally, I was wondering if there was a feature that would populate assertions only if a given parameter or combination of parameters were present. Thanks!629Views0likes3Comments- 2 years agoPlace ReadyAPI QuestionsReadyAPI Questions810Views0likes0Comments
Behavior when a test step fails
I have a collection of test cases, each with several groovy-script test steps. When a test-step fails, the method testrunner.fail() is called. This has the effect of ending that current test step, and not running all subsequent test steps in that test case -- is that the intended behavior? Question: Is it possible to have the subsequent test steps still run? Or if I want that behavior, is it better to separate the logic into a discrete test case? All the best, -MdarSolved852Views1like2Comments