Quantcast
Channel: New board topics in SmartBear Community
Viewing all 21061 articles
Browse latest View live

i was not able to run a bat file as administrator from test complete

$
0
0

I was not able to execute  batch file  as administrator.

 

i was trying to execute the below commands from batch file

 

for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do (
  %windir%\System32\tscon.exe %%s /dest:console
)

 

I tried launching the Test Complete as Administator and nothing worked.

 

Please help me on this


Json response in groovy script returns nothing when using testrunner.bat DOS command.

$
0
0

Using Windows 7 with Soap 5.2.0 freeware (open source).

I have a rest project that has one test suite with one test case containing two test steps. The first step is a groovy step that calls
the second test step. The second test step is a Rest GET request that sends a string to our API server and receives a response back in JSON format. The second test step has a script assertion that does "log.info test Is Run", so I can see when the second test is run. When the groovy script calls the second test it reads the second test's Json results like this:

 

testStepToUse.run(testRunner, context) // run Rest get test
def response = context.expand('${PingTest#Response}').toString() // read results


I can also use this for getting Json response.
def response = testRunner.testCase.getTestStepByName(testStepForPing).getPropertyValue("response")

 

I use this to get at the project in the groovy script so I can run through testrunner.bat or through the Soap UI:

 

def workspace = testRunner.testCase.testSuite.project.workspace
def mainProj = (workspace==null) ?
ProjectFactoryRegistry.getProjectFactory(WsdlProjectFactory.WSDL_TYPE).createNew("C:\\LichPublic\\_Soap\\_EdPeterWorks\\DemoPing.xml") :
workspace.getProjectByName(projectName)
if(!mainProj.open && workspace!=null)
{workspace.openProject(testProject)}

 

The test works fine when run through the Soap UI but when I run with test runner the response from the call that gets the Json response returns nothing (using either of the two methods shown above). I know the test is being called from the groovy script and running because I see the log.info result in the DOS window log shown below:

 

SoapUI 5.2.0 TestCase Runner
12:09:01,612 INFO [WsdlProject] Loaded project from [file:/C:/LichPublic/_Soap/_EdPeterWorks/DemoPing.xml]
12:09:01,617 INFO [SoapUITestCaseRunner] Running SoapUI tests in project [mobile-procurement-api]
12:09:01,619 INFO [SoapUITestCaseRunner] Running Project [mobile-procurement-api], runType = SEQUENTIAL
12:09:01,628 INFO [SoapUITestCaseRunner] Running SoapUI testcase [PingTestCase]
12:09:01,633 INFO [SoapUITestCaseRunner] running step [GroovyScriptForPingtest]
12:09:01,932 INFO [WsdlProject] Loaded project from [file:/C:/LichPublic/_Soap/_EdPeterWorks/DemoPing.xml]
12:09:02,110 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request
12:09:02,111 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: GET /mobility/v1/ping?
echoText=PingOne HTTP/1.1
12:09:02,977 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 200
12:09:02,982 DEBUG [HttpClientSupport$SoapUIHttpClient] Connection can be kept alive indefinitely
12:09:03,061 INFO [log] test Is Run

 

This is the testrunner call in DOS:
C:\Program Files\SmartBear\SoapUI-5.2.0\bin\testrunner.bat" DemoPing.xml

 

Plese help. If this is a matter of using the Pro version, that's fine. We are finding Groovy scripting very versatile and powerful with SoapUI testing.

 

Thanks.

How do I get rid of xsi:nil when setting an elements text using groovy

$
0
0

I'm trying to set the text of an xml element in my request that was previously set to xml:nil=true.

 

So I want:

<MyElement i:nil="true" />

to become:

<MyElement>NewText</MyElement>

My groovy script is:

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def response = groovyUtils.getXmlHolder("Step1#Response")
response["//MyElement"] = "NewText"

But I'm getting:

<MyElement i:nil="true">NewText</MyElement>

How do I get rid of the xsi:nil attribute?

Pdf file in service response not showing up in "Attachments" tab in Outline/ Overview views

$
0
0

Hi,

 

