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

delay in ReadyAPI License loading in 3.3.2

$
0
0

After updating the readyAPI to 3.3.2 and LicenseManager to 1.3.2. ReadyAPI tool is taking too long time to load the floating license(sometimes upto 5 mins) and load the project when executed in commandline/jenkins.

Any fix available for this?

Running ReadyAPI TestRunner for [Project 1]directory: C:\Program Files\SmartBear\ReadyAPI-3.3.2\bin
command: cmd.exe /C testrunner.bat -r -a -j -f${WORKSPACE} "-RJUnit-Style HTML Report" -FXML "-EDefault environment" C:\myname\Temp\gitHubProject\UIAutomation\Project-1-readyapi-project
Configuring log4j from [C:\Program Files\SmartBear\ReadyAPI-3.3.2\bin\soapui-log4j.xml]
17:59:37,733 INFO [license] ReadyAPI 3.3.2 (build 5862) started - System properties: {OS=Windows 10, User name=myUserName}
17:59:38,002 INFO [DefaultSoapUICore] SoapUI settings were initialized from [C:\Users\myUserName\soapui-settings.xml]
17:59:38,041 INFO [SoapUIExtensionClassLoader] "C:\Program Files\SmartBear\ReadyAPI-3.3.2\bin\ext\ojdbc8-19.7.0.0.jar" has been added to the classpath.

17:59:38,043 WARN [SoapUIExtensionClassLoader] The path to the custom library is not specified.
17:59:38,189 INFO [DefaultSoapUICore] 4 JDBC drivers have been registered from the directory bin/ext: [com.mysql.cj.jdbc.Driver, oracle.jdbc.OracleDriver, org.postgresql.Driver, com.microsoft.sqlserver.jdbc.SQLServerDriver].
17:59:38,396 WARN [SoapUIProGroovyScriptEngineFactory] Missing scripts folder [C:\Program Files\SmartBear\ReadyAPI-2.3.0\bin\scripts]
17:59:38,398 INFO [DefaultSoapUICore] Adding listeners from [C:\Program Files\SmartBear\ReadyAPI-3.3.2\bin\listeners\demo-listeners.xml]
17:59:38,418 WARN [SoapUIJasperReportManager] The report directory is not specified. The default report directory will be used.
17:59:41,863 WARN [SoapUIProGroovyScriptEngineFactory] Missing scripts folder [C:\Program Files\SmartBear\ReadyAPI-2.3.0\bin\scripts]
17:59:42,137 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for ReadyAPI Bundle
17:59:42,138 DEBUG [LicenseManagerServiceImpl] No license found for ReadyAPI Bundle
17:59:42,142 DEBUG [LicenseManagerServiceImpl] License host for ReadyAPI Bundle: myComuterName
17:59:42,150 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for SoapUI
17:59:42,151 DEBUG [LicenseManagerServiceImpl] No license found for SoapUI
17:59:42,152 DEBUG [LicenseManagerServiceImpl] License host for SoapUI: myComuterName
17:59:42,161 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for SoapUI
17:59:42,162 DEBUG [LicenseManagerServiceImpl] License host for SoapUI: myComuterName
17:59:43,585 INFO [PluginManager] 6 plugins loaded in 456 ms
17:59:43,585 INFO [DefaultSoapUICore] All plugins loaded
18:01:19,391DEBUG [LicenseManagerServiceImpl] Valid license file found: C:\Users\myUserName\.soapui\soapui.key, last modified: 2020-09-07T17:50:36.068+0530
18:01:19,414 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for LoadUI
18:01:19,414 DEBUG [LicenseManagerServiceImpl] No license found for LoadUI
18:01:19,420 DEBUG [LicenseManagerServiceImpl] License host for LoadUI: myComuterName
18:01:19,424 DEBUG [LicenseManagerServiceImpl] Trying to initialize license for ServiceV
18:01:19,424 DEBUG [LicenseManagerServiceImpl] No license found for ServiceV
18:01:19,428 DEBUG [LicenseManagerServiceImpl] License host for ServiceV: myComuterName
18:01:20,312 INFO [WsdlProject] Loaded project from [file:/C:/myname/Temp/gitHubProject/UIAutomation/Project-1-readyapi-project/]
18:01:20,395 WARN [SoapUIProGroovyScriptEngineFactory] Missing scripts folder [C:\Program Files\SmartBear\ReadyAPI-2.3.0\bin\scripts]
18:01:20,485 INFO [SoapUIProTestCaseRunner] Running tests in the project [Project 1]
18:01:20,792 INFO [SoapUIProTestCaseRunner] Running Project [Project 1], runType = SEQUENTIAL
18:01:20,825 INFO [SoapUIProTestCaseRunner] Running TestCase [TestCase 1]
18:01:20,858 INFO [SoapUIProTestCaseRunner] running step [step1]
18:01:21,634 INFO [log] starting step!!
18:01:21,688 INFO [SoapUIProTestCaseRunner] Finished running TestCase [TestCase 1], time taken: 770ms, status: PASS
18:01:21,794 INFO [SoapUIProTestCaseRunner] Running TestCase [TestCase 2]
18:01:21,794 INFO [SoapUIProTestCaseRunner] running step [step1]
18:01:21,826 INFO [log] starting step!!
18:01:21,829 INFO [SoapUIProTestCaseRunner] Finished running TestCase [TestCase 2], time taken: 31ms, status: PASS
18:01:21,833 INFO [SoapUIProTestCaseRunner] Running TestCase [TestCase 3]
18:01:21,834 INFO [SoapUIProTestCaseRunner] running step [step1]
18:01:21,862 INFO [log] starting step!!
18:01:21,865 INFO [SoapUIProTestCaseRunner] Finished running TestCase [TestCase 3], time taken: 28ms, status: PASS
18:01:21,872 INFO [SoapUIProTestCaseRunner] Project [Project 1] finished with status [PASS] in 1071ms

