Contributions
SoapUI Pro - Common Authentication Across Multiple Projects from a file
Hi SmartBear and Community I am trying to have 1 authentication across all projects (Project_A, Project_B, … ect). The authentication username and password will be read from a file. Right now, I can have a groovy script in Project_A, where it can read username and password from a file. Then, this groovy scrip would set username and password for the all the test cases in Project_A via setPropertyValue method. For Project_B’s authentication with username and password across all test cases, I repeat the same steps in Project_A. So, if the file format that contained username and password change in the future, I have to go back into Project_A and Project_B’s groovy script independently to make the update. In the future, if I have 100 Project_A and Project_B, I have to go into 100 projects to make the change if something changed in the username and password file format. Is there a feature in SoapUI Pro that would allow me to dictate a common authentication across all projects from an external file. I have also notice that information like json result/response from a test case in Project_A can’t be shared by Project_B. FYI: The “Auth Manager” is local to a project only. In most case, username and password are hardcode.6 years agoPlace ReadyAPI QuestionsReadyAPI Questions730Views1like0CommentsReadyAPI Global Properties Issue with Bamboo/MavenHello SoapUI Community,
Hello SoapUI Community, SoapUI Pro or ReadyAPI I ran into an issue with ReadyAPI Global Properties. Here is the scenario. - I used global properties in my test - I am able to run it fine getting http_status 200 back via locally in the tool and calling it from maven command line "mvn test" With Bamboo integration, I start having issue. It seems like the global properties is not working/recognizing So in my environment, I kick off ReadyAPI test case via triggering bamboo passing maven command line execution. Practically, bamboo is calling maven. In maven pom file, it is calling ReadyAPI (the .xml file). So is it a limitation with bamboo or limitation with ReadyAPI when it came down to global properties. Note: if I hardcode the value in the test instead of using global properties, then my test run fine on bamboo.7 years agoPlace ReadyAPI QuestionsReadyAPI Questions771Views0likes0CommentsSoapUI/ReadyAPI Maven - Run Multiple TestCase in POM
Hello SmartBear Community, Is it possible to run SoapUI/ReadyAPI for more than one test case using Maven via configuring the POM.xml file? I have a POM file configured to run ReadyAPI. .... .... .... <groupId>com.smartbear</groupId> <artifactId>ready-api-maven-plugin</artifactId> <version>1.9.0</version> <executions> <execution> <phase>test</phase> <goals> <goal>test</goal> </goals> <configuration> <projectFile>readyAPI_project.xml</projectFile> <reportFormat>PDF</reportFormat> <junitReport>true</junitReport> <reports>${basedir}/target/surefire-reports</reports> <testSuite>TestSuite_One</testSuite> <testCase>TestCase_One</testCase> <!--tags><param>TestCase tag1, tag2</param></tags--> ..... ..... Note: With the above setup, test suite =TestSuite_One and test case =TestCase_One will be executed. If I leave testSuite and testCase blank as shown below, then all testSuite and testCase will be executed. <testSuite></testSuite> <testCase></testCase> Ideally, I can execute more than one test case by using tag as comment above. Tag the test case in SoapUI/ReadyAPI, then call them in POM. Question, is tag the only method to use to execute multiple test cases with Maven? ThanksSolved7 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.3KViews0likes4CommentsRe: bamboo variable
Hi Rao, I am managed to trigger SoapUI test cases execution from Bamboo via Maven. Look like my team does not want to use testrunner.bat. Maven manages the suites and test cases to be executed through a POM.xml file. Please refer to my snapshot below. Now, I can run from Bamboo all SoapUI test cases or 1 test case via Maven POM.xml configuration. Do you have any idea on how to select a set of test cases or more than 1 test cases to be executed via Maven POM.xml configuration file?? In attachment provided:bamboo_maven_soapUI.png Setting below will run 1 test case: <testSuite>TestSuite 1 - MyProperty</testSuite> <testCase>TestCase 3 - GET - ShipOrderService</testCase> If "TestSuite 1 - MyProperty" and "TestCase 3 - GET - ShipOrderService" are removed as shown below, then all test cases in the suite will be executed. FYI: I only have 1 suite. <testSuite></testSuite> <testCase></testCase> Thanks7 years agoPlace ReadyAPI QuestionsReadyAPI Questions2KViews0likes0CommentsRe: bamboo variable
Hi Rao, Is there a description or document reference to the "-e" somewhere? Currently, bamboo is configured to run off maven task. For me to call soapUI project in maven, I am adding the <soapUI_project>.xml in the POM file. Please refer to the snapshot in the attachments Thanks7 years agoPlace ReadyAPI QuestionsReadyAPI Questions2KViews0likes1CommentRe: bamboo variable
Hi Roa, Thank you for your help. 1) Yes, I would like to find out if I can pass bamboo variable/value to soapUI/readyAPI application or its *.xml file. I did some google search. So far, there is no indication that this is possible. 2) Can the endpoint be parameterized? If so, can it be parameterized/trigger/pass to from bamboo? For example, we are working on multiple environments, such as development, integration, and production environment. During test development, we are messing around inside development environment. During this time as well, we configure bamboo to run soapUI automatically with schedule. When everyone is ready to go to production, we would like to be able to pass in (change dev.server.org to int.server.org .. or prod.server.org). My research shows that we can do a groovy script to parameterize the endpoint within soapui??. Is this the only way? Also, I have not came across anything that mentions we can pass in dev or prod value from bamboo to soapUI. Thank you7 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.1KViews0likes3CommentsRun Selenium/JAVA in TestComplete / QAComplete:
Hi SmartBear Community, End goal: To run Selenium/JAVA within TestComplete / QAComplete. Details: I have a functional web testing code that checks parameters on the internet explorer web page. The code is written in JAVA programming and Selenium. The IDE is Intellij, where I use to execute, debug, and develop my program. The Intellij also sync up with Maven which also has POM.xml. I found this video which shows 6 steps to run JAVA/Selenium in TestComplete: http://blog.smartbear.com/how-to/how-to-run-selenium-from-testcomplete-in-6-simple-steps/ The tutorial uses eclipse instead of Intellij, but I don't think it makes any different. Case 1 (use Maven): Procedure: 1) Create Junit project in TestComplete 2) Under "Use Maven Project" radio button, I put the path to C://****/pom.xml 3) Select "Run all tests" 4) Run Output: mvn.cmd test [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building JPAExample 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ JPAExample --- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ JPAExample --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ JPAExample --- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] skip non existing resourceDirectory C:\MITRE\Functional_Test\DTS_Lync_Code\src\test\resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ JPAExample --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ JPAExample --- [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.190 s [INFO] Finished at: 2016-03-16T14:04:54-04:00 [INFO] Final Memory: 10M/155M [INFO] ------------------------------------------------------------------------ My issue: - It does not show any error, but it did not execute any of my test. (Note: my java tests run fine inside Intellij). Do I need to configure pom.xml or TestComplete somehow? Case 2 (Use classpath directory): Procedure: 1) Create Junit project in TestComplete 2) Under "Specify the classpath directly" radio button, I put the path as C:\Users\ckhim\.m2\repository\junit\junit\4.10\junit-4.10.jar; C:\Users\ckhim\.m2\repository\org\seleniumhq\selenium\selenium-java\2.45.0\selenium-java-2.45.0.jar; C:\MITRE\Functional_Test\DTS_Lync_Code\src\test\java\ 3) Select "Run the following test classes", I put org.mitre.test.tests.testFunctionalDTS.checkDTSTitlePage. 4) Run Output Error: "C:\Program Files (x86)\Java\jre1.8.0_74\Bin\java.exe" org.junit.runner.JUnitCore org.mitre.test.tests.testFunctionalDTS.checkDTSTitlePage JUnit version 4.10 Could not find class: org.mitre.test.tests.testFunctionalDTS.checkDTSTitlePage Time: 0.001 OK (0 tests)1.3KViews0likes0Comments