I'm using latest version of Ready API but this issue was noted with previous versions as well. Could anyone let me know whether this has something to do with the capability of tool or just wrong expectation from my side?

 

I have a rest service which uses HTTP GET method to return a PDF file in response. If I use just a standard browser like google Chrome and hit the end point of service, browser starts to download file. When same request is run via ReadyApi my expectation was to see the pdf file in "Attachments" tab of Outline OR Overview tab and open it directly fromt there. But no attachment shows up there.

 

Attached is a sample response xml for your reference.

 

Note: At the moment I'm still able to view the PDF file in response by dumping the reponse into a file on my hard drive using ready api.

 

Appreciate your help.

 

Thanks & Regards,

Gilu Gopi

 

 

 

 

 

 

Testcomplete obtaining data from an edit box and storing to a variable during test execution

$
0
0

I'm having problems utilizing the Get method for an Windows Edit control and the Set Variable Value within a Keyword test execution.

TestComplete11 - Organize Tests - Stop on Error

$
0
0

Do we have a option "Stop on Error - Organize Tests window" in TC 11?

i.e. to make particular test stop and continue other tests to run. 

 

Organize Tests.jpg

(Bug SoapUI 5.2.0) Very long endpoint names extend too far

$
0
0

Hi,


Found no other way to report it so adding it here.

When endpoint names are very long the text field gets extended to the very far right of the window making it impossible to see the buttons usually there. See attachment for example.

 

Some visual truncation would be extremely useful.

 

Thanks

SoapUI NG Pro Jenkins integration issue - Import License

$
0
0

Hi, 

 

We are using the 1.4.0 version of Ready API with SoapUI NG Pro. We have floating licenses for our machines and for Continuous integration as well.

 

The old test jobs use the old 5.0.0 SoapUI Pro Maven plugin, but for a new project, we wanted to use the latest version, since the licenses apply to the NG Pro as well.

 

The problem came, when I've tried to use the latest Maven plugin for the Jenkins job. The job fails with the following:

 

00:48:14,170 INFO  [DefaultSoapUICore] All plugins loaded
No valid SoapUI NG license exists.
Do you want to install a license? [y/N]: [ERROR] java.util.NoSuchElementException

...

[ERROR] Failed to execute goal com.smartbear:ready-api-maven-plugin:1.4.0:test (default-cli) on project shpm-soapui-project: Ready! API Test(s) failed -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.smartbear:ready-api-maven-plugin:1.4.0:test (default-cli) on project shpm-soapui-project: Ready! API Test(s) failed
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
...
Caused by: org.apache.maven.plugin.MojoFailureException: Ready! API Test(s) failed

My managers assured me, that the "old" SoapUI Pro licenses have to work until the end of this year. There is proof for that, since the old jobs are running just fine.

 

My question: Is the old SoapUI Pro floating license for Jenkins valid for the Ready API and NG Pro integration? Should we buy a new floating license for the NG CI integration?

 

Note: I've searched the forums for solutions, every single thread shows, that I have to update the dependencies to 1.4.0 and the issue is going to be fixed. Did that, nothing helps.

 

Regards, 
Nandor


Testrunner: does not switch the JDBC connection while using the environment option

$
0
0

Hi,
I"m using Ready! API 1.4.1 in combination with Jenkins. The project has several enviroments defined in wich only one JDBC database connection is specified. For the different enviroments this definition is used; where per environment the real JDBC connections is set to a corresponding endpoint.

 

Hence, I use different back-end databases and use the environment option to swith the JDBC to the correct one. That seems to work fine in the GUI. However, while running the project at the commandline via the testrunner faciltity, the environment is not switched at all. It seems to use the active enviroment that was used last time within the project.

 

Commandline (using symbolic link SmartBear to resolve path version indepedent): /opt/SmartBear/soapUI/bin/testrunner.sh -r -j -M -f ./testresults -E postgres93  -c VerifyService datahub_integration_test.xml

 

I'm using the -E option and the environment 'postgres93' here. It is defined as well so no errors during execution. Only switching JDBC using enviroments i.c.w. testrunner is not possible?

 

Any help is appreciated!

Testrunner Error - java.net.SocketTimeoutException: Read timed out

