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

Please gives us back decent borders

$
0
0

I let SOAPUI upgrade from 5.0 to 5.2 to be greeted by the new ugly flat interface:

Tastes differ, OK, but you threw away functionality (only because you wanted to conform to what 'everybody' else is doing?):

 

White overlapping windows on a white background with a one-pixel lightgray border - how dare you!

 

- A lot of contrast and distinguishing color is gone - the new interface requires much more attention to find things

 

- And try to resize a window now - I waste seconds each time trying to get the mouse cursor to change into the drawing angle. On a side you eventually succcees, but then try a corner!

 

This is horrible. At least gives us borders back that can be 'grabbed'.

 

 

 


SOAP version

$
0
0

Is it possible to change teh SOAP version when sending out SOAP requests with READY! API?

Similar questiosn mention changing it in the bottom left 'Request Properties' window, but I cant find the soap version there.

Project

$
0
0

How do I call a project within another project?

What is the 'domain' in authentication

$
0
0

I want to send out a SOAP request with username/passoword. I have filled in the username and password under the 'Auth' tab. The request if failing (ter:NotAuthroised'). When I check with wirehsark, the authentication elements of the soap bodyt are not being included. I have left the 'domain' field blank and was wondering if this could be causing the problem. What do I fill in for 'domain'? (the 'Outgoing WSS' and 'Incomming WSS' fields are also empty).

 

Use own Log4j configuration

$
0
0

I'm launching TestRunner from the command line with some system properties. Among them, "soapui.log4j.config" to override logging configuration for SOAPUI.

E.g. testrunner.bat -Dsoapui.log4j.config="my_log4j.xml" ... -s MySuite project.xml

Since migration to SOAPUI 5.2, my configuration is not taken into account.

In SOAPUI 5.0, there was an output as follows:

Configuring log4j from [...\my_log4j.xml]

This output is expected as per initLog method in DefaultSoapUICore class:

 

protected void initLog()
  {
    if( !logIsInitialized )
    {
      String logFileName = System.getProperty( SoapUISystemProperties.SOAPUI_LOG4j_CONFIG_FILE, "soapui-log4j.xml" );
      File log4jconfig = root == null ? new File( logFileName ) : new File( new File( getRoot() ), logFileName );
      if( log4jconfig.exists() )
      {
        System.out.println( "Configuring log4j from [" + log4jconfig.getAbsolutePath() + "]" );
        DOMConfigurator.configureAndWatch( log4jconfig.getAbsolutePath(), 5000 );
      }

... 

 

Any idea why such a regression?

 

I need this to work as I want to use JSONPath assertions.

SOAPUI Pro trial version license is not activating

$
0
0

I am unable to activate SOAPUI Pro 14-day trial version. Could someone please help me?

 

Thanks

Sravan.

How do I data drive a REST Api endpoint?

$
0
0

I'm trying to cycle through a list of Rest API endpoints like this...

 

GET https://XYZapi.com:1234/api/athing/<uniqueIdNum1>

GET https://XYZapi.com:1234/api/athing/<uniqueIdNum2>

GET https://XYZapi.com:1234/api/athing/<uniqueIdNum3>

GET https://XYZapi.com:1234/api/athing/<uniqueIdNum4>

GET https://XYZapi.com:1234/api/athing/<uniqueIdNum5>

where uniqueIdNumX is a data set like this...

 

38020150666098044400
38020188475097282133
38020160684095682582
38020186685093654030
38020186685093654017
38020184251093327262

 

 

When I'm in SoapUI Pro it looks to me like the you can't parameterise or data drive the end point URI...

 

http://screencast.com/t/aU5CCA5R

 

I can data drive the parameters or the body (if it's Post) but I can't seem to work out a way to datadrive the end point URI.

 

Any thoughts?

 

Problem with overriding the endpoint of a dependent project via command line

$
0
0

 

Hi,

 

I am using Ready API version 1.3.1

I have few test cases in several different projects running fine on the Dev server.
I am trying to run the same set of test cases on the Test server but via command line.

Some of my test cases in Project A call another test case from a different project (say., Project) B via a groovy script.
Below is the structure for instance:
Login:
  LoginTestSuite:
       LoginTestCase:

Profiles:
   ProfilesTestSuite:
       ProfilesTestCase: --> Calls LoginTestCase from Login Project via a groovy script

I did not have any problem when I executed the test case via the SoapUI GUI.

I am using the below script to run the test case from command line.
/opt/SmartBear/ReadyAPI-1.3.1/bin/testrunner.sh  -FPDF -R"Project Report" -ehttp://172.22.221.30:8080/emi -sProfilesTestSuite -cProfilesTestCase -I -r -GResponseSLA=10000 emi_profiles.xml
All my project.xmls are in the same location from where I am running the script. I am using the "-e"option to override the endpoint to point to the Test server.

In my groovy script I have given the location of where it needs to look for the project.xml of the test case which I am running from a different project (Login Project).

//Below is my groovy script:

import com.eviware.soapui.support.types.StringToObjectMap
import com.eviware.soapui.model.project.ProjectFactoryRegistry

import com.eviware.soapui.impl.wsdl.WsdlProjectFactory


// get workspace

def workspace = testRunner.testCase.testSuite.project.workspace

def project
if (workspace == null)

  project = ProjectFactoryRegistry.getProjectFactory(WsdlProjectFactory.WSDL_TYPE).createNew("emi_logon.xml")

else

  project = testRunner.getTestCase().getTestSuite().getProject().getWorkspace().getProjectByName("Login")


def myTestSuite = project.getTestSuiteByName("LoginTestSuite")

// get test case

def myTestCase = myTestSuite.getTestCaseByName("LoginTestCase")

//run testcase

def contextMap = new StringToObjectMap( context )

myTestCase.run(contextMap,false);

The problem that I am facing is that, the "-e" option in the command line overrides the endpoint in the project.xml given in the command line (emi_profiles.xml) but does not override the project provided in the groovy script(emi_logon.xml).
So what happens is, when I run the script from command line, it says connection is refused to the Dev server which the project in the groovy script is pointing to.
Is there a way to override the endpoint of the project defined in the groovy script as well?

Your help is much appreciated!

 


Unable to find objects.

$
0
0

I am using keyword tests.  During some of my tests, I would get an error that says something along the lines of being unable to find the object.  I can clearly see the objects; boxes, buttons, textboxes on my screen.  The only thing that works so far would be to press F5 to refresh or click a link that leads back to the same page which is essentially is a refresh as well.

 

Another issue I ran into was when I post on a forum I am working on, the 'Home' key does not function properly.  Pressing F5 before I do the homekey seems to fix this as well.

 

Does anyone know of an easier and/or more efficient way to solve these issues other than refreshing the page?

 

 

Thank you.

Can't reach serviceV from external clients.

$
0
0

I have created a REST virt in the ServiceV tab of ReadyAPI so that I can control all aspects of the system under test. When I try to access the virt from the system under test, I get the following error: "Can't reach serviceV from external clients." Is this a new restriction with ReadyAPI or am I missing something? I've done this for SOAP requests using SoapUI Pro in the past without issue.

 

Thanks,

--

Steve

Bug: Multi-selecting assertions does not disable Remove from right-click menu - potential data loss

$
0
0

Using Ready! API 1.3.1.

I have an Assertion Step that contains 3 assertions as shown in image.

Multi-select the first 2 by pressing the Ctrl key and selecting with mouse (doesn't matter which on is selected first).

The 'X' is disabled but if I right-click and select "Remove Assertion" the 1st and 3rd ones are deleted.

 

Note:  What actually gets deleted depends on how many you have total and how many are selected.  Simple solution is too just disable the option from Right-click menu until multi-delete is supported.

 

Luckily I was able to exit without saving to get my assert back Smiley Happy

 

Regards,

Greg

 

MultiSelectAssertions2.png

How to compare two numbers, log error if fail to be equal, and stop test

$
0
0

Hi All. I realize this should be really simple, but I'm just not seeing how to do this with TestComplete. Instead of doing an aqObject.CheckProperty(...) I want to do something like a aqNumber.CheckValues(valueA, cmpEqual, valueB) and have it log the error and stop execution if they are not equal.

 

What in the world am I missing!? Does something like this exist and I'm just missing it??

 

Thanks.

 

-Ron

testrunner.bat log files for Ready! API

$
0
0

When running testrunner.bat (from DOS) for SoapUI-PRO 5.1.2, the soapui.log & soapui-errors.log files go to the bin directory.  When running testrunner.bat (from DOS) for Ready! API 1.3.1, I see error.log file in the bin directory, but that's it.  Where are the files equivalent to soapui.log & soapui-errors.log going for Ready! API?

java.io.FileNotFoundException: while running datasource step reading from excel(Access is denied)

$
0
0

Iam trying to run the project using Testrunner.Execution of datasoucre step is getting failed due to ( Access Denied) & java.io.FileNotFoundException.

 

Running SoapUI TestRunner for [Gridpoint_PublicAPI_Project]
directory: C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\.
command: cmd.exe /C testrunner.bat -j -fC:\SVNProjects\PublicAPI_Maven_Project\Testing\PublicProjectReports -R"JUnit-Style HTML Report" -EDefault -I -S C:\SVNProjects\PublicAPI_Maven_Project\Testing\src\main\java\PUBLIC_SOAPUI\public_API_project.xml
SoapUI Pro 5.1.2 TestCase Runner
Configuring log4j from [C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\soapui-log4j.xml]
16:05:05,639 INFO  [SoapUI] Adding [C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\ext\groovy-all-1.8.0.jar] to extensions classpath
16:05:05,639 INFO  [SoapUI] Adding [C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\ext\jtds-1.3.1.jar] to extensions classpath
16:05:05,640 INFO  [SoapUI] Adding [C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\ext\jxl-2.6.12.jar] to extensions classpath
16:05:05,640 INFO  [SoapUI] Adding [C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\ext\jxl.jar] to extensions classpath
16:05:05,640 INFO  [SoapUI] Adding [C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\ext\postgresql-8.3-604.jdbc3.jar] to extensions classpath
16:05:05,640 INFO  [SoapUI] Adding [C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\ext\postgresql-8.3-604.jdbc4.jar] to extensions classpath
16:05:05,640 INFO  [SoapUI] Adding [C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\ext\sqljdbc.jar] to extensions classpath
16:05:05,879 INFO  [DefaultSoapUICore] initialized soapui-settings from [C:\Users\harry\soapui-settings.xml]
16:05:06,065 INFO  [SoapUIProGroovyScriptEngineFactory] Setting Script Library to [C:\SVNProjects\PublicAPI_Maven_Project\Testing\src\main\java\GlobalScripts]
16:05:06,067 INFO  [DefaultSoapUICore] Adding listeners from [C:\Program Files\SmartBear\SoapUI-Pro-5.1.2\bin\listeners\demo-listeners.xml]
16:05:09,733 INFO  [WsdlProject] Loaded project from [file:/C:/SVNProjects/PublicAPI_Maven_Project/Testing/src/main/java/PUBLIC_SOAPUI/public_API_project.xml]
16:05:10,195 INFO  [SoapUIProGroovyScriptEngineFactory] Setting Script Library to [C:\SVNProjects\PublicAPI_Maven_Project\Testing\src\main\java\GlobalScripts]
16:05:17,888 INFO  [log] C:\SVNProjects\PublicAPI_Maven_Project\Testing\src\main\java\PUBLIC_SOAPUI
16:05:17,903 INFO  [log] Global Script path   :C:\SVNProjects\PublicAPI_Maven_Project\Testing\src\main\java
16:05:17,968 INFO  [SoapUIProTestCaseRunner] Running SoapUI tests in project [PublicAPI_Project]
16:05:18,028 INFO  [SoapUIProTestCaseRunner] Running Project [PublicAPI_Project], runType = SEQUENTIAL
16:05:18,116 INFO  [SoapUIProTestCaseRunner] Running SoapUI testcase [Disable/Enable testcases from excel]
16:05:18,118 INFO  [SoapUIProTestCaseRunner] running step [Data testcase Datasource]
16:05:18,127 ERROR [SoapUIProTestCaseRunner] Data testcase Datasource failed, exporting to [C:\SVNProjects\PublicAPI_Maven_Project\Testing\PublicProjectReports\Data_API-DisableEnable_testcases_from_excel-Data_testcase_Datasource-0-FAILED.txt]
java.io.FileNotFoundException: C:\SVNProjects\PublicAPI_Maven_Project\Testing\src\main\java\PUBLIC_SOAPUI (Access is denied)
 at java.io.FileInputStream.open(Native Method)
 at java.io.FileInputStream.<init>(Unknown Source)
 at com.eviware.soapui.impl.wsdl.teststeps.datasource.ExcelFacade.readWorkbookFrom(SourceFile:32)
 at com.eviware.soapui.impl.wsdl.teststeps.datasource.ExcelDataSource.load(SourceFile:114)
 at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep.next(SourceFile:439)
 at com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep.run(SourceFile:126)
 at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.runTestStep(AbstractTestCaseRunner.java:213)
 at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCaseRunner.runCurrentTestStep(WsdlTestCaseRunner.java:47)
 at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:139)
 at com.eviware.soapui.impl.wsdl.support.AbstractTestCaseRunner.internalRun(AbstractTestCaseRunner.java:47)
 at com.eviware.soapui.impl.wsdl.support.AbstractTestRunner.run(AbstractTestRunner.java:129)
 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)
16:05:18,141 INFO  [SoapUIProTestCaseRunner] Finished running SoapUI testcase [Disable/Enable testcases from excel], time taken: 3ms, status: FAILED
16:05:18,144 INFO  [SoapUIProTestCaseRunner] Running SoapUI testcase [TC_Data_0001_GET getPaths_for different users_Positive]
16:05:18,144 INFO  [SoapUIProTestCaseRunner] running step [Call POST - Portal Login]
16:05:18,215 INFO  [SoapUIProTestCaseRunner] Running SoapUI testcase [POST-Portal Login]
16:05:18,225 INFO  [SoapUIProTestCaseRunner] running step [Establish Test Case Properties]
16:05:18,250 INFO  [SoapUIProTestCaseRunner] running step [Extract required Properties from calling Test Case]
16:05:18,282 INFO  [log] user name   :   APIUSER
16:05:18,282 INFO  [log] password   :   Fall2014
16:05:18,282 INFO  [SoapUIProTestCaseRunner] running step [Call GP EM2 Login]
16:05:18,664 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request
16:05:18,664 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /publicApi/services/auth/login?password=Fall2014&username=APIUSER HTTP/1.1
16:05:18,764 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 200 OK
16:05:18,774 DEBUG [HttpClientSupport$SoapUIHttpClient] Connection can be kept alive indefinitely
16:05:18,879 INFO  [SoapUIProTestCaseRunner] running step [Extract Response Time]

Is it possible to report on estimated test time vs actual elapsed test time in QA Complete?

$
0
0

As far as I can see users can capture estimated time against requirements and elapsed time in calculated when running tests - can you compare these?

 

I'm new to QA Complete but I would like to compare test estimates for the overall project for each specified requirement.

 


Bug: HTTP Request URL input do not allows to provide capitalized strings

$
0
0

When I want to create Test Case with HTTP Request to URL like "*/editAlertTemplate.htm"

Then SAOPUI automatically converts provided string into 'Request URL' input to lowercase

ccollab commit gives error with files from different folders in the same review

$
0
0

I'm using code collaborator client version v7.3.7303. Codecollaborator GUI getting stuck sometimes and so decided to use command prompt commands to add/commit my files. Adding files to review is working without any issues. But I'm facing problem while issuing ccollab commit from cmd prompt when my review has files from different folders from the same svn branch(or different branch). For ex: I have files as shown below (all are from same branch):

 

'D:\MyWorkspace\mydir\dirA\dirA1\dirA2\file1.txt'
'D:\MyWorkspace\mydir\dirX\dirX1\dirX2\module\build.xml'
'D:\MyWorkspace\mydir\dirX\dirX1\dirX2\module\src\main\com\MyFilter.java'

 I raised all three files in a review and review got approved. When i try to commit from cmd prompt using below command, i'm getting error as shown below:

 

D:\MyWorkspace\mydir\dirX\dirX1\dirX2\module>ccollab commit --comment "some commit msg" 112233



Connecting to CodeCollaborator Server http://1.2.3.4:8080 
Connected as: Username (username) Loading review ID 112233.. 
Auto-detecting SCM System for 'D:\MyWorkspace\mydir\dirA\dirA1\dirA2\file1.txt' 
Detected Subversion 
Auto-detecting SCM System for 'D:\MyWorkspace\mydir\dirX\dirX1\dirX2\module\build.xml'. 
Detected Subversion 
Auto-detecting SCM System for 'D:\MyWorkspace\mydir\dirX\dirX1\dirX2\module\src\main\com\MyFilter.java'
Detected Subversion 
ERROR: SCM system communication problem: svn: E155007: 'D:\' is not a working copy

 

I tried executing the command with flag,--force, but not working and also i tried executing the command at D:\MyWorkspace\mydir but no luck.

But the same command is working if my review has only files from same directory. Couldn't figure out whats causing this error. Please advise.

 

 

License file corrupted message - cannot use the Soap ui Pro rool ?

$
0
0

Hi All,

 

I have existing soap UI Pro 4.5 licesne file and wanted to utilise Soap UI NG Pro (from ready API 1.3.1).

I followed below process and now I cannot use it. it says licesane file corrupted.

 

Here is what I did - (I use macbook)

 

Launch soap ui pro 4.6.4 - deactivate licesne and store the licesne key locally.

Lauch ready api 1.3.1 and import above license key. - ready API shows licesne 

AS READY API 1.3.1 is unresponsive on macbook I wanted to use soap ui pro 4.6.4 again

I could not deactivate key from ready API 1.3.1 as it hangs on macnook 

So I opened soap ui pro 4.6.4 it asked for key and when I browse the licesne key - got license corrupteed message (see attachments)

I went back to ready api 1.3.1 but it asks for licesne key here as well and when selected it also says key is corrupted.

 

Now I am not able to use ready API 1.3.1 due to correpted key so cannot open it and deactivate the key to be used in pro 4.6.4

 

pLEASE advise.

 

 

How to use Rename method?

$
0
0

Hello all,

               I have a file in the store file.I used the Metho to get the File.FileNameByName."Having the File name with full path."

a = File.FileByName("abc.txt");

aqfile.Copy("C:\abc.txt");

aqfile.rename(a,"C:\DEF.txt");

at that time Store --> File  abc is n/a inside of Testcomplete Project.

java.util.EmptyStackException during test execution with groovy script

$
0
0

Hi Team,

 

recently I was describing my problem on SoapUI forums (SoapUI NG and SoapUI Open Source) about java.util.EmptyStackException but I didn’t get any clear answer. When I'm running my project I'm getting java.util.EmptyStackException. I'm using SoapUI 5.1.2 Pro and in my project I have many TestSteps in TestCases and TestSuites.
To validate the content of any response I use Contains, Not Contains, Not SOAP Fault, SOAP Response and mostly XPath Match assertions.
I also have a groovy script as TestStep (contained in a TestSuite), to execute the tests on 3 different servers with 14 different properties each. So each test is executed 42 times.

During each execution in case of failed TestCase the result message of a failed TestStep is written to a file. And this is an exception that I see in the log files: java.lang.OutOfMemoryError: Java heap space java.lang.OutOfMemoryError: Java heap space.

My memory settings are -Xms1024m -Xmx6g -XX:MaxPermSize=128m. I get the mentioned error (not at a certain TestStep).

I would like to know why I get this error in the soapui-error.log. The tests are run in sequence through testrunner script.

Without this problem being solved, it doesn't make much sense for me to use and pay for SoapUI Pro any more.

Best regards,

A.

P.S. In the attachment you find my groovy script and an example of error log.

Viewing all 20990 articles
Browse latest View live