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

Swagger auto convert date time in UTC

$
0
0

Hello,

 

I've got a problem using Swagger for my API.

In a in-parameter (of a GET method), I've got a datetime that people can give to the API, for example '2019-03-22T23:00:00Z'.


But when I look at what swagger API receive in the parameter, I've got '2019-03-23 01:00:00'.
It look like swagger want to convert it in UTC datetime, but what I want it's just to keep the same datetime value, without using the time zone.

 

The date have one day difference and that's very annoying for me...

 

How can I do ?
Thanks !

Audric


Screen Resolution

$
0
0

Hi,

 

we're not getting this fixed. We are using TestExecute on a RemoteDesktopSession. If we have closed the session with the batch from the documentation and a test is running on the session, the test is stopped because the screen resolution is too small (600x720 or less) and some objects are outside the visible area.

 

We changed the registry for the values DefaultSettings.XResolution and DefaultSettings.YResolution did not work. Did you know any resolution?

 

regards

Kai

 

 

PATCH operation not working through Swagger UI

$
0
0

When I perform a PATCH operation through Swagger UI it gives the following error in the UI(with CORS enabled):

TypeError: Failed to fetch

Following is the curl command : 

curl -X PATCH "http://##HOSTNAME##:##PORT##/metamodel/v1/services/DUMMY/D_Dummy_1/approve?version=1" -H "accept: application/json" -H "workspace_id: ##INFODOM##" -H "x-tenant-id: dmt" -H "user: hs" -H "locale: en_US"

 

The logs show only the header parameter names, their corressponding values are not being received. Also the content-type recieved is :

Content-Type: text/plain (which should ideally be 'application/json')

 

The same operation works through Postman or even when the CURL command is executed. Also, other operations such as GET, POST are working fine through Swagger UI.

Bug in SWA (Soap with attachment) with Content-Id header

$
0
0

Hi,

 

I found bug in SWA support in SOAP UI. When sending multipart mime request, attachment Content-Id header should contain also name of attachment from WSDL e.g. Content-ID: <content=sample.txt> instead of Content-ID: <sample.txt>.

 

Workaround is to set ContentID column to value content=sample.txt like in screenshot:

image.png

Suddenly stop getting Responce RAW for POST call in Ready API.

$
0
0

I run my tests and assertion was working and few days ago i stop getting RAW responce or any other. It happening only for some of my REST POST calls, not for all of them. It isn't workign only for one test suite. My calls are comming through and I don't have any problems with REST GET at all.

I've checked all the recommendations and documentation. All check boxes are checked and it still not working. I run out of ideas, it is new app for me and i need collective help, please. 

TestExecute do not recognize the Firefox version 66.0.1

$
0
0

VM Machine:  Windows Server 2012 R@ 

TestExecute version 14.0.317 

Firefox version is 66.0.1

 

I am trying to run the Testcomplete tests on the above VM machine through jenkins and after looking at the logs in jenkins  and display the message that this firefox version is not supported .- attached below.

I have already checked for Check for updates unbder TestExecute and it is the latest version .

 

Not sure why ? Please update 

Thanks

Nishchal

 

Started by user Nishchal Gupta
[EnvInject] - Loading node environment variables.
Building remotely on slave_plaza in workspace C:\Users\nisgupta\Documents\TestComplete\workspace\TC_UDEV_Budget-002NBALaborJobsDistribution

[TestComplete] The test execution started (HSC Budget NBAJOBS/Budget-002 HSC Budget-NBAJOBS).
[TestComplete] Found TestComplete/TestExecute installations:
	Type: TE, Version: 12.60.5545.11, Path: "C:\Program Files (x86)\SmartBear\TestExecute 12\x64\bin\TestExecute.exe"
	Type: TE, Version: 14.0.317.11, Path: "C:\Program Files (x86)\SmartBear\TestExecute 14\x64\bin\TestExecute.exe"
[TestComplete] Selected TestComplete/TestExecute installation:
	Type: TE, Version: 14.0.317.11, Path: "C:\Program Files (x86)\SmartBear\TestExecute 14\x64\bin\TestExecute.exe"