$
0
0

I have a SOAPUI project that completes succesfully when run in the UI. However when I run same project using the command line (testrunner.bat) it fails. The error is "java.net.SocketTimeoutException: Read timed out". The failure happens after the first two tests complete succesfully.

 

The test runner is being executed via a Jenkins project.

 

Any idea's or solutions on why this is occurring would be appreciated.

 

Below is the output

 

[echo] Running soapUI Test...
[echo] soapUI project folder is C:\gatewayservice\Services\CustomerProfileService\trunk\soapui\GatewayCustomerProfileLocalTest-soapui-project
[echo] soapUI test runner folder is C:\Jenkins\projects\Gateway\tools\soapui-4.5.1\bin\testrunner.bat
[exec] soapUI 4.5.1 TestCase Runner
[exec] 11:59:08,678 INFO [DefaultSoapUICore] Creating new settings at [C:\Windows\System32\config\systemprofile\soapui-settings.xml]
[exec] 11:59:09,392 INFO [WsdlProject] Loaded project from [file:/C:/gatewayservice/Services/CustomerProfileService/trunk/soapui/GatewayCustomerProfileLocalTest-soapui-project.xml]
[exec] 11:59:09,805 INFO [SoapUITestCaseRunner] Running soapUI tests in project [GatewayCustomerProfileLocalTest]
[exec] 11:59:09,805 INFO [SoapUITestCaseRunner] Running Project [GatewayCustomerProfileLocalTest], runType = SEQUENTIAL
[exec] 11:59:09,843 INFO [SoapUITestCaseRunner] Running soapUI testcase [ValidateBillingAccount_MakeOneTimePayment]
[exec] 11:59:09,847 INFO [SoapUITestCaseRunner] running step [Ping]
[exec] 11:59:09,955 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request
[exec] 11:59:09,955 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: GET /Travelers.eBusiness.Gateway.CustomerProfileService.WebApi/api/v1/ping HTTP/1.1
[exec] 11:59:16,369 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 200 OK
[exec] 11:59:16,372 DEBUG [HttpClientSupport$SoapUIHttpClient] Connection can be kept alive indefinitely
[exec] 11:59:16,385 INFO [SoapUITestCaseRunner] Assertion [Valid HTTP Status Codes] has status VALID
[exec] 11:59:16,390 INFO [SoapUITestCaseRunner] running step [ValidateBillingAccount - MakeOneTimePayment]
[exec] 11:59:16,392 DEBUG [HttpClientSupport$SoapUIHttpClient] Stale connection check
[exec] 11:59:16,394 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request
[exec] 11:59:16,394 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /Travelers.eBusiness.Gateway.CustomerProfileService.WebApi/api/v1/validatebillingaccount HTTP/1.1
[exec] 11:59:23,971 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 200 OK
[exec] 11:59:23,971 DEBUG [HttpClientSupport$SoapUIHttpClient] Connection can be kept alive indefinitely
[exec] 11:59:24,123 INFO [SoapUITestCaseRunner] Assertion [Valid HTTP Status Codes] has status VALID
[exec] 11:59:24,125 INFO [SoapUITestCaseRunner] running step [ValidateBillingAccount - Invalid Action]
[exec] 11:59:24,126 DEBUG [HttpClientSupport$SoapUIHttpClient] Stale connection check
[exec] 11:59:24,127 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request
[exec] 11:59:24,127 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /Travelers.eBusiness.Gateway.CustomerProfileService.WebApi/api/v1/validatebillingaccount HTTP/1.1
[exec] 12:00:24,130 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection closed
[exec] 12:00:24,130 DEBUG [HttpClientSupport$SoapUIHttpClient] Closing the connection.
[exec] 12:00:24,130 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection closed
[exec] 12:00:24,131 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection shut down
[exec] 12:00:24,133 ERROR [WsdlSubmit] Exception in request: java.net.SocketTimeoutException: Read timed out
[exec] 12:00:24,134 ERROR [SoapUI] An error occured [Read timed out], see error log for details
[exec] java.net.SocketTimeoutException: Read timed out
[exec] at java.net.SocketInputStream.socketRead0(Native Method)
[exec] at java.net.SocketInputStream.read(SocketInputStream.java:150)
[exec] at java.net.SocketInputStream.read(SocketInputStream.java:121)
[exec] at org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:149)
[exec] at org.apache.http.impl.io.SocketInputBuffer.fillBuffer(SocketInputBuffer.java:110)
[exec] at org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:264)
[exec] at org.apache.http.impl.conn.DefaultResponseParser.parseHead(DefaultResponseParser.java:98)
[exec] at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:252)
[exec] at org.apache.http.impl.AbstractHttpClientConnection.receiveResponseHeader(AbstractHttpClientConnection.java:281)
[exec] at org.apache.http.impl.conn.DefaultClientConnection.receiveResponseHeader(DefaultClientConnection.java:247)
[exec] at org.apache.http.impl.conn.AbstractClientConnAdapter.receiveResponseHeader(AbstractClientConnAdapter.java:219)
[exec] at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$SoapUIHttpRequestExecutor.doReceiveResponse(HttpClientSupport.java:147)
[exec] at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
[exec] at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:633)
[exec] at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:454)
[exec] at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
[exec] at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
[exec] at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper.execute(HttpClientSupport.java:236)
[exec] at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport.execute(HttpClientSupport.java:345)
[exec] at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:241)
[exec] at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:123)
[exec] at com.eviware.soapui.impl.wsdl.WsdlSubmit.submitRequest(WsdlSubmit.java:76)
[exec] at com.eviware.soapui.impl.rest.RestRequest.submit(RestRequest.java:209)
[exec] at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep.run(RestTestRequestStep.java:898)
[exec] at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:238)
[exec] at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:48)
[exec] at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:147)
[exec] at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:42)
[exec] at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:135)
[exec] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
[exec] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
[exec] at java.util.concurrent.FutureTask.run(FutureTask.java:166)
[exec] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[exec] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[exec] at java.lang.Thread.run(Thread.java:722)
[exec] 12:00:24,142 INFO [SoapUITestCaseRunner] Assertion [Valid HTTP Status Codes] has status UNKNOWN
[exec] 12:00:24,142 INFO [SoapUITestCaseRunner] Assertion [Script Assertion] has status UNKNOWN
[exec] 12:00:24,142 ERROR [SoapUITestCaseRunner] ValidateBillingAccount - Invalid Action failed, exporting to [C:\gatewayservice\Services\CustomerProfileService\trunk\results\SoapUI\ValidateBillingAccount_IntegrationTests-ValidateBillingAccount_MakeOneTimePayment-ValidateBillingAccount__Invalid_Action-0-FAILED.txt]
[exec] 12:00:24,156 INFO [SoapUITestCaseRunner] Finished running soapUI testcase [ValidateBillingAccount_MakeOneTimePayment], time taken: 14044ms, status: FAILED
[exec] 12:00:24,156 INFO [SoapUITestCaseRunner] Project [GatewayCustomerProfileLocalTest] finished with status [FAILED] in 74348ms

