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

Executing Ready API composite project via maven

$
0
0

I am trying to integrate maven with ready api project. I have imported the project as composite project in Ready API 1.9.0.

So on trying to run the settings.xml with the given test suite, it is showing

 

[ERROR] java.lang.Exception: A test suite with the name [E2E_HZN3_UseCases] is missing in the project [E2E_HZN3_SoapUI_Automation]

 

I have tried to use the maven soapui pro version, but it was not successful.

 

Could you please help me in executing maven as composite project/How can I convert the current composite project to normal project.

 

Please see the pom.xml

 

<properties>
        <readyapi.version>1.9.0</readyapi.version>
        <soapui.home>C:\Program Files\SmartBear\ReadyAPI-1.9.0\bin\</soapui.home>
        <project.basedir>D:\HZN_E2E_SI_Git\E2E_HZN3-SoapUI-Automation\</project.basedir>
    </properties>

    <pluginRepositories>
      <pluginRepository>
         <id>SmartBearPluginRepository</id>
         <url>http://smartbearsoftware.com/repository/maven2</url>
      </pluginRepository>
   </pluginRepositories>
    
    <build>
        <plugins>        
             <plugin>

            <!--Plugin groupID used to uniquely identify the project with the plugin.-->
            <groupId>com.smartbear</groupId>
            <!--Plugin artifactId used to find the plugin in the project.-->
            <artifactId>ready-api-maven-plugin</artifactId>
            <!--<artifactId>soapui-pro-maven-plugin</artifactId>-->
            <!--Specifies your Ready! API version. Maven will use the appropriate plugin version.-->
            <!-- IMPORTANT: Must be the same as your Ready! API version.-->
            <version>1.9.0</version>
            <!--<version>5.1.2-m-SNAPSHOT</version>-->

            <executions>
               <execution>

                  <!--Specifies the lifecycle phase to run Ready! API tests .-->
                  <!--We recommend using the test phase.-->
                  <phase>test</phase>
                  <goals>
                     <!--Do not change. Commands Maven plugin to run a functional test.-->
                     <goal>test</goal>
                  </goals>

                  <configuration>

                     <!--Required. Specifies the path to the project to execute.-->
                     <!--<projectFile>settings.xml</projectFile>.-->
                     <projectFile>settings.xml</projectFile>
                     <!--Required for reports. Specifies the format of the report to generate.-->
                     <!--Possible values: PDF, XLS, HTML, RTF, CSV, TXT and XML. Only available in Ready! API Pro. -->                      <reportFormat>PDF</reportFormat>
                     <!--Required for Maven Surefire reports. Must be true. -->
                     <!--Commands Ready! API to generate JUnit-style reports.-->
                     <junitReport>true</junitReport>
                     <!--Required for Maven Surefire reports. Must be as shown. -->
                     <!--Specifies the folder to store reports in. -->
                     <reports>${basedir}/target/surefire-reports</reports>

                     <!-- ========= Additional elements ============= -->

                     <!--Specifies the name of the test suite to run.-->
                     <testSuite>E2E_HZN3_UseCases</testSuite>

                     <!--Provides access to Ready! API properties.-->
                     <readyApiProperties>
                        <property>
                            <name>soapui.home</name>
                            <value>C:/Program Files/SmartBear/ReadyAPI-1.9.0/bin</value>
                        </property>
                    </readyApiProperties>
                     <!--If true, Ready! API will not send usage statistics.-->
                     <!--optOutUsageStatistics></optOutUsageStatistics-->

                     <!-- ========= /Additional elements ============= -->

                  </configuration>
               </execution>
            </executions>
         </plugin>

         <!--Add Maven Site Plugin to improve test stability and prepare test data for Maven SureFire.-->
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-site-plugin</artifactId>
            <version>3.5</version>
         </plugin>
            
        </plugins>
    </build>
    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-report-plugin</artifactId>
                <version>2.18.1</version>
            </plugin>
        </plugins>
    </reporting>


Executing Ready API composite project via maven

Exporting Devtest/LISA scripts to SOAP UI

$
0
0

We are trying to export our existing devtest/LISA scripts to SOAP UI.  Is there a way out to achieve the same?

Exporting Devtest/LISA scripts to SOAP UI

$
0
0
Duplicate post from the same member. Please have patience, do not post duplicate top. Follow thru other topic which is active.

descriptive programming with Python

$
0
0