18:01:22,620 INFO [SoapUIProTestCaseRunner] Created report [JUnit-Style HTML Report] to path [file:/C:/myname/Temp/gitHubProject/UIAutomation/index.html]

ReadyAPI 3.3.2 TestCaseRunner Summary
-----------------------------
Time Taken: 2135ms
Total TestSuites: 1
Total TestCases: 3 (0 failed)
Total TestSteps: 3
Total Request Assertions: 0
Total Failed Assertions: 0
Total Exported Results: 3

18:01:22,689 INFO [SoapUIProTestCaseRunner] Created report at file:/C:/myname/Temp/gitHubProject/UIAutomation/index.html
18:01:22,692 INFO [license] ReadyAPI 3.3.2 shutting down


soapUI 5.6.0. java.lang.NoSuchMethodError with Java12

$
0
0

Hi,

 

sind last week we used soapUI 5.4. with Java8

Now we made a update to soapUI 5.6.0. After installation of Java12 AdoptOpenJdK soapUI writes an error:

 

[exec] SoapUI 5.6.0 TestCase Runner
    [exec] Configuring log4j from [/usr/gasx/R00/jenkins/dev-tools/soapui-5.6.0_20200715/bin/soapui-log4j.xml]
    [exec] 12:54:18,641 INFO  [SoapUI] Adding [/usr/gasx/R00/jenkins/dev-tools/soapui-5.6.0_20200715/bin/ext/mariadb-java-client-2.6.1.jar] to extensions classpath
    [exec] 12:54:18,642 INFO  [SoapUI] Adding [/usr/gasx/R00/jenkins/dev-tools/soapui-5.6.0_20200715/bin/ext/ojdbc6.jar] to extensions classpath
    [exec] Exception in thread "main" java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlOptionsBean.isLoadDTDGrammar()Z
    [exec]     at org.apache.xmlbeans.impl.common.SAXHelper.saxFactory(SAXHelper.java:70)
    [exec]     at org.apache.xmlbeans.impl.common.SAXHelper.newXMLReader(SAXHelper.java:46)
    [exec]     at org.apache.xmlbeans.impl.store.Locale.getSaxLoader(Locale.java:3073)
    [exec]     at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1272)
    [exec]     at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1259)
    [exec]     at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
    [exec]     at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:252)
    [exec]     at com.eviware.soapui.config.SoapuiSettingsDocumentConfig$Factory.parse(SoapuiSettingsDocumentConfig.java:59)
    [exec]     at com.eviware.soapui.DefaultSoapUICore.initSettings(DefaultSoapUICore.java:259)
    [exec]     at com.eviware.soapui.DefaultSoapUICore.init(DefaultSoapUICore.java:141)
    [exec]     at com.eviware.soapui.DefaultSoapUICore.<init>(DefaultSoapUICore.java:132)
    [exec]     at com.eviware.soapui.tools.AbstractSoapUIRunner.createSoapUICore(AbstractSoapUIRunner.java:216)
    [exec]     at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:192)
    [exec]     at com.eviware.soapui.tools.AbstractSoapUIRunner.run(AbstractSoapUIRunner.java:137)
    [exec]     at com.eviware.soapui.tools.AbstractSoapUIRunner.runFromCommandLine(AbstractSoapUIRunner.java:112)
    [exec]     at com.eviware.soapui.tools.SoapUITestCaseRunner.main(SoapUITestCaseRunner.java:122)

 