json object

$
0
0

 hi

 

i'm working with REST and JSON payloads and have had some difficulty with soapUI when i attempt to dynamically generate a JSON object from a spreadsheet -

 

it may be my solution - where an indicator resolves to true then my script will proceed to iterate over as many rows as are identified for a request message. Each row represents an item to be added to a JSON array. I've noticed that as I added items to the array and the fitted that array into an object - before my script moed onto the next row, using the datasource/datasource loop, the object could not be retained nor saved to a test case/test suite property. I was forced to save it as a string and re-read as a string up on the next loop - remove the comment characters and convert back to a json object.

 

is there anyway that SOAPui could retrain objects in memory created by a groovy script? 

Custom Web Objects are opaque to TC? (TC11 + Angular)

$
0
0

So, I have TC11.1, all patched and happy.

I have an application that is a nice Web page...

The entire app runs in frames... One master frame, with all the bits and pieces within. It's an Angular structure.

 

So, Along I come, attempting to record a script... I launch the page, click some controls, spin some spinners, browse thru a couple pages, then close the site

TC Recorded.... Launch the page...............NOT good

Redid it, and tried to use object checkpoint ... the entire page has a red border... NOTHING else(not good)

Tried a Web comparison checkpoint... Got this:

2015-09-21_10-26-59.png

