Contributions
Re: Run test Case fron another project
nmraoOk, so you're suggesting I run the tests via JUnit usingWorkspaceImpl and WsdlProjectPro. Is it possible to get surefire test reports when running the tests this way? EDIT: Without writing 1 JUnit test per ReadyAPI TestCase I mean. I'm expecting to get my workspace, loop over all projects in the workspace, loop over each testsuite in the projects, run each testcase in the testsuites.4.4KViews0likes1CommentRe: Run test Case fron another project
This is really useful. Any idea if it's possible to make this work through the maven plugin? CallingtestRunner.getTestCase().getTestSuite().getProject().getWorkspace() returns null, I assume because the maven plugin is set-up to just run a single project. Is there a property to set the workspace location?4.4KViews0likes3CommentsDynamic property means project XML changes after every run
The situation: I have 1 test case (TC1) that dynamically creates a property (imagine a property received from a database, rest call, random number generator, etc.) and a 2nd test case (TC2) that uses the "Run TestCase" step to call TC1 and use the dynamic property as part of its test. The problem: Whenever I run the test (TC2) and save the project, the value of the property retrieved from TC1 is saved. If this is a truly dyanmic number like a random number then this means that every time I run the test and save it, my project XML will have changed. This is obviously a problem when committing to Git and seeing lots of irrelevant changes. The question: Is there a way of achieving the same set-up without creating these diffs? I have attached a small example project that shows what I'm talking about, hopefully it'll help. Cheers!Solved7 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.7KViews0likes3CommentsCreate File with UTF-8 encoding
Hi, In the "Create File" test step, there are two options for "File encoding": Unicode and US-ASCII. Is there any way to instead use UTF-8 for the encoding? Or an alternative test step that could achieve the same result.Solved8 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.4KViews0likes4CommentsHow to access RunContext properties
If I have added a property to the runContext e.g. testRunner.runContext.setProperty('myProperty', 'example data') And I want to access this property in an assertion in a later step, is${=context.myProperty} the only way to get the value? It just seems weird that the syntax is different from the standard style e.g.${#TestCase#myProperty}Solved8 years agoPlace ReadyAPI QuestionsReadyAPI Questions1KViews0likes1CommentRe: lastOpened property in project settings.xml file
Hi, I did reply but it looks like it was rejected. Pretty odd. I essentially followed the instructions on this page anyway, section 2:https://www.soapui.org/extension-plugins/old-style-extensions/developing-old-style-extensions.html Combine that with the code in the other answer and you've got it.8 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.9KViews1like2CommentslastOpened property in project settings.xml file
Hi I'm a relative newcomer to ReadyAPI and SoapUI so apologies if this question is in the wrong forum. I have created a new project with a single test suite containing a single test case and have noticed the lastOpened property in the project settings.xml file when committing to git. Is there a way to stop SoapUI from populating/updating this property? Cheers, DanSolved8 years agoPlace ReadyAPI QuestionsReadyAPI Questions3KViews1like7Comments