Hi All ,

 

  • Am new to test complete till now because of your little push i learned so many things in test complete, now its time to take next step.
  • How to write a descriptive programming in test complete with python, actually i know how to do with VB scripting but i want to know how we do in python.
  • It will be great if any one just show/explain me an example for a desktop application.

Lots of errors in log from Test Suite and in TestRunner

$
0
0

Hello,

 

I've only been using SoapUI for a few days but I'm getting a lot of error messages that I can't seem to resolve;

 

Test Suite:

I've created a few test REST requests and added them to a test suite, but when I just click on a test step it adds errors to the error log that I don't know how to resolve and can't find anything useful when searching the internet.

 

An extract is in attached file 1.txt: 

 

TestRunner:

I don't know if any of these are related to TestRunner, but when I launch this I get what is in attached file 2.txt:

 

It looks like I have files missing, or it's maybe struggling to create the files, but if anybody is able to help me resolve some of these errors it would be greatly appreciated.

From what I can see, this doesn't seem to affect the running of the test suite when I set this to run from the GUI, so my next question is: does any of the above really matter? I will be venturing into Groovy Scripts in the next few days in case this makes a difference...

 

Thanks

Link excel with SoapUI 5.3.0

$
0
0

Dears,

 

i hope everyone will be fine,

 

I was thinking is there any way to link excel  with SoapUI?!

Am trying to automate handed of test cases inside the SoapUI so when ever i update excel and another test case increase in SoapUI.

 

Thanks,

Mariwan

Parameters in Multipart Form Data Request

$
0
0

I am creating a REST project that will be for a multipart form data request. I am trying to make it as simple as posible so that other testers on my team would not have to change too much. I was wondering if there is a way to parameterize the query parameters. I have two query parameters that I would like to do this with.

 

