Receiving JVM error in jenkins when using testrunner.bat
Team, We are doing Continuous Integration with Jenkins by using SoapUI NG TestRunner. Daily 50 plus jobs are running in it. At times, we could see the below error in the job log, ------------------------------------------------------------------------------- The process cannot access the file because it is being used by another process. C:\Users\...\AppData\Local\Temp\jfxrtpath The process cannot access the file because it is being used by another process. The process cannot access the file because it is being used by another process. C:\Users\...\AppData\Local\Temp\readyxmx The process cannot access the file because it is being used by another process. Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. Invalid maximum heap size: -Xmx Build step 'Execute Windows batch command' marked build as failure Recording test results readyapi.bat had -Xmx2048m. Not sure what caused this issue. We believe, it is not following any patterns , it occurs randomly for some jobs. Please suggest solution for this issue and let us know, if you need any further details.Solved4.8KViews0likes7CommentsMongo Context varibale - Is it possible to use it throughout the test suite
Greetings, While working with MondoDB using gmongo (groovy wrapper), we open connection using mongoDB context, something like this: def mongoClient = new MongoClient( new ServerAddress(dbServer), Arrays.asList(credentials) ) context.gmongo = new GMongo( mongoClient ) context.mongoDB = context.gmongo.getDB(dbDatabase) In my current framework, I open connection and close it everytime I need to do something with mongodb. I am trying to somehow define the context once globally and use the variable to access mongodb throughout the test suite. Is there any way to do it ? Any help would be much appreciated.Solved3KViews0likes8CommentsHow can i parameterize REST resource with Data Source.
I want to parameterizethe below two resources (please see the screenshot) . I know we can use data sourcefor using different params. How can i achieve it in this case. I want to supply data from excel to below to encircled fields, please let me know how can it be achieved .Solved2.2KViews0likes2CommentsJDBC connection with additional parameters ?
I want to pass additional parameters in JDBC connection in order to connect to my database. the additional parameter is "MultiSubnetFailover=True" I mentioned as below " jdbc:sqlserver://servername:1433;databaseName=xxx;user=xxx;MultiSubnetFailover=True;" and password in passwordcolumn but it is not working. Can someone help me ?877Views0likes1CommentTest step description in report
I want to write specific Description for the Test Step, so that it can show in report. this is for SoapUI NG Test case report Attaching the Copy. i caun't find where to write the description for every test step, i want the desscription to be shown in report for every test step.Solved2.7KViews0likes4CommentsDifferences between Ready API and SoapUI NG (Free)
Hello, I have a project. I tried the SOAPUI NG and get java.net.connection reset Socket error. So, I went to the trial version of ReadyAPI. The same project worked there. No changes. No setting changes. I have compared between both and the settings were the same. What do I need to to to get the project to work in SOAPUI NG? (BTW: The free version trail of ReadyAPI expired.) Any advice is appreciated? Thank you. pnorm5.6KViews0likes3CommentsSoapUI NG Pro 1.4.0 - JSON Response view removing decimal points
Hello, I am testing REST API's. I just upgraded to 1.4.0. On my tests, I have a content assertion for an account balance field. This has always been set to validate a content of '0.0'. However after upgrading, this assertion always fails. Expected 0.0, Actual 0. 1.4.0 is removing the decimal point in JSON view, the raw response still contains the decimal point. Example of Raw response: { "OutstandingBalance": 0.0 } Example of JSON View tab for same element: { "OutstandingBalance": 0 } Can this be investigated please as all of my existing tests (of which there are a lot) are failing because of this. It is the0.0 value I am expecting to see. Please let me know of any additional information that may be needed. ThanksSolved5.8KViews0likes9CommentsTest Case not completing gracefully when Groovy Test Step accessing database.
Ready API 1.5.0 I have a Test Case with the following Steps: 1. A JDBC test step to get the count of rows in a certain table. 2. REST API Request 3. Groovy Script to compare API Response with database (database connection and query are executed within theGroovy Script) Upon running this test, once it gets to the groovy script all test steps become greyed out and the test case freezes. I have to close the test case. NOTE: Previously I was running Ready API 1.4.1 and this issue did not occur. This only started happing after the upgrade. I see thefollowing error apeparing in the Ready API Log: Wed Nov 11 14:37:14 GMT 2015:ERROR:Error notifying listener after run org.springframework.jdbc.BadSqlGrammarException: PreparedStatementCallback; bad SQL grammar [select * from test_step_run_history where execution_id = ?]; nested exception is org.h2.jdbc.JdbcSQLException: Column "icon_path" not found [42122-176] at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:231) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:73) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:660) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:695) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:722) at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:772) at org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.query(NamedParameterJdbcTemplate.java:192) at com.smartbear.ready.db.repository.jdbc.JdbcTestStepRunHistoryEntryRepository.findByExecutionId(JdbcTestStepRunHistoryEntryRepository.java:142) at com.eviware.soapui.impl.wsdl.history.DefaultLatestRunsProvider.a(DefaultLatestRunsProvider.java:357) at com.eviware.soapui.impl.wsdl.history.DefaultLatestRunsProvider.a(DefaultLatestRunsProvider.java:329) at com.eviware.soapui.impl.wsdl.history.DefaultLatestRunsProvider.a(DefaultLatestRunsProvider.java:317) at com.eviware.soapui.impl.wsdl.history.DefaultLatestRunsProvider.getLatestRun(DefaultLatestRunsProvider.java:140) at com.eviware.soapui.impl.wsdl.panels.testcase.ProWsdlTestCaseDesktopPanel$InternalTestRunListener.afterRun(ProWsdlTestCaseDesktopPanel.java:921) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.notifyAfterRun(AbstractTestCaseRunner.java:316) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalFinally(AbstractTestCaseRunner.java:188) at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalFinally(AbstractTestCaseRunner.java:1) at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:154) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.h2.jdbc.JdbcSQLException: Column "icon_path" not found [42122-176] at org.h2.message.DbException.getJdbcSQLException(DbException.java:344) at org.h2.message.DbException.get(DbException.java:178) at org.h2.message.DbException.get(DbException.java:154) at org.h2.jdbc.JdbcResultSet.getColumnIndex(JdbcResultSet.java:3122) at org.h2.jdbc.JdbcResultSet.get(JdbcResultSet.java:3210) at org.h2.jdbc.JdbcResultSet.getString(JdbcResultSet.java:304) at com.smartbear.ready.db.repository.jdbc.JdbcTestStepRunHistoryEntryRepository$TestStepRunHistoryEntryRowMapper.mapRow(JdbcTestStepRunHistoryEntryRepository.java:383) at com.smartbear.ready.db.repository.jdbc.JdbcTestStepRunHistoryEntryRepository$TestStepRunHistoryEntryRowMapper.mapRow(JdbcTestStepRunHistoryEntryRepository.java:1) at org.springframework.jdbc.core.RowMapperResultSetExtractor.extractData(RowMapperResultSetExtractor.java:93) at org.springframework.jdbc.core.RowMapperResultSetExtractor.extractData(RowMapperResultSetExtractor.java:60) at org.springframework.jdbc.core.JdbcTemplate$1.doInPreparedStatement(JdbcTemplate.java:708) at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:644) ... 19 more Can this be investigated as a matter of urgency as this is affecting Regression on our Product. Or could the installer for Ready API 1.4.1 be supplied so I can downgrade to a more stable build.Solved7.3KViews0likes16CommentsRE: SoapUI NG Pro Count No. Of Test Cases
Hello, I just want to know how to count the total number of test cases inside my Project. I have certain condition to apply on this. 1. The disabled/reusable TestSuites/Test Cases Should be omitted from this count. 2. If any of the Test Cases involves with DataSource/DataSourceLoop Test Steps, then I need to count the total number of rows inside the DataSource as Test Case Count. I dont want to count the entire Datasource/loop as a single test case. I have the following script to achieve the Task 1. But want to know how to achieve the Task 2. def totalTestSuiteCount = 0; def enabledTestSuiteCount = 0; def disabledTestSuiteCount = 0; totalTestSuiteCount = testRunner.testCase.testSuite.project.getTestSuiteCount(); for(i = 0; i < totalTestSuiteCount; i++) { flag = testRunner.testCase.testSuite.project.getTestSuiteAt(i).isDisabled(); if(!flag) enabledTestSuiteCount = enabledTestSuiteCount + 1; else disabledTestSuiteCount = disabledTestSuiteCount + 1; } log.info "Total Test Suite Count : " + totalTestSuiteCount; log.info "Total Enabled/Active Test Suite Count : " + enabledTestSuiteCount; log.info "Total Disabled/Reusable Test Suite Count : " + disabledTestSuiteCount; def totalTestCaseCount = 0; def enabledTestCaseCount = 0; def disabledTestCaseCount = 0; for(i = 0; i < totalTestSuiteCount; i++) { flag = testRunner.testCase.testSuite.project.getTestSuiteAt(i).isDisabled(); if(!flag) { totalTestCaseCount = totalTestCaseCount + testRunner.testCase.testSuite.project.getTestSuiteAt(i).getTestCaseCount(); } } for(i = 0; i < totalTestSuiteCount; i++) { flag = testRunner.testCase.testSuite.project.getTestSuiteAt(i).isDisabled(); if(!flag) { tccount = testRunner.testCase.testSuite.project.getTestSuiteAt(i).getTestCaseCount(); for(j = 0; j < tccount; j++) { tcflag = testRunner.testCase.testSuite.project.getTestSuiteAt(i).getTestCaseAt(j).isDisabled(); if(!tcflag) enabledTestCaseCount = enabledTestCaseCount + 1; else disabledTestCaseCount = disabledTestCaseCount + 1; } } } log.info "Total Test Case Count : " + totalTestCaseCount; log.info "Total Enabled/Active Test Case Count : " + enabledTestCaseCount; log.info "Total Disabled/Reusable Test Case Count : " + disabledTestCaseCount;2.1KViews0likes3CommentsTest runner license issue when running multiple tests simultaneously
Am running testRunner using bash scripts. Want to run multiple tests to see how the system handles multiple users. I runfor i in {1..10};do echo $i;./RunTests_TestPack-TradeCloud-mmh-testpack16.sh -t massmart -e brytrain02 -r $i -l1 -f 4 >> /home/ds/loadTest.txt 2>&1 & done Am getting the following, which stops the process. ************************************************************************************* END USER LICENSE AGREEMENT Since this is the first time you are running it after installing a new license, you will need to accept the end user license agreement. Please read it through carefully and review the conditions ************************************************************************************* View license agreement now? [y/N]: 12:57:35,312 INFO [WsdlProject] Loaded project from [file:/home/ds/projects/IntegrationTestClient/trunk/onceOffTestScripts/../testCases/IMPONE-813-CreateOrder-SimpleValida tion.xml] I did see a previous posthttp://forum.soapui.org/viewtopic.php?f=2&t=25113, but I not sure if it relates. Is it possible to work around this, or is it a licencing issue. I have a valid licence for soapui, and checked that the .key file is in /home/ds/.soapui/. The license works fine on the front end, and if I run the script one at a time i.e../RunTests_TestPack-TradeCloud-mmh-testpack16.sh -t massmart -e brytrain02 -r $i -l1 -f 4 Regards, Claus Zimmermann1KViews0likes2Comments