Well.... That's not good.

 

Any thoughts?

Need to generate hmac-sha1 signature to send it part of REST request header. Any help??

$
0
0

Hi Team,

     We are trying to analyse soapUI as an automation tool to automate our RESTful API regression tests. But while doing a prototype we are faing an issue in setting up the headers for REST requests. As we use hmac-sha1 encrytped signature [generated using a epoch timestamp, username and secret]. We didn't find any resource online which does the same, Could you please throw some light there?

 

Any response is highly appreciated.

 

Thanks!

Remote RUN a project suite on another machine.

$
0
0

A TC project suite [A] (running) on VM-1 starts a second project suite [B] over the NETWORK on VM-2 using NetworkSuite.Run(true).

The execute RUNS most of the time. At times the execute does not RUN and comes back with a VM disconnect.

My QUESTION is:

 

---IS THERE--- A PARAMETER OF ANY KIND THAT IS ON THE NETWORK PARAMETER LISTS OF POSSIBLE SETTINGS THAT CAN SET THE TIME OF THAT RESPONSE BACK TO TAKE A LITTLE LONGER SO IT DOES NOT TIME OUT SO QUICKLY?

OR

IS THIS SOME PARAMETER IN TEST COMPLETE ITSELF THAT I NEED TO TWEAK? WHAT AND WHERE IS IT?

Getting Error while trying to run soap xml using java

$
0
0

Hi, I am using maven-soapui-plugin 4.5.1 and I want to run a particular test step. I am using below code:

        WsdlProject abc = new WsdlProject(projectXMLPath);
        WsdlTestSuite wsdlTestSuite = abc.getTestSuiteByName(testSuiteName);
        WsdlTestCase wsdlTestCase = wsdlTestSuite.getTestCaseByName(testCaseName);
        WsdlTestCaseRunner wsdlTestCaseRunner = new WsdlTestCaseRunner(wsdlTestCase,new StringToObjectMap());
        WsdlTestStep wsdlTestStep = wsdlTestCase.getTestStepByName(testStepName);
        wsdlTestCaseRunner.run(wsdlTestStep);

Few things -
1. The project xml has 2 test suites, first test suite has the steps and second test suite has the library functions. In SoapUI they are coded as below:

First Test Step Script (Given a request with a valid address is made) from first Test Suite is as below:

    def proj= null
    def workspace = testRunner.testCase.testSuite.project.getWorkspace();

    proj= workspace.getProjectByName("Calling")

    def testCase = proj.testSuites["Library"].testCases["Successful Calling Steps" ]
    testRunner.testCase.setPropertyValue( "addressLine1", "xxxx" )
    testRunner.testCase.setPropertyValue( "city", "xxxx" )
    testRunner.testCase.setPropertyValue( "state", "xx" )

    def testStep = testCase.getTestStepByName("Given a request with a valid address is made")

    def runner = null
    runner = testStep.run(testRunner, context)

2. Second Test Script from Library Test suite has the actual REST request, end point for the webservice and webservice authentication.

3. If we execute the first test step in first test suite in SOAPUI, it internally calls the test step in Library replaces the variable values and makes a REST call to get a response. This works fine in SOAPUI, but when we are calling the first test step by run method in JAVA, it is failing with below error.


Exception in thread "main" java.lang.NoClassDefFoundError: com/jniwrapper/PlatformContext
 at com.eviware.soapui.SoapUI.isJXBrowserDisabled(SoapUI.java:1060)
 at com.eviware.soapui.SoapUI.isJXBrowserDisabled(SoapUI.java:1038)
 at com.eviware.soapui.impl.wsdl.submit.filters.HttpAuthenticationRequestFilter.filterAbstractHttpRequest(HttpAuthenticationRequestFilter.java:77)
 at com.eviware.soapui.impl.wsdl.submit.filters.AbstractRequestFilter.filterRequest(AbstractRequestFilter.java:31)
 at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:184)
 at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:123)
 at com.eviware.soapui.impl.wsdl.WsdlSubmit.submitRequest(WsdlSubmit.java:76)
 at com.eviware.soapui.impl.rest.RestRequest.submit(RestRequest.java:209)
 at com.eviware.soapui.impl.wsdl.teststeps.RestTestRequestStep.run(RestTestRequestStep.java:898)
 at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:238)
 at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:224)
 at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner$runTestStep.call(Unknown Source)
 at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
 at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
 at MyClass.simpletest1(MyClass.groovy:109)
 at test.main(test.java:11)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:606)
 at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