First, the file attachment. Is there a way after attaching the file to the request through the attachments tab to pass the file name to the query parameter? I know it is minor, I am just trying to avoid having to have others attach the file and then add the file name to the query parm. Ideally, I want to see something like value = file:${#AttachmentFileName} for a query parm.

 

Second, the payload. Similar question to above. I would want to pass values into the payload. I know that I can right click and get data from a previous test step, but there are a couple challenges with that. First, everytime you right click and get data, Ready API clears any existing data in the value. So, I would have to build the entire payload outside of Ready API and paste it back into the value of the query parm. Secondly, the value is one box and formats the payload in one long string, making it very hard to read. Is there a way that I could use the text box below the Media Type down box/ Post Query String check box and pass the contents of that back to query parm? 

 

I have attached screen shots of the areas that I am referring to in case it is not clear.

 

Thanks in advance for any help.

 

 


"OleObject" does not exist, TestComplete 12.2

$
0
0

So we recently moved from TestComplete version 9 to 12.2. We have a number of tests that read and write data from Excel spreadsheets. I started to have problems with the JScript we use to access the sheets.

 

This is the line of code that keeps erroring out:

 

var app = Sys.OleObject("Excel.Application");

 

And the error message I get is: 

 

You are trying to call the "OleObject" method or property of the "Sys" object that does not exist.

 
I'm rather confused because when I type into the editor, it keeps giving me the autocomplete option for an OleObject.
 
I am running with a Windows 7 Enterprise operating system (64-bit) and I have Excel 2016 . I've tried running TestComplete as admin to see if it would solve the issue, but no difference.
 
Do I need to try some different code?

JDBC request with date from another JDBC response and stored procedure

$
0
0

I have a JDBC response:

<Results><ResultSet fetchSize="0"><Row rowNumber="1"><PS_SUBSCRIBE_DATA_290.CHANGED_DATE>2017-02-01 12:13:51.378</PS_SUBSCRIBE_DATA_290.CHANGED_DATE></Row></ResultSet></Results>

I need to use this date in another JDBC request

But also ineed to use stored procedure because of the name of the table.

 

I have a SQL query for DBeaver client  and it works: 

select * from get_partition_name('ps_subscribe_history','2017-02-01 12:13:51'::timestamp without time zone)

 

But when i want to do the same sql query in JDBC request:

select * from get_partition_name('ps_subscribe_history', '${JDBC Request#ResponseAsXml#PS_SUBSCRIBE_DATA_290.CHANGED_DATE}')

This produces an error :

 

2017-02-01 18:46:34 - Error getting response; org.postgresql.util.PSQLException: ERROR: invalid input syntax for type timestamp: ""Position: 58

 

Could you help me to resolve this problem?

 

Maybe this  error is caused by an incorrect date format ?

2017-02-01 12:13:51.378

 

Can I deactivate SoapUI license of another user on same machine?

$
0
0

This has happened to me several times now... I've provisioned a VM for a contractor and added them as an admin user.  They install (amongst other things) SoapUI Pro.  Then they leave us without deactivating their (fixed) license.  I have full access to their machine (using my admin account), but I cannot deactivate the license because I can't log in as them.  I've tried copying their .soapui folder into my user folder, I've even tried the Java license manager, but still no joy.  There simply has to be a better way than to raise a support ticket each time this occurs?!

Clear custom properties when saving

$
0
0

So, the way I developed my test cases is to copy my data source row to my test cases "Custom Properties", then I run my test. My test runs and it may modify existing custom properties which is fine. So if I save my project, my testcase.xml file shows up as a difference, which is correct behavior but a nightmare for me working with GIT, as I don't really care that my custom properties change. Basically, what I am asking is there a way to clear custom properties when I save my entire project.

 

Get rid of Add......

$
0
0

TCAdd.PNG

How can I get rid of this add......? 

coming after 12.2 installed

My license is allocated to a pc that is no longer available - how can I deactivate

$
0
0

My license is allocated to a pc that is no longer available - how can I deactivate it when I can't access the computer.  I can see it in my.smartbear.

Disable automatic posting to log - default TC errors

$
0
0

I need to disable TestComplete errors logging or make it 'smarter'.

 

Case 1.

In some cases I need to perform different steps that depends on whether an object exists or not.

Let's say, the flow is:

1. Click button1

2. If button2.Exists:

        button2.click()

    else:
        pass

3. Click button3

 

I expect that for some users button2 should not exist. For some users it should. And that is fine. But I get an error to my log if the button does not exist.

 

Case 2.

WaitNNN methods did not work for me so I implemented a while loop that checks if a view is shown. 

wait_time = 2
 while Sys.Process("app").Find('AutomationId', '123', 100, True).Visible:
    if wait_time > 6:
      Log.Error('123 screen is displayed for too long')
      break
    else:
      wait(wait_time)
      wait_time += 2

On the final check, when my screen has gone, I get an error to the log that expected screen not found. But that is fine! I am waiting for the screen to go.

 

So the question is - is it possible to disable TestComplete posting errors the the log. They do not provide me with expected information, but make all my test results RED due to these intermediate 'errors' while the tests pass.

I want only my custom errors and messaged to get to the log.


How to make object paths variable dependent in Keyword testing?

$
0
0

Hi,

 

     I've attached a picture of a simple example of  a keywordtest where the same click action is repeated in two different instances of the same application. The only difference between the 2 actions is the process name Process("ABACUS", 1) and Process("ABACUS", 2). Is there a way to say to set a parameter to this keyword test and then pass in a value at run time to specify which instance of the application i want the action to be performed in? and in the keyword test itself have it look something like Process("ABACUS", index)  as the process name? I tried doing this by setting up a "index" parameter, but when i run the test it does not evaluate the index portion of the path. Any idea what would be the best of way tackling this?

 

Thanks.

Clear custom properties when saving

$
0
0

So, the way I developed my test cases is to copy my data source row to my test cases "Custom Properties", then I run my test. My test runs and it may modify existing custom properties which is fine. So if I save my project, my testcase.xml file shows up as a difference, which is correct behavior but a nightmare for me working with GIT, as I don't really care that my custom properties change. Basically, what I am asking is there a way to clear custom properties when I save my entire project.

 

Workaround to allow unsigned plugins in SoapUI 5.3.0

Find elements by Id or Name

$
0
0

Hi There,

 

I have tried using Object Identification attribute as Id and Name to record a test scenario. However, when I run the same Script, the Test Complete is unable to find Drop down field by Id or Name. As the focus is not readily available at this field, hence I tried to click on 'Payment Terms' (see the attached screenshot) to bring the focus which did not work. I am not sure if I am missing anything here. The application runs with ExtJS 6.0.2 Please give a solution here.

 

If at all possible, please do send a sample project demonstrating about the same scenario.

 

Thanks,

Suman

 

How to send french character in REST Service request body

$
0
0

I am using SOAP UI for REST Service testing. When I am sending a french string "1000 $ par jour à vie" under a string type parameter in request body, it is throwing error in model state validation. SOAP UI encodes "à" to  "�". I have tried setting charset under Content-Type in header, but it didn't help.

 

The same request body works fine when tested with POSTMAN. Please help.

Viewing all 21061 articles
Browse latest View live