[TestComplete] [WARNING] The node is connected via Java Web Start (JNLP). In this mode, the "Run interactive user session" property of the TestComplete Test step is ignored. TestComplete (or TestExecute) will work in the current user session.
[TestComplete] Launching the test runner.
$ "C:\Program Files (x86)\SmartBear\TestExecute 14\x64\bin\TestExecute.exe" "C:\Users\nisgupta\Documents\TestComplete\workspace\TC_UDEV_Budget-002NBALaborJobsDistribution\HSC Budget NBAJOBS\HSC Budget NBAJOBS.pjs" /run /SilentMode /ForceConversion /ns /exit /ExportLog:C:\Users\nisgupta\Documents\TestComplete\workspace\TC_UDEV_Budget-002NBALaborJobsDistribution\1553285583211.tclogx /ExportLog:C:\Users\nisgupta\Documents\TestComplete\workspace\TC_UDEV_Budget-002NBALaborJobsDistribution\1553285583211.htmlx /ErrorLog:C:\Users\nisgupta\Documents\TestComplete\workspace\TC_UDEV_Budget-002NBALaborJobsDistribution\1553285583211.txt /ExportLog:C:\Users\nisgupta\Documents\TestComplete\workspace\TC_UDEV_Budget-002NBALaborJobsDistribution\1553285583211.mht "/project:Budget-002 HSC Budget-NBAJOBS" /DoNotShowLog /JenkinsTCPluginVersion:2.1
[TestComplete] Test runner exit code: 3.
[TestComplete] [WARNING] Error: This Firefox Version Is Not Supported.
[TestComplete] [WARNING] Errors occurred during the test execution.
[TestComplete] Marking the build as UNSTABLE.
[TestComplete] The test execution finished (HSC Budget NBAJOBS/Budget-002 HSC Budget-NBAJOBS).
Build step 'TestComplete Test' changed build result to UNSTABLE
[confluence] Uploading attachments to Confluence page: https://confluence.texastech.edu/display/TES/BUDGET-002+Test+Results
[confluence] Evaluating fileset pattern: HSC Budget NBAJOBS/Budget-002 HSC Budget-NBAJOBS/Log/Result/Budget-002 HSC Budget-NBAJOBS Labor Distribution Test Results.mht
[confluence] No files matched the pattern 'HSC Budget NBAJOBS/Budget-002 HSC Budget-NBAJOBS/Log/Result/Budget-002 HSC Budget-NBAJOBS Labor Distribution Test Results.mht'.
[confluence] ‘HSC Budget NBAJOBS/Budget-002 HSC Budget-NBAJOBS/Log/Result/Budget-002 HSC Budget-NBAJOBS Labor Distribution Test Results.mht’ doesn’t match anything: ‘HSC Budget NBAJOBS’ exists but not ‘HSC Budget NBAJOBS/Budget-002 HSC Budget-NBAJOBS/Log/Result/Budget-002 HSC Budget-NBAJOBS Labor Distribution Test Results.mht’
[confluence] Uploading 0 file(s) to Confluence...
[confluence] Done
Started calculate disk usage of build
Finished Calculation of disk usage of build in 0 seconds
Started calculate disk usage of workspace
Finished Calculation of disk usage of workspace in 0 seconds
Finished: UNSTABLE

 

 

 

//general366.rssing.com/chan-11564893/article15707-live.html

$
0
0

I am using ready API 2.5.0 (SOAP UI Pro) and testing one of the soap request. Every time when I am executing test <personal_client> tag is added automatically in raw request and my test is failing. I need to remove this tag from RAW XML again and again in order to work my test. Any suggestion?

 

Thanks.

How can I get a dropdown selection for parameter of string type?

$
0
0

Hi all,

 

I have a script function that takes in parameters and I want to create a Test Item with that function where I can select from a dropdown to pass in the parameter. 

How would I go about doing that?

 

I have attached screenshots of what I'm trying to do.

----

Problems with how I'm trying to do it if I just create Variables for each possible value to pass in:

1. too many variables if there are a lot of possible values.

2. the same variables are reusable for each parameter which is not what i want, I want to limit it where each parameter can only have x amount of choice.

3. if I add more Test Item, those variables are also available for those Test Items which is not what I want.

 

---

I'd appreciate any suggestions, guidance or a different way of approaching it.

 

Thanks.


How to download Ready API 1.5.0

$
0
0

can you please help me in downloading the Ready API 1.5.0

 

 

Importing testsuites into another project in soapUI

$
0
0

How do i share 2 testsuites (where one testsuite is dependepent on the other) to another user (User2)?

 

My Configuration:

Project1

   TestSuite1

       TestCase1
       TestCase2

   TestSuite2

       TestCaseA calls TestCase1

       TestCaseB

       TestCaseA calls TestCase1

Steps done by User1(exporting user):

1) Export TestSute1
2) Export TestSuite2
Steps done by User2 (importing user):

1) Import TestSuite1

2) Import TestSuite2

Results and issue:

1) TestSuite1 is successfully imported

2) TestSuite2 is not successfully imported as the dependent testscases (TestCaseA and TestCaseB) are broken.

Error during importing mention "Missing Test Case".

Thanks and Cheers.

 

Is context property shared a cross test cases ?