Caused by: java.lang.ClassNotFoundException: com.jniwrapper.PlatformContext
 at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
 at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
 at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
 ... 22 more

 

What may be missed here that I need to add to resolve the issue? Please help.

 

 After further debug, I found that SoapUI.class -> line 734 is coded as below:

 

return disable.equals("true")?trueSmiley SadgetSoapUICore() != null && getSettings().getBoolean(UISettings.DISABLE_BROWSER)?trueSmiley Sad!disable.equals("false") && allowNative && (BrowserType.Mozilla.isSupported() || BrowserType.IE.isSupported() || BrowserType.Safari.isSupported())?false:!disable.equals("false") && !PlatformContext.isMacOS() && "64".equals(System.getProperty("sun.arch.data.model"))));

 and the PlatformContext class import is failing.

 

import com.jniwrapper.PlatformContext;

Please check and reply. 


What is TestComplete doing differently to user?

$
0
0

Our test application uses a mix of windows and code-jock controls. I double click a menu item in a SysTreeView32 to open a form with code-jock tab header inside an MDIClient. I can open several forms in this way and they all appear as code-jock tabs within the same MDIClient object. I can close the forms and open new ones.

When I do this with TestCompete I can open the forms and close them but when I try to open any form after closing any other form the tested application crashes.

This happens whether I run a test script or simply have the test recorder running while I perform the actions manually.

I don't understand why the tested application performs fine when I do these actions but crashes when TestComplete is playing or recording.

Does TestComplete do anything differently to a user action (like lock certain objects or settings)?

 

unable to import external python library in testcomplete11

$
0
0

Hi ,

 

I have added Requests package to the site packages folder , installed it from command line and modified the search path by appending the sys.path with sitepackages path but still testcomplete throws error "no module named requests". PFA

 

 

Runtime error occurring since update to test execute version 11

$
0
0

Since we update our test complete and test execute to version 11.

 

All most all of our test runs are failing (but not all).

When it fails, the test run with test execute seems to fail somewhere during the run with a "Runtime Error" (see attachment).

 

We run our Test excute with a "TFS nightly build" on virtual machine.

(This has worked for more then a year with out major issues with both Test Excute 9 and 10).

 

The eventlog of windows does not show and specfic messages regarding this.

 

On the 13 days we are using TC and TE 11 we had 4 succesfull runs and 9 failed runs that failed on the "Runtime error"

 

Please advise in how to investigate the cause of the issue or advise with a solution.

 

SoapUI - REST false content type with attachements

$
0
0

I'm using REST requests for functional testing. One of my use case is sending attachement in POST requests. In the content type of sent data (watched in httplog console), there is "Content-Type: application/pdf; name=<NameOfTheDownloadedFile>"

 

 

Why content-type contain downloaded file name (i.e. name=<NameOfTheDownloadedFile>? REST style request are not designed to contain this kind of value.

Unable to capture a dynamic value for a huge number

$
0
0

Hi Team,

 

 

My dynamic value is like this --> MzYxOTc3MTY5MzIxODc3MDpTb2NrMQAqAD

So for the request where this response is found i'm correlating in the response tab using the following method:

Data selectors --> Crete data selector with wizard --> Get text between 2 values --> giving the text before and text after--> Replacing the value of the above dynamic value by (.*?).

 

And this value is present in URL's which I'm replacing with @variable. But it is giving error and not capturing the same.

 

Please let me know if i'm following the right method or no. I need this to be resolved ASAP as i'm having a license version and have to do a run soon.

Viewing all 21061 articles
Browse latest View live