SoapUI runs on Redhat 7.8 and

 

openjdk version "12.0.2" 2019-07-16
OpenJDK Runtime Environment AdoptOpenJDK (build 12.0.2+10)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 12.0.2+10, mixed mode, sharing)

 

 

The Fix in https://community.smartbear.com/t5/SoapUI-Open-Source/Soap-UI-5-6-0-tgz-on-Linux-is-broken-FIX-INSIDE/m-p/204960#M30957 don't work - and I don't know why the normal release of soapUI has this bug.

 

Can you help me?

 

Best Regards from Germany, Michael

ReadyAPI takes 450 seconds to start under Applocker

$
0
0

Hi

 

My company has implemented AppLocker. This means no files can be executed from the user profile, ie. from %APPDATA%.

 

Event viewer: 

%OSDRIVE%\USERS\<user>\APPDATA\LOCAL\JXBROWSER\7.1\BROWSERCORE64.EXE was prevented from running.

 

Starting from ReadyAPI v3.2.0 it takes the program 450 seconds to start up, during which I can only see a white screen. Then another 450 seconds of freezing after start-up if I hit the "wrong" element, eg. if I click 'Endpoint Explorer'.

 

After start-up the dashboard reads: Browser component disabled.

The issue persists in the latest version 3.3.2.

 

I can live w/o the browser, but waiting 450 seconds every time I start ReadyAPI is not good.

 

Can the browsercore sub-process be noved or started from another location (eg. under program files)?

Or can the browser component be disabled alltogether?

 

System: Windows 10, 64 bit.

Install dir: C:\Program Files\SmartBear\ReadyAPI-3.3.2

 

Cheers

How do I get Testcomplete to generate an error log through Session Creator?

$
0
0

I have currently integrated TestComplete into the Gitlab CI/CD pipeline, and am using the Session Creator to run the tests. My tests are currently failing due to some errors, but I cannot view the error report because there is no configuration available for TestComplete to generate an error log. There are only options to generate export log and export summary according to the user guide, but these reports are not generated when the tests failed, presumably because the test had stopped on error. Does anyone know if there is a way for me to get the error report generated when a test fails through the Session Creator CLI?

distributed testing- trying to add host gives error invalid address

$
0
0

added network suite to project

provided details of virtual machine

domain, user name, password

from hosts tab i am trying to fill host from network automaticaly

