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

Property transfer from an html response

$
0
0

I have a test step of type http request and want now to extract from the resulting response
an html value.

Therefore I have created another test step of type "Property Transfer" which contains an XPATH query
that I have tested with another tool, so the XPath is ok.
Furthermore I have validated the html response which also seems to be valid xml (although the document starts with <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> which is an unclosed tag)

So, my question is: Is it possible to do a a property transfer from an html response using xpath?


Ready Api- Best way to create a composite project with multiple environment specific endpoints

$
0
0
I want to create a composite project and add to multiple environment specific endpoints and need to add them to the test steps that are located in different test cases.

Please explain to me the best way to do that. Actually, I just want steps in a comprehensive way. I am still new to this tool. Thanks

How to send an MTOM request by SOAP UI?

$
0
0

I have tried to send an MTOM request, and I followed some instructions.

So, I have set 'Enable MTOM' as true, which is descirbed at https://www.soapui.org/docs/soap-and-wsdl/attachments.html

But I have failed, and the HTTP headers are as follows:

Tue Jan 28 10:21:08 KST 2020: DEBUG: >> "Accept-Encoding: gzip,deflate[\r][\n]"
Tue Jan 28 10:21:08 KST 2020: DEBUG: >> "Content-Type: text/xml;charset=UTF-8[\r][\n]"
Tue Jan 28 10:21:08 KST 2020: DEBUG: >> "SOAPAction: ""[\r][\n]"
Tue Jan 28 10:21:08 KST 2020: DEBUG: >> "Content-Length: 1327[\r][\n]"

 

On another web-page, https://community.smartbear.com/t5/SoapUI-Open-Source/SOAPUI-response-with-attachment/td-p/186677 , the request header contains:

Content-Type: application/xop+xml; charset=UTF-8; type="text/xml"

 

Anyway, my goal is:

- I want to send a right MTOM request and get an MTOM response via SOAP UI.

- For the above, I want to set the http headers like this(The soap provider told us to set the Acceept):

Content-Type: multipart/related; type="application/xop+xml";
SOAPAction: ""
MIME-Version: 1.0
Accept: multipart/related; type="application/xop+xml"

 

What should I do?

SSH to Router Gateway using SOAP UI- groovy

$
0
0

After using SOAPUI to validate the response from my Router gateway, I need to SSH to my Router to check if value is set in my Router.

I am unable to find any groovy script that helps me do SSH/TELNET in SOAPUI to a router gateway (say IP: 192.168.1.x)

Is this possible in soapui.

ReadyAPI-SoapUI-Maven-Allure

$
0
0

At the moment, we have set up a system of autotests through the maven plugin, but it does not support an allure report.
It is not possible to rebuild the system to run tests through cmd (-RAllureReport).
Do you plan to add a parameter to enable the Allure-report in the maven plugin in the future?
Or can you advise other ways to solve the problem?


p.s.: we have a paid license readyAPI (soapUI)

Test Execute A fatal error occured while initializing the product

$
0
0

Hi ,

 

I am getting the below attached error when i try to launch TestExecute12.exe from explorer on my windows 10 machine.

 

Please help me in fixing this issue. Attached isthe screenshot of the error message.

 

Regards,

Arun K

How do i define a nested class json body in a swagger file version 3.0.1

$
0
0

Sample of a response body

Response body
{ "admn_user_id": 55, "admindetails": { "userdetail_id": 02, "firstname": "example1", "lastname": "example2", "contact_phone": "7777788888", "admn_partner_id": 12, "updated_on": "2020-01-20T10:54:51Z", "email_id": "abc@foo.com", "admn_user": 55, "region": 2, "region_name": "At02" }, "user_type": 2, "username": "sou1", "user_status": 3, "role_id": 2, "role_name": "ABC", "user_status_name": "Active" },

How do I design a swagger components/schema for the above response body for a post method.
Give me any link to understand the problem.
Can I pass a schema model inside another using $ref?

How to ignore nodes with It values when comparing two xmls with XMLUnit2

$
0
0

Comparing two xml files in soapui using groovy with XMLUnit2, Have some weird cases which are different in both files, but are acceptable. So have to ignore/skip those.

 

ResXML1:

