danielmbanksOccasional ContributorJoined 9 years ago11 Posts2 LikesLikes received1 SolutionView All Badges
ContributionsMost RecentMost LikesSolutionsRe: Run test Case fron another project nmrao Ok, so you're suggesting I run the tests via JUnit using WorkspaceImpl 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. Re: Run test Case fron another project This is really useful. Any idea if it's possible to make this work through the maven plugin? Calling testRunner.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? Re: Dynamic property means project XML changes after every run Thanks for a really simple solution. Works a dream! Dynamic 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! SolvedRe: Create File with UTF-8 encoding Great answer, thanks! Do you have a link to RIA-744? I've not seen the ReadyAPI enhancement requests process yet. Create 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. SolvedHow 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} SolvedRe: 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. Re: lastOpened property in project settings.xml file Already asked and answered it seems! This works for me: https://community.smartbear.com/t5/SoapUI-NG/lastOpened-property-causes-svn-conflict/m-p/116156#U116156 lastOpened 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, Dan Solved