$
0
0

I am creating "context.variableName = new foo()" for every test case in EVENTS under testrunner.beforerun

 

Here are the steps for every test case:

1. Create a context variable in beforerun

2. Test Steps (access the context variable in the test steps)

3. kill context variable in afterrun

 

I have 5 test cases in a test suite, so when I execute from Test suite level in parallel. Every time one or the other test case fail because it could not find context variable. 

 

My guess:

Context variable are shared across the test cases, as I am killing the context variable afterrun its creating problem.

 

What I need to Understand:

Is context property shared a cross test cases ?

 

 

How to add Authorization Header to a Rest Request in Java

$
0
0

Hi,

 

I am trying to upgrade swagger-ui from 2.0 to 3.21.0.

In 2.0 I used to get the user name along with base url by making the change in index.html.After that setting the user in header of each request.

The same thing I would like to do in Swagger-ui 3.21.0.

Can Some one please help in this?

Expected:1.how to edit index.html code to get the one more input from GUI.

                2.After getting the input how to set value in header.

How to download Ready API 1.5.0

$
0
0

can you please help me in downloading the Ready API 1.5.0

 

 

Day 1 - API Testing vs. UI Testing

$
0
0

Hello API Community,

 

I’m happy to welcome you to our API Testing vs. UI Testing competition. We aren’t going to fight. We are going to identify what it is like - “Doing API Testing”.

Each day, we will publish a new topic to discuss. Leave your comments in topics - you and your API Team will be rewarded.

 

Today, let’s introduce ourselves to the Community! Post a high-level description of the project you are working on.

 

Leave your comments here.

 

API Testing Score

Track the current score and daily conversations on this page:

https://community.smartbear.com/t5/custom/page/page-id/API-Testing-vs-UI-Testing

 

Bonus Tasks

Accomplish any of the bonus tasks to earn more points:

  1. +2 points - Invite your colleague to the competition.

Mention a nickname of this person by using @ in the competition’s daily topics. You can invite as many people as you wish. NOTE: A person you invite should be a new Community member registered after the event start.

 

  1. +2 points – Make a post on social media about your participation in the competition.

Your post should contain: , the #APIvsUITesting hashtag and the link to your comment in the Community.

Simple tweet: API Testing vs UI testing! Which one is more important? Join me in the Community to talk about this: https://bit.ly/2HEZ5U4 #APIvsUITesting

 

Event Rules

  1. Leave your comments on a conversation of the day. 1 comment = 1 point to the team score.
  2. The competition will be held on March 25-29.
  3. Join the competition any day and participate in any daily conversations.
  4. Feel free to leave comments for any teams.
  5. Rewards! A team with the biggest score will win. Active participants from each team will be rewarded.

 

Let's start!

Day 1 - API Testing vs. UI Testing

$
0
0

Hello TestComplete Community,

 

I’m happy to welcome you to our API Testing vs. UI Testing competition. We aren’t going to fight. We are going to identify what it is like - “Doing UI Testing”.

Each day, we will publish a new topic to discuss. Leave your comments in topics - you and your UI Team will be rewarded.

 

Today, let’s introduce ourselves to the Community! Post a high-level description of the project you are working on.

 

Leave your comments here.

 

UI Testing Score

Track the current score and daily conversations on this page:

https://community.smartbear.com/t5/custom/page/page-id/API-Testing-vs-UI-Testing

 

Bonus Tasks

Accomplish any of the bonus tasks to earn more points:

  1. +2 points - Invite your colleague to the competition.

Mention a nickname of this person by using @ in the competition’s daily topics. You can invite as many people as you wish. NOTE: A person you invite should be a new Community member registered after the event start.

 

  1. +2 points – Make a post on social media about your participation in the competition.

Your post should contain: @SmartBear, the #APIvsUITesting hashtag and the link to your comment in the Community.

Simple tweet: API Testing vs UI testing! Which one is more important? Join me in the @SmartBear Community to talk about this: https://bit.ly/2HEZ5U4 #APIvsUITesting

 

Event Rules

  1. Leave your comments on a conversation of the day. 1 comment = 1 point to the team score.
  2. The competition will be held on March 25-29.
  3. Join the competition any day and participate in any daily conversations.
  4. Feel free to leave comments for any teams.
  5. Rewards! A team with the biggest score will win. Active participants from each team will be rewarded.

 

Let's start!


Error Code creating JUnit Report

$
0
0

I wanna create a JUnit Test report with Apache Ant (I use the free version of Soap UI). The problem I have is when I enter the command in the cmd I get following error: 

 

