Contributions
Variable Based Tests
Hallo SoapUI Users, I have some trivial question. Explanation first: I defined Test Case/TestSteps. I have also Properties for the test. So I can set or replace the values for variables in Properties. So lets say variables has specific fields and values. So for the field UserID I can use strings and send this to API but String != NULL / "" String > 0 String < 20 String contain Letters String contain no Numbers String contain no Special Characters sth like simple test rules - to prove Positive and Negative Test Cases. I have several more such variables and I wonder is there any build in feature in SoapUI to make parameter's change in LOOP and run Test-Step or I should design the recall to the TestStep with new parameters. So in general sth like this: Test Step A - Set parameters Test Step B - Test Variable - and Save Result Test Step C - Change Index and Recall next Value in Test Step A. It looks like VarA, VarB, VarC, VarD, VarE where I have to change parameters for values in the order E, D, C, B, A. So at least ... I estimate between 240-700 tests. All the best T.444Views0likes2CommentsRe: Test Cases for Many Users - as a central Test Repo
Partially this could be a solution. But I would like to avoid working with GIT - users should have possibility on working on the same SOAPUI project. They are not programmers to have any thing in common with git. My question is how other people are dealing with such things like I mentioned. Maybe I should explain it in detals. So the logic is: 1) First person is creating TestCases etc. Saves it in network drive. 2) So file is accessible by other people who just click (use the project) and make tasks with testcase. 3) Any other people are extending the test cases and all involved should have access to new cases. 4) Any new person to department can use the testcases immediately. 5) with more complex testcases (different test environments) the more people could be involved into tests. With 10 people (1 shift and 2 shift) with fast changes ... it seems git commits could be a little not right solutions. So more detailed question is how people are dealing with test cases management and organization for SOAPUI products?731Views0likes2CommentsTest Cases for Many Users - as a central Test Repo
Hallo SoapUI users, Is is possible to build one common repository for tests? We have people across different departments who need to share some test cases. Because of remote work - I would like to avoid having SoapUI Test Cases on local machine, but rather to have common Library/Repo for all tests. To say simple: I would like that anyone in any department should be able to run tests! Is it possible with Soap UI - Free Version or I need something more advanced. Thanks in advance for answer. T.Solved765Views0likes4CommentsRelative Path in SoapUI and Groovy Scripts
Hello Programmers, I have one problem with using relative path in SoapUI and Groovy. It really plays on my nerves! This is because of different systems (Mac/Windows/RedHat) and different working style of people (Java programmers and these based on other languages). So what is the problem: access to files One college defines the file in properties for Test case (specific) like this: /Projekte/GTC/SOAPUI/6408.jks Other guys are defining the same but on the Project level direct: 6408.jks Other make this in groovy scipt: def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context); def projectPath = groovyUtils.projectPath; def keystoreFile = projectPath + "/6408.jks"; Other are defining the work and project dir: workspaceDir="C:\\TEST2\\" projectDir="C:\\TEST2\\" log.info(workspaceDir) log.info(projectDir) def keystoreFile = projectPath + "\\6408.jks"; It always ends is sth like: Step 3 [] OK: took 127 ms TestCase [] failed [Cancelling due to failed test step:java.io.FileNotFoundException: 6408.jks (Das System kann die angegebene Datei nicht finden)], time taken = 130 TestSuite [useToken] failed [null], time taken = 257 Step 4 [generate-issue-request-response] FAILED: took 3 ms -> java.io.FileNotFoundException: 6408.jks (Das System kann die angegebene Datei nicht finden) -> error at line: 38 And my question is: 1) How should I define on the SOAPUI - WORKING katalog but I would like to have relative path where SOAP-Projekt is? So to be able to copy the structure and run this on any computer even from network drive. I.e something like below Local catalog: TestFolder\soapui-project.xml Local subcatalogs: TestFolder\secrets\6408.jks Local subcatalogs: TestFolder\templates\soapui-project.xsd Local subcatalogs: TestFolder\users\6408.txt 2) How to write the code to have the same setting for all environments? Linux, Windows and Mac. Should I use special test function for using specific groovy code for OS (Operating System)? My colleges need working SoapUI Suite - just click and run ... on any OS. No chance to give any tips what to change and how. 3) Where is the default path that groovy/soap searches for the file? Is it where the binaries were run ... so somewhere in ... Soap UI installation BIN? Thanks for tips. Tomasz P.s. I am not programmer. I can change code, write some modifications etc, but definetely not able (time limited) to redesign all testing cases. Test cases are for 5 different test environment with different configurations so - I must be really flexible with this local paths.427Views0likes0CommentsRe: Multiple testing parameters from external file
Hello Rich, In some form I have something similar to your solution. Now I have to tune this to my cases to make this more flexible. I would like to thank you for your time and efford for answer. I appreciate this! Regards Tomasz949Views0likes0CommentsMultiple testing parameters from external file
Hallo SoapUI, I have not typical case - I think so. I have 4 test environments. They differ a little in case of test structure. For simplification we can assume they are the same. We build cases and the whole scenario for tests. Generally it is ok - but the problem is - parameters are changing in each environments. So to tune to new parameters we have to spend about 2-3 hours to update config. It is becoming a little irritating - because the final effect is - testing environment are disjoined and now we have 4 stations with own operators. So it is not possible to unify the solution. My intention is to have independent flexible station to run tests in all 4 environments. Just in short words - we have different user ID and different Cert ID associated to tests. So in SoapUI we have sections: - Environment - Settings - Users - Tokens Associated to User as global parameters - 80 specific tests CASES which include these user settings. If the user changes in one environement we have to update user data and user associations. For now it is not so many users ... about 11 per environment. But we have also to upload user certificate from external sources... Is there any possibility to dynamically upload usernames into .xml file which stores configuration of the project. Any ideas how to solve this problem or how to bypass ... Greetings T.Solved1KViews0likes3Comments