<alpha:Errors><alpha:Error ShortText="SHiff" Type="11">Generic error occured.</alpha:Error><alpha:Error ShortText="SHiff" Type="12">Generic error occured.</alpha:Error></alpha:Errors><ShiftAttributes><ShiftAttribute ShiftAttributeCode="41"/><ShiftAttribute ShiftAttributeCode="17"/></ShiftAttributes><alpha:PriceInfo AgeQualifyingCode="10" Amount="19999.00" DiscountTypes="3" AMZAmount="225.00" NetAmount="19999.00" MCH="1" ValueAddAmount="150.00"/>


ResXML2:

<alpha:Warnings><alpha:Warning ShortText="SHiff" Type="11">Generic error occurred.</alpha:Warning></alpha:Warnings><ShiftAttributes><ShiftAttribute ShiftAttributeCode="17"/><ShiftAttribute ShiftAttributeCode="41"/></ShiftAttributes><alpha:PriceInfo AgeQualifyingCode="10" Amount="19999.0" DiscountTypes="3" AMZAmount="225.0" NetAmount="19999.0" MCH="1" ValueAddAmount="150.0"/>



If anyone have any idea, please help me in below conditions.

1) How to ignore child attribute order? tried different nodematchers(byXpath, byNameandText etc..), but no luck.<ShiftAttribute ShiftAttributeCode="41"/><ShiftAttribute ShiftAttributeCode="17"/>

2) How to ignore decimal value, 100.0 & 100.00. Tried to use BigDecimalElementDifferenceEvaluator, but cannot able to complete in soapui.

 


Problem exporting SoapUI reports using Groovy

$
0
0

xxx

 

 

// https://support.smartbear.com/readyapi/apidocs/pro/com/eviware/soapui/reporting/reports/testsuite/WsdlTestSuiteReport.html
def report = new WsdlTestSuiteReport(testSuite)

// https://support.smartbear.com/readyapi/apidocs/pro/com/eviware/soapui/reporting/ReportEngineRegistry.html
def availableReports = ReportEngineRegistry
.getAvailableReports(report) def reportSettings = report
.getModelItemReportParameters() // https://support.smartbear.com/readyapi/apidocs/soapui/com/eviware/soapui/model/TestPropertyHolder.html .getModelItem() // https://www.soapui.org/apidocs/com/eviware/soapui/model/ModelItem.html .getSettings() // https://www.soapui.org/apidocs/com/eviware/soapui/model/settings/Settings.html

// get list of all reports for test case
for (availableReport in availableReports) {
String reportName = availableReport.getName()

log.info("$reportName is available")

if (reportName == "JUnit-Style HTML Report") {
// https://support.smartbear.com/readyapi/apidocs/pro/com/eviware/soapui/reporting/engine/junit/GeneratableJUnitReport.html

def jrFormats = (String[])[ "HTML" ]

// https://support.smartbear.com/readyapi/apidocs/pro/com/eviware/soapui/reporting/GeneratableReport.html#generate-com.eviware.soapui.model.settings.Settings-java.lang.String:A-java.lang.String-
def results = availableReport.generate(
reportSettings,
jrFormats,
dataExportFolder)

availableReport.release()

String path = results[0]

log.info("JUnit created $path")

return path
} else if (availableReport.getName() == "Data Export") {
def jrFormats = (String[])[ "CSV" ]

// https://support.smartbear.com/readyapi/apidocs/pro/com/eviware/soapui/reporting/GeneratableReport.html#generate-com.eviware.soapui.model.settings.Settings-java.lang.String:A-java.lang.String-
def results = availableReport.generate(
reportSettings,
jrFormats,
dataExportFolder)

availableReport.release()

String metricsPath = results[0]

log.info("Data export report has been created at '$metricsPath'")

return metricsPath
}
}

 

In both JUnit and Data Export reprts multiple statistic fields containing wrong zero values.

 

Exporting reports using SOAPUI GUI works properly.

 

Whats wrong with it? Is it settings issue? How can I export SOAP UI report correctly using Groovy?

 

project explorer resizing automatically after clicking stop button

$
0
0

As a general rule I like having my TestComplete UI split between the Project Explorer frame and the Workspace frame. I like the project explorer frame to be about 1/4 of my desktop on the left side on the UI while the Workspace frame occupies the other 3/4. For some reason, upon clicking the stop button when i have completed a recording, the Project Explorer frame automatically expands to take over about 2/3 of my TC UI and I have to grab the frame divider handle and drag it back over to the 1/4 size. This is very annoying. i've searched TC help but can't find anything about how i might stop this from happening.  Anybody else have this issue?

SOAPUI 5.5(MAC) Fails for EWS -- 401 Unauthorized

$
0
0

