Contributions
Re: go to a test case in another suite
Also if not too much trouble.......Can you provide code snippet example of how to "However, you could make it work, by calling the other TestSuite using a Groovy Script TestStep as you seams to be referring to?" I only found functions to goto step within a current test step, not the method to goto a new test case within a different test suite.12 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.5KViews0likes0CommentsRe: go to a test case in another suite
Please direct me to another post, but I could not find a definitive answer in my forum searches.....but is there a way to "abort" the running of the test suite in groovy? references I found where to cancel and fail functions with test runner, but those seem to just exit the current step and write a message to soapUI log and not "abort" all execution. i.e context.testRunner.cancel('Failed in Final Validate"); using similar example, I want to do this.......... test suite 1 test case 1 test case 2 <--- find a error condition here, stop all processing and do not continue to test suite 2. test case 3 test suite 2 test case 4 test case 5 test case 612 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.5KViews0likes0Commentsgo to a test case in another suite
Is it possible to go to a test case step in another suite? gotoStepByName - seem to only only a goto within the current test case. for example, I want to.... Suite 1 Test Case 1 Test Step 1 Test Step 2 <-- if this is a groovy step....direct the processing to goto Suite 2, test 4, step 1 Test Step 3 Test Case 2 Test Step 1 Test Step 2 Suite 2 Test Case 3 Test Step 1 Test Step 2 Test Step 3 Test Case 4 Test Step 1 Test Step 212 years agoPlace ReadyAPI QuestionsReadyAPI Questions3KViews0likes5CommentsMaven Redirect - Seeking more information
You have a message posted on the soapUI home page that states: We are in the process of moving our Maven Repository from the eviware.com domain to soapui.org If you are using our Maven repo you need to switch to soapui.org from eviware.com. We will redirect as needed for a while. Can you provide more details? like when is the cut over, when is last date old site supported, what are new URLs to new site, etc. Thanks12 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.2KViews0likes1CommentRe: Strange exception when running the soapui test from maven
same....running 4.5 Pro [TEST-CI] $ /apps/orangd1/software/jdk1.6.0_22/bin/java -Xmx512m -cp /apps/orangd1/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.2.jar:/apps/orangd1/software/maven2/boot/classworlds-1.1.jar hudson.maven.agent.Main /apps/orangd1/software/maven2 /apps/orangd1/software/apache-tomcat-6.0.18/webapps/jenkins/WEB-INF/lib/remoting-2.12.jar /apps/orangd1/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.2.jar 38347 /apps/orangd1/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven2.1-interceptor-1.2.jar 16:31:42,181 ERROR [SoapUI] An error occured [java.lang.OutOfMemoryError: PermGen space], see error log for details java.lang.OutOfMemoryError: PermGen space java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: PermGen space1.6KViews0likes0CommentsIssues with WS security and new environments profile
I have tried to set the WS-Security user/password in the environments endpoint configuration but they don't get picked up with choose the environment for the test suite to run. However, if I configure these settings in the imported WSDL it works when choose <default> environment, but as soon as pick an environment profile we get the soap faults. See attached screen shots. Any help appreciated. This security fault message <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header></soap:Header> <soap:Body> <soap:Fault> <faultcode xmlns:_ns0="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">_ns0:InvalidSecurity</faultcode> <faultstring>SECU1075: An error was discovered processing the <wsse:Security> header</faultstring> <detail>SECU1002: Missing Supporting Tokens</detail> </soap:Fault> </soap:Body> </soap:Envelope>12 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.4KViews0likes1CommentRe: [Res] Groovy script to get and set project JDBC connections
Just to share a bit to others this is what came up with: import groovy.sql.Sql; com.eviware.soapui.support.GroovyUtils.registerJdbcDriver( "oracle.jdbc.driver.OracleDriver"); // determine environment connection information // activeEnvironment will not work if in the default environment def jdbcConnection='MUP' if (testRunner.testCase.testSuite.project.activeEnvironment.name=='Default') Myconnection = testRunner.testCase.testSuite.project.databaseConnectionContainer.getDatabaseConnectionByName(jdbcConnection) else Myconnection = testRunner.testCase.testSuite.project.activeEnvironment.databaseConnectionContainer.getDatabaseConnectionByName(jdbcConnection) // this is for debugging purpose log.info 'activeEnvironment value is:' + testRunner.testCase.testSuite.project.activeEnvironment.name; log.info 'Active Connection String is:' + Myconnection.getConnectionString() // try to open the connection try { def connection= Sql.newInstance(Myconnection.getConnectionString(),"oracle.jdbc.driver.OracleDriver"); context.setProperty("dbConn", connection); } catch (Exception e) { log.error "Could not establish connection to the database."; assert false,"Could not establish connection to the database."; } if (context.dbConn) { def sql = "select 1 from dual"; def status= context.dbConn.execute(sql); if (status==false) { log.error "There was an error running SQL: " + sql } context.dbConn.close(); }12 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes0CommentsRe: maven and environment selection
I have tried this a few times and cannot the environment parameter to get picked up in the maven project. Here is my pom.xml. did I put in wrong place or have some other syntax issue? Thanks <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>automationTest</groupId> <artifactId>Services</artifactId> <version>1.0-SNAPSHOT</version> <packaging>jar</packaging> <name>DEMO</name> <build> <plugins> <plugin> <dependencies> <dependency> <groupId>com.oracle</groupId> <artifactId>ojdbc6</artifactId> <version>11.2.0</version> </dependency> </dependencies> <groupId>eviware</groupId> <artifactId>maven-soapui-pro-plugin</artifactId> <version>4.5.1</version> <configuration> <projectFile>pomdemo-soapui-project.xml</projectFile> <outputFolder>${project.build.directory}/surefire-reports</outputFolder> <junitReport>true</junitReport> <printReport>true</printReport> <reportName>Project Report</reportName> <reportFormat>HTML</reportFormat> <environment>TEST-CI</environment> </configuration> <executions> <execution> <phase>test</phase> <goals> <goal>test</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project>12 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.5KViews0likes0CommentsRe: [Res] Groovy script to get and set project JDBC connections
I may have answered by own question.....but here is snippet that worked for me def env = testRunner.testCase.testSuite.project.activeEnvironment.name; if (env=='Default') { myDatabaseConnection1 = testRunner.testCase.testSuite.project.databaseConnectionContainer.getDatabaseConnectionByName('MYDATABASE') log.info 'Updated activeEnvironment value is:' + testRunner.testCase.testSuite.project.activeEnvironment.name; log.info 'Active Connection String for MUP is:' + myDatabaseConnection1.getConnectionString() } else { myDatabaseConnection = testRunner.testCase.testSuite.project.activeEnvironment.databaseConnectionContainer.getDatabaseConnectionByName('MYDATABASE') log.info 'Updated activeEnvironment value is:' + testRunner.testCase.testSuite.project.activeEnvironment.name; log.info 'Active Connection String for MUP is:' + myDatabaseConnection.getConnectionString() }12 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes0CommentsRe: [Res] Groovy script to get and set project JDBC connections
This helps. But with the new project environment feature. What is best way to get connection object and connection string for a given JDBC connection. For example I have TEST and DEV as my two environment profiles with the DB Connection name of MYDATABASE12 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes0Comments