[exec] SoapUI 5.5.0 TestCase Runner
[exec] usage: testrunner [options] <soapui-project-file>
[exec] -A Turns on exporting of all results using folders instead of
[exec] long filenames
[exec] -a Turns on exporting of all results
[exec] -c <arg> Sets the testcase
[exec] -D <arg> Sets system property with name=value
[exec] -d <arg> Sets the domain
[exec] -e <arg> Sets the endpoint
[exec] -f <arg> Sets the output folder to export results to
[exec] -G <arg> Sets global property with name=value
[exec] -H <arg> Adds a custom HTTP Header to all outgoing requests
[exec] (name=value), can be specified multiple times
[exec] -h <arg> Sets the host
[exec] -I Do not stop if error occurs, ignore them
[exec] -i Enables Swing UI for scripts
[exec] -J Sets the output to include JUnit XML reports adding test
[exec] properties to the report
[exec] -j Sets the output to include JUnit XML reports
[exec] -M Creates a Test Run Log Report in XML format
[exec] -m Sets the maximum number of TestStep errors to save for each
[exec] testcase
[exec] -P <arg> Sets or overrides project property with name=value
[exec] -p <arg> Sets the password
[exec] -r Prints a small summary report
[exec] -S Saves the project after running the tests
[exec] -s <arg> Sets the testsuite
[exec] -t <arg> Sets the soapui-settings.xml file to use
[exec] -u <arg> Sets the username
[exec] -v <arg> Sets password for soapui-settings.xml file
[exec] -w <arg> Sets the WSS password type, either 'Text' or 'Digest'
[exec] -x <arg> Sets project password for decryption if project is encrypted
[exec] Missing SoapUI project file..
[exec] Result: -1

 

I tried to do file in the orderer where the reporst should be created but still get the same error.

Does anyone know how to fix that?

 

Best regards,

Jan

ApiClient ApiException Configuration namespaces do not match to packageName option

$
0
0

Dears

 

I'm trying to generate csharp client form petstore json OpenAPI with packageName parameter specified

However the problem is that not all generated files has packageName value from config.

Files

 

ApiClient.cs
ApiException.cs
Configuration.cs

 

are generated with default IO.Swagger.Client namespace. This is not correct I suppose

and Api\*.cs and Model\*.cs source code files are generated with custom namespace (This is correct)

 

I use curl command like below to generate client source code (it has to be executed using bash)

 

curl -H "Content-type: application/json" -X POST -d '{"options": {"packageName": "pet_store"},"swaggerUrl": "http://petstore.swagger.io/v2/swagger.json"}' https://generator.swagger.io/api/gen/clients/csharp-dotnet2

Then I download archive using url from output (https://generator.swagger.io/api/gen/download/bf95a63d-5be5-4f46-89fc-720ab2a692f7)

 

The problem is that ApiClient.cs ApiException.cs and Configuration.cs files are generated with default IO.Swagger.Client namespace however I expect that namespace value have to be set to pet_store according to parameterization.

 

I replace namespace manually in the generated files however it would be nice to have namespace generated as it was parameterized.

When offline swagger-codegen is used with config file it generates namepace in the same way

java -jar modules/swagger-codegen-cli/target/swagger-codegen-cli.jar generate -i https://petstore.swagger.io/v2/swagger.json -l csharp-dotnet2 -o D:\temp\cw -c D:\temp\cw\config.json

config.json:

{ "packageName" : "petT_store" } 

 

Is there any other option to set namespace for all generated files?

 

 

paste json payload

$
0
0

Hi all,

I've created the API path and request body. Then I need to create the payload.

I'm trying to create a repeatable number of steps to create the documented API. e.g. I use XMPSpy, create my payload, import the json into my API. It asks if I want to import as YAML. I say yes. The errors I get imply that I still need to do a lot of manual work after that to create individual schemas. Is this correct or am I misunderstanding?

Upgrading to OpenAPI 3.0 - Compatibility issues

$
0
0

Hi,

 

We are thinking to update our swagger specification from 2.0 to OpenAPI 3.0. Given that it is an existing API, would like to know if the Swagger spec update can be done in phased manner i.e. updating the swagger spec at server side first and give little window for consumers/customers to update the swagger specification at their end.

  • Will customers be able to continue using spec 2.0 after migrating to 3.0 at our end?

Felt it should be OK as a temporary solution, given that both specs are aligned i.e. no change in the overal request/response specifications.

 

Are there any known compatiability issues with this approach?

 

Thanks.

SoapUI doesn't start because of java.lang.NoClassDefFoundError: sun/misc/BASE64Decoder

$
0
0

SoapUI 5.5.0 doesn't even start because of java.lang.NoClassDefFoundError: sun/misc/BASE64Decoder using jdk11

Viewing all 20755 articles
Browse latest View live