Hello Folks,

 

I am have a weird issue setting up SOAPUI connectivity to EWS. I have tried in past setting up the initial project with the provided WSDL and dont recall any issue however, I am trying to replicate that recently for the same webservices account and am getting "Receiving response: HTTP/1.1 401 Unauthorized"

 

Note: The only difference is earlier i tested when I was on windows desktop and now its a Mac.

Also note the previous imported projected from windows works fine on MAC including all its methods.

 

This is real bottleneck for me and is holding up my entire work backlog. Any assistance is greatly appreciated.

 

Thanks you

Raj

 

The WSDL used is internal like https://<servername>/Services.wsdl

 

Note: The URL requires authentication and works fine when accessesd via a Browser.

 

Things I have tried:

When I ADD WSDL to the project it runs logs like below and then Prompt for NT authenticationbut with No success. On that NT authentication pop up I have tried:

  • Provide domain\username, with its passowrd, and domain empty
  • Provide usermame , password and domain in their respective places

Change Preferences to use 1.0 for HTTP

Add credentials under "Outgoing WS-Seurity Configurations:

 

The failure mesage on UI :

Error loading [https://<servername>/ews/Services.wsdl]: org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error: Unexpected end of file after null

 

SOAUI log:

  • Tue Jan 28 15:10:27 EST 2020Smiley Very HappyEBUG:Found credentials
  • Tue Jan 28 15:10:27 EST 2020Smiley Very HappyEBUG:Attempt 2 to execute request
  • Tue Jan 28 15:10:27 EST 2020Smiley Very HappyEBUGSmiley Frustratedending request: GET /ews/Services.wsdl HTTP/1.1
  • Tue Jan 28 15:10:28 EST 2020Smiley Very HappyEBUG:Receiving response: HTTP/1.1 401 Unauthorized
  • Tue Jan 28 15:10:28 EST 2020Smiley Very HappyEBUG:Connection can be kept alive indefinitely
  • Tue Jan 28 15:10:28 EST 2020Smiley Very HappyEBUG:Target requested authentication
  • Tue Jan 28 15:10:28 EST 2020Smiley Very HappyEBUG:Authorization challenge processed
  • Tue Jan 28 15:10:28 EST 2020Smiley Very HappyEBUG:Authentication scope: NEGOTIATE @<servername>:443
  • Tue Jan 28 15:10:28 EST 2020Smiley Very HappyEBUG:Authentication failed
  • Tue Jan 28 15:10:28 EST 2020:ERROR:Failed to load url [https://<servername>/ews/Services.wsdl]
  • Tue Jan 28 15:10:28 EST 2020:ERROR:An error occurred [com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException], see error log for details
  • Tue Jan 28 15:11:01 EST 2020Smiley Very HappyEBUG:Connection closed

The HTTP log is as below:

  • Tue Jan 28 15:10:01 EST 2020Smiley Very HappyEBUGSmiley Embarassed> "GET /ews/Services.wsdl HTTP/1.1[\r][\n]"
  • Tue Jan 28 15:10:01 EST 2020Smiley Very HappyEBUGSmiley Embarassed> "Host: <servername>[\r][\n]"
  • Tue Jan 28 15:10:01 EST 2020Smiley Very HappyEBUGSmiley Embarassed> "Connection: Keep-Alive[\r][\n]"
  • Tue Jan 28 15:10:01 EST 2020Smiley Very HappyEBUGSmiley Embarassed> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"
  • Tue Jan 28 15:10:01 EST 2020Smiley Very HappyEBUGSmiley Embarassed> "Cookie: BIGipServerp_exchange2010es_dc2_vip1_443=136776203.47873.0000[\r][\n]"
  • Tue Jan 28 15:10:01 EST 2020Smiley Very HappyEBUGSmiley Embarassed> "Cookie2: $Version=1[\r][\n]"
  • Tue Jan 28 15:10:01 EST 2020Smiley Very HappyEBUGSmiley Embarassed> "[\r][\n]"
  • Tue Jan 28 15:10:01 EST 2020Smiley Very HappyEBUG:<< "HTTP/1.1 401 Unauthorized[\r][\n]"
  • Tue Jan 28 15:10:01 EST 2020Smiley Very HappyEBUG:<< "Server: Microsoft-IIS/7.5[\r][\n]"
  • Tue Jan 28 15:10:01 EST 2020Smiley Very HappyEBUG:<< "WWW-Authenticate: Negotiate[\r][\n]"
  • Tue Jan 28 15:10:01 EST 2020Smiley Very HappyEBUG:<< "WWW-Authenticate: NTLM[\r][\n]"
  • Tue Jan 28 15:10:01 EST 2020Smiley Very HappyEBUG:<< "X-Powered-By: ASP.NET[\r][\n]"
  • Tue Jan 28 15:10:01 EST 2020Smiley Very HappyEBUG:<< "Date: Tue, 28 Jan 2020 20:10:00 GMT[\r][\n]"
  • Tue Jan 28 15:10:01 EST 2020Smiley Very HappyEBUG:<< "Connection: keep-alive[\r][\n]"
  • Tue Jan 28 15:10:01 EST 2020Smiley Very HappyEBUG:<< "Content-Length: 0[\r][\n]"
  • Tue Jan 28 15:10:01 EST 2020Smiley Very HappyEBUG:<< "[\r][\n]"
  • Tue Jan 28 15:10:27 EST 2020Smiley Very HappyEBUGSmiley Embarassed> "GET /ews/Services.wsdl HTTP/1.1[\r][\n]"
  • Tue Jan 28 15:10:27 EST 2020Smiley Very HappyEBUGSmiley Embarassed> "Host: <servername>[\r][\n]"
  • Tue Jan 28 15:10:27 EST 2020Smiley Very HappyEBUGSmiley Embarassed> "Connection: Keep-Alive[\r][\n]"
  • Tue Jan 28 15:10:27 EST 2020Smiley Very HappyEBUGSmiley Embarassed> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]"
  • Tue Jan 28 15:10:27 EST 2020Smiley Very HappyEBUGSmiley Embarassed> "Cookie: BIGipServerp_exchange2010es_dc2_vip1_443=136776203.47873.0000[\r][\n]"
  • Tue Jan 28 15:10:27 EST 2020Smiley Very HappyEBUGSmiley Embarassed> "Cookie2: $Version=1[\r][\n]"
  • Tue Jan 28 15:10:27 EST 2020Smiley Very HappyEBUGSmiley Embarassed> "[\r][\n]"
  • Tue Jan 28 15:10:28 EST 2020Smiley Very HappyEBUG:<< "HTTP/1.1 401 Unauthorized[\r][\n]"
  • Tue Jan 28 15:10:28 EST 2020Smiley Very HappyEBUG:<< "Server: Microsoft-IIS/7.5[\r][\n]"
  • Tue Jan 28 15:10:28 EST 2020Smiley Very HappyEBUG:<< "WWW-Authenticate: Negotiate[\r][\n]"
  • Tue Jan 28 15:10:28 EST 2020Smiley Very HappyEBUG:<< "WWW-Authenticate: NTLM[\r][\n]"
  • Tue Jan 28 15:10:28 EST 2020Smiley Very HappyEBUG:<< "X-Powered-By: ASP.NET[\r][\n]"
  • Tue Jan 28 15:10:28 EST 2020Smiley Very HappyEBUG:<< "Date: Tue, 28 Jan 2020 20:10:27 GMT[\r][\n]"
  • Tue Jan 28 15:10:28 EST 2020Smiley Very HappyEBUG:<< "Connection: keep-alive[\r][\n]"
  • Tue Jan 28 15:10:28 EST 2020Smiley Very HappyEBUG:<< "Content-Length: 0[\r][\n]"
  • Tue Jan 28 15:10:28 EST 2020Smiley Very HappyEBUG:<< "[\r][\n]"

Error Logs:

  • Tue Jan 28 15:10:28 EST 2020:ERROR:com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException
  • com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException
  • at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.makeInvalidDefinitionException(WsdlLoader.java:127)
  • at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.loadXmlObject(WsdlLoader.java:117)
  • at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:486)
  • at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:475)
  • at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionCache.update(AbstractDefinitionCache.java:92)
  • at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext$Loader.construct(AbstractDefinitionContext.java:208)
  • at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:46)
  • at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:131)
  • at java.lang.Thread.run(Thread.java:748)