[TechCorner Challenge #15] Fetch a value/data from a JSON response using a Groovy Script

$
0
0

Hello ReadyAPI Community!

 

We have another task for you to put your ReadyAPI knowledge to the test. Check out the participation rules and the TechCorner Leaderboard here.

 

In this task, we will have a scenario in which you need to iterate throughout a JSON response to find a specific item/value from it. You should stop once the value has been found.

 

Task: Find a specific value in a JSON response using a Groovy script

Difficulty: Star_Gold.pngStar_gray.pngStar_gray.png

 

Here is what your script should do:

1. Iterate through all the test steps in a test case that have JSON responses.

2. Compare the value given (VeryImportantString) with all the values in the JSON response.

3. Once the value is found, return it. If there is no such value in the response, return “The value wasn’t found“.

 

JSON response example:

 

{ "id": 1111, "name": "doggie", "photoUrls": [ "string" ], "tags": [ { "id": 99, "name": "string", "Additional info": [ { "ad1": "VeryImportantString", "ad2": "NoteVeryImportantString" } ] } ], "status": "available" }

 

Helpful Tips:


Iteration Sample Code:

 

def TesCaselist=context.testCase.testSuite.getTestCaseList() TesCaselist.each{ def steps=it.getTestStepList(); //'it' is used for referring to current item steps.each{ (CHECK SMTH)? <DO SMTH>:<DO SMTH ELSE> }

 

Good luck!

Add WSLD (HTTPS) - Unexpected end of file after null

Allure Report Genration using Allure Framework

$
0
0

Once we generate Allure report using ReadyAPI, how should we use Allure Framework to generate the actual report. Please let me know the steps involved with it.


Best Practices using ReadyAPI

$
0
0

Please share some of the best practices using ReadyAPI based on your experience with this tool. 

How are (path, query, ...) parameters actually bound?

$
0
0

If I define a certain parameter to act as a filter (e.g. among a group of users) how does the specification know that I actually want that parameter to perform that operation and not something else? As far as I've seen, there's no particular syntax that specifies a desired behavior.

 

Just to put this in context, suppose I have the following Swagger 2.0 definition

paths: /users/{id}: get: parameters: - in: path name: id # Note the name is the same as in the path required: true type: integer minimum: 1 description: The user ID. responses: 200: description: OK ... definitions: User: type: object properties: id: type: integer format: int64 minimum: 0 name: type: string required: - id - name

 

I have defined {id} to be a path parameter with the intention to perform a filter (against user ids) but how is the system actually capable of inferring that action, like when I generate a stub server?

[TechCorner Challenge #11] Converting UTC TimeDate in an Excel file

$
0
0

Hi everyone!

 

Up for a challenge? By completing the tasks, you can practice your skills of working with TestComplete features and also get into the TechCorner Leaderboard!

 

Today, we are going to work with UTC DateTime stored in an Excel file.

 

Task: Read the UTC DateTime in an Excel file (attached), convert the value for the PST (Pacific Standard Time) time zone and log each date in the following format: <month name> <day of month>, <full weekday name>. For example: September 8, Tuesday.

 

Difficulty:Star_Gold.pngStar_gray.pngStar_gray.png

 

Note: Find the Excel file attached.

 

Steps to do this:

1. Read the dates from the Excel file using one of the approaches described in Working with Microsoft Excel Files.

2. Convert the dates using the aqDateTime object methods.

3. Log the date using the aqConvert.DateTimeToFormatStr method.

 

Best of luck to all participants!

How to implement Swagger in Servlet project

$
0
0

I am new to this Swagger implementation I seen many examples for swagger implementation with Spring application. But i didn't seen even single example for Swagger implementation with Servlet application.

 

Kindly guide me to implement the swagger with servlet project or share any example program to refer.

Please help with importing WSDL and XSD's

$
0
0

Hi, I am a first time SoapUI user and could really use some help to get me started on the right path. My goal is to make a first connection to a Soap API so I can test if the credentials that I received, provide me with access to the API. The problem I'm running into: When I import the WSDL file, SoapUI doesn't seem to do anything with the XSD files. How do I include the XSD's in the testsuite?

 

Software: SoapUI Pro (ReadyAPI 3.3.2)

*The WSDL and XSD's are attached in this post, the service offers the choice to receive attachments with SwA or MTOM

SoapUI Pro Report

$
0
0

jasmeet13_0-1599594901760.png

 

Hello everyone,

Is there any way to add details in the Test Report of Soap UI report which are not available in the software's report

In the Overview section, the details would be like Date, Tester name, Test Case version.
I need other details to be shown in order to represent a high level view of the project.

 

Multiple when Then In Same Cucumber Scenario

$
0
0

Hello, 

 

I try write feature with cucumber to test order of chatbot conversation

 

First I write feature this way:

 

Feature: Try Cancel Given Correct CPF, Correct order number and diferent phone as the order
As a customer
I want cancel my order using chatbot

Scenario: Create Order In Maestro
Given order to create

Feature: Try Cancel Given Correct CPF, Correct order number and diferent phone as the order
As a customer
I want cancel my order using chatbot

Scenario: Create Order In Maestro
Given order to create
"""
"""
When create order in maestro
Then find this order in Maestro
Then get order information

Scenario: Customer give correct intent of cancelation in chatbot
Given chatbot jupiter has no open conversation context
And WhatsApp number is different from the order
And Customer write "Quero cancelar essa compra" in jupiter chatbot
When chatbot answer
Then chatbot receive message contains "Pra seguir com a sua solicitação de *cancelamento e reembolso*, vou precisar do seu *CPF*"

Scenario: Customer give correct cpf when chatbot ask
Given Customer write "23951670029" in jupiter chatbot
When chatbot answer
Then chatbot receive message contains "Certo! Olha o que eu vi 👀 sobre o seu último pedido:"

In the second and third scenario I need the order number that was created in scenario 1 but I no longer have this information because the context has been cleared

I need to know if write in this form (with multiple then when pairs in the same scenario) is correct and agrees with cucumber patterns:

Feature: Try Cancel Given Correct CPF, Correct order number and diferent phone as the order
As a customer
I want cancel my order using chatbot

Scenario: Create Order In Maestro
Given order to create
"""

"""
And chatbot jupiter has no open conversation context
And WhatsApp number is different from the order

When create order in maestro
Then find this order in Maestro
Then get order information

When Customer write "Quero cancelar essa compra" in jupiter chatbot
And chatbot answer
Then chatbot receive message contains "Pra seguir com a sua solicitação de *cancelamento e reembolso*, vou precisar do seu *CPF*"

When Customer write "23951670029" in jupiter chatbot
And chatbot answer
Then chatbot receive message contains "Certo! Olha o que eu vi 👀 sobre o seu último pedido:"

Thank you


Recording keyword test for the installation of an application

$
0
0

Hi,

 

I am trying to record a test whereby the keyword test will automate the installation of a software application.

However, what I am observing is that the recorded test does not recognise the dialog popups during the installation process, hence the recorded test isnt able to replay the recorded test.

I would have thought the popup dialogs will be treated just as any dialog which TestComplete should recognise.

 

Cheers

How to Update a SOAP MockService (XML) from a Groovy Script

$
0
0

HI teams, 

I am trying to implement data driven testing using Groovy. 

I have added an existing Mock Request as a step to the test suite and am updating this Test step using Groovy, by passing in values from a csv to this xml (code below):


def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def tc = "MockStep#Request"
def holder = groovyUtils.getXmlHolder( tc )
holder["//Variable_001"] = "13132132" // Change the value of the node
holder.updateProperty()


This works fine,

 

But I want to update the Mock response directly, and am unable to do this. This is the code I have tried

1. (this throws an error)


def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def tc = testRunner.testCase.testSuite.project.getInterfaceAt(0).getOperationAt(0).getRequestAt(5)
def holder = groovyUtils.getXmlHolder( tc )
holder["//Variable_001"] = "13132132" // Change the value of the node
holder.updateProperty()

 

2.(this doesnt throw an error but the mock response doesnt update)

 

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def tc = testRunner.testCase.testSuite.project.getInterfaceAt(0).getOperationAt(0).getRequestAt(5).getRequestContent()
def holder = groovyUtils.getXmlHolder( tc )
holder["//Variable_001"] = "13132132" // Change the value of the node
holder.updateProperty()

 

Can anyone please guide me as to how i can achieve this update of values being passed directly to teh Mock Request?

 

How to get the Cell Object which I Clicked using function ClickCell in grid view

$
0
0

I am facing an issue that I cannot access all rows in the Grid view because the row index property "WPFControlOrdinalNo" is returning random numbers if grid is having rows more than 5 rows with vertical scrollbar. 

I can click the cells of specified column through the built in function like this GridObject["ClickCell"](i,DataColRef);

i want to get the cell object i just clicked through function so that i can access the row through parent property and manipulate it as per my test.

 

Would be a great help if someone can assist me.

 

How to execute Cucumber test cases parallel

$
0
0

I have a requirement like below:

I have 10 Feature file created under a test suite and I wanted to execute all the test in one go. i.e all the test should be executed at the same time against the defined endpoint. i dont want to create the separate  runner class for each of the feature file...

and i want generate the runner class automatic by using maven plugin like 

temyers/cucumber-jvm-parallel-plugin

 

but in latest version of cucumber i cant able to do 

Can anyone tell me how to generate the runner class automatic in latest version of cucumber

 

Advance thanks.

Regards,
Ranjeet

Any way to wait for a page fully load the content?

$
0
0

Hi everyone,

 

I am using TestObj.WaitPage(URL, Timeout) to wait for a page and then do the rest on that page, but quite often it complaints the target object cannot be found on the page, but from the screenshot of the error I can see the page was loaded and I could see the target object is available on the page, so I was guessing maybe this WaitPage method just wait for the expected URL to be available and don't care whether the page content fully loaded or not. Is there anyway to wait for the page content fully loaded?

 

Thanks in advance

 

Viewing all 21061 articles
Browse latest View live