Application RunAs issue after upgrading from TestComplete 12 to 14

$
0
0

Hi,

 

I recently upgraded from TestComplete 12 to 14 and I've encountered an issue when using the RunAs method when trying to run an application under a different user account - "Unable to run [application] under [account name] account"

 

I've checked the TC 14 exe to ensure it is run as administrator (which it is). I've also reverted back to TC 12 on the backed up copy of the project and it worked without error, so the project is unique to TC 14

 

Does anyone have an idea what may have changed in TC 14 that could cause this to no longer work?

 

Thanks


Adam

SOAPUI 5.5(MAC) Fails for EWS -- 401 Unauthorized

$
0
0

Hello Folks,

 

I am have a weird issue setting up SOAPUI connectivity to EWS. I have tried in past setting up the initial project with the provided WSDL and dont recall any issue however, I am trying to replicate that recently for the same webservices account and am getting "Receiving response: HTTP/1.1 401 Unauthorized"

 

Note: The only difference is earlier i tested when I was on windows desktop and now its a Mac.

Also note the previous imported projected from windows works fine on MAC including all its methods.

 

This is real bottleneck for me and is holding up my entire work backlog. Any assistance is greatly appreciated.

 

Thanks you

Raj

 

 

The WSDL used is internal like https://<servername>/Services.wsdl

 

Note: The URL requires authentication and works fine when accessesd via a Browser.

 

Things I have tried:

When I ADD WSDL to the project it runs logs like below and then Prompt for NT authenticationbut with No success. On that NT authentication pop up I have tried:

  • Provide domain\username, with its passowrd, and domain empty
  • Provide usermame , password and domain in their respective places

Change Preferences to use 1.0 for HTTP

Add credentials under "Outgoing WS-Seurity Configurations:

 

The failure mesage on UI :

Error loading [https://<servername>/ews/Services.wsdl]: org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error: Unexpected end of file after null

 

Logs are attached

[ERROR] Unable to find the specified TestComplete/TestExecute installation

$
0
0

I am getting the following error when trying to runn testcomplete keyword tests over the jenkins integration.

 

Error is attached.

 

Regards,

Arun K

Assert incoming csv file against outcoming multiple jsons

$
0
0

Situation:

Customer uploads a csv file with multiple rows (REST API).

Rows are imported into a database, and converted to multiple json messages, which are send to an event grid (that has to be a mock service for now).

I can't think of a way how to create tests for this. How to check f.e. that there are as many json messages arrived in the message broker as there were rows in the csv-file/database? And how to check if the content of the json messages matches with content of the ccs file/database?

Any help appreciated, I'm not an experienced user.


recorded script unable to find the object "GroupButtons"

$
0
0

Hello, 

I'm using Testcomplete 14.30.3743.7 version (License: Perpetual (Desktop))

We have desktop app, that I'm testing it with Testcomplete. There were everything OK in Testcomplete 12.60.5545.7 version. But now, when I upgrade my testcomplete version, there are some bugs. 

 

There is part of my code:

function test() {

...

Aliases.B6.DialogOneTimeFeeTypes.rgAppCard.TGroupButton.ClickButton();

...

}

There is a problem with GroupButton-s. Recorded scripts couldn't run , because program doesn't recognize GroupButtons. Problem appeared in  14.30.3743.7 version. When I record new script, there are no changes in it, everything is the same, but new script runs and works correctly, before next GroupButton.

We use "Record script" in javascript, not Keyword Test.

screen.PNG

Failed to start ReadyAPI error on launch

$
0
0

Hi!

I cannot launch ReadyAPI on one of my PCs. It crash when I click the icon in Start menu, the interface doesn't appear at all, just launch startup window.

OS: Windows 10 Enterprise ver. 1909

 

Works fine on Windows Server 2016

 

Log file attached.

 

Tried to find something here but there is nothing for Windows 10 and all post are a bit outdated so I decided to start a new post instead.

SoapUI 5.5.0 freezes on startup Windows 10

$
0
0

Hi

 

I cannot open SoapUI at all on my PC. When I click the icon, the loading window appears and nothing else happens. 

The same happens for 64 and 32 version.

My OS is Windows 10 Enterprise 1909. 

 

ANyone with the same problem? Do you have some solution?

 

Swagger to generate docs from Java API code

$
0
0

I need to automatically generate documentation from Java API code written by someone else using the Jersey framework. The project is built using Gradle. I'm trying to figure out how to use Swagger for this purpose but can't. I found a page (https://www.tutorialspoint.com/spring_boot/spring_boot_enabling_swagger2.htm) where it says I need to add some lines to the build.gradle file but I don't know where and also the page is for the Spring API.


How can I use Swagger here?

WSDLException (at /html): faultCode=INVALID_WSDL: Expected element '{http://schemas.xmlsoap.org/wsdl

Viewing all 26529 articles
Browse latest View live