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

Transfer property to aplication/x-www-urlencoded request

$
0
0

Hi,

 

I've created a test suite which contains a test case.

1. I am calling an API that returns in it's response a clientId. eg. /api/v1/getClients

2. I am retrieving that clientId and use it to call another API, e.g /api/v1/client/{clientId}

3. The API from point 2 is returning accountNumber

4. I am trying to call another API (eg. api/v1/client/getAccount ) where I need to pass the accountNumber in the payload of the request, but the payload needs to be in application/x-www-form-urlencoded format : accountNumber=abc123&currency=USD&country=US

I am failing in transfering the retrieved accountNumber into the payload. 

Any ideas?


Thank you!

 


TestComplet support plugin 2.1 is not shown in Jenkins version 2.169

$
0
0

Hi All,

 

Recently we had to upgrade the Jenkins server to version 2.169. Earlier we were using TestComplet support plugin version 1.1. In order to support TestComplete v14, we understood that we have to upgrade TestComplete support plugin to version 2.1. To support this upgrade, we had to upgrade Jenkins server to the latest version.

 

Unfortunately I dont see the TestComplete support Plugin v2.1 in the manage plugins page.

 

Rather what see is TestComplete Support Plugin v1.1 as attached in the image.

 

Could anyone suggest/provide solution to get TestComplete Support Plugin v2.1 in the Jenkins server.

 

Thanks in advance.

 

Thanks,

Karthik K R

Maria DB connector

$
0
0

I have ready API, We are trying to connect to db using data source loop and check for stored values.

Our DB is Maria DB, do we have a default connector or where do we install the connector from.

 

Please advise

How Can I generate review report from command line?

$
0
0

How Can I generate reports with artifacts of first and last scmVersions.

 

I found such way to generate report of review :

ccollab [global-options] admin review-xml [--xpath <value>] [--xsl-file <value>] <review> [<review> ...]

 

But this request compare only the last two versions of file.

How to Handle dynamic QUERY Style key-value parameters in my request url?

$
0
0

Hello Genius,

 

I got stuck with my soapui project and need your help to have a look, details as below:

Request URL 01: http://www.test.com/path?a=1&p_age=18

Request URL 02: http://www.test.com/path?a=1&p_age=18&p_gender=male

Request URL 03: http://www.test.com/path?a=1&p_age=18&p_gender=male&p_height=180

 

As you can see, there's dynamic QUERY Style key-value parameters in my request url, and the key is custom defined, it always changed, looks TEMPLATE style parameter didn't any help, is there any good solution for this scenario? Look forward for your response, thanks a lot

how do you specify a custom serializer for your models in Swagger UI 2.x?

$
0
0

Hi, I'm upgrading from Swagger 0.3.x to 2.x:

 

In 0.3.x, you could specify a custom model serializer via a docstring YAML comment, e.g.

https://django-rest-swagger.readthedocs.io/en/stable-0.3.x/yaml.html

 

def retrieve(self, request, *args, **kwargs):
"""
Get domain details.

Example Response:\n
{
"id": "blah"
}
---
# YAML (for swagger documentation after the ---)
serializer: ..serializers.MySerializer

 

I'm not seeing how to do this in Swagger [UI] 2.x.

Thanks!

URGENT- SOAPUI- Dynamical XML for creating elements

$
0
0
Hi, I have a below structure in my Test case

Note - I am using Soapui PRO

1) Data source - reading multiple rows from Excel file
2) Request method
3) Data source loop

When I run the test case, data source takes multiple rows from the Excel file. It loops each row and generates separate XML file for each row. For example

Message 1 for first row in Excel

Header XML elements
&lt;......&gt;
Child XML elements

Ship no 1
Qty 1
Batch number 001

Message 2 for second row in Excel

Header XML elements

Child XML elements

Ship no 2
Qty 5
Batch number 002

_-----------++++++----------

What I want is

Message

Header XML elements

Child XML elements

Ship no 1
Qty 1
Batch number 001

Ship no 2
Qty 5
Batch number 002

"readOnly" and "required" C# properties generation

$
0
0

Dears

 

Please help me with readOnly property generation

 

I've found that properties declared with readOnly -oneOf are generated with Object data type.

 

  Customer:
    type: object
    required:
      - "ClientTypeId"
    properties:
      ClientTypeId:
        type: "integer"
        format: "int32"
      ClientType:
        readOnly: true
        allOf:
          - $ref: '#/definitions/ClientType'
definitions:
ClientType:
type: object
required:
- "ClientTypeId"
properties:
ClientTypeId:
type: "integer"
format: "int32"
Description:
type: "string"
LegalType:
type: "boolean"

ClientType is generated as 

/// <summary>                         
/// Gets or Sets ClientType           
/// </summary>                        
[DataMember(Name="ClientType")]       
public Object ClientType { get; set; }

however I expected that it will get strongly typed property ClientType according to the definition

additionally ClientTypeId is generated as Nullable<int> property but I expect that it will be generated like int ClientTypeId:

/// <summary>                         
/// Gets or Sets ClientTypeId         
/// </summary>                        
[Required]                            
[DataMember(Name="ClientTypeId")]     
public int? ClientTypeId { get; set; }

I used both online generator https://generator.swagger.io/api/gen/servers/aspnetcore and offline swagger-codegen (https://github.com/swagger-api/swagger-codegen) at master.

 

Is it possible to get ClientType to be generated as

public ClientType ClientType { get; set; }

?

Regards


[Day 3/5] APIvsUI - Which skills does a tester need to do API testing?

$
0
0

Hi API Team,

 

Your contribution has been great so far! I’m sure you’ve even learned something new about API Testing Smiley Happy

At the moment, you have more points. Let’s see if the situation changes today. However, the UI Team contributes a lot! It’s high time you started doing the bonus tasks to stay on top (find them below) Smiley Wink

>> Track the current score

 

Day 3 Task:

Which skills does a tester need to do API testing?

 

Here is what you can cover in your reply:

Which technical skills are required?

Which skills help a person grow in the API Testing carrier?

Is attending API Testing courses required? Which ones can you recommend?

 

Leave your replies here.

 

If you’ve just joined the event, feel free to complete the tasks for the previous days.

 

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.

 

[Day 3/5] APIvsUI - Which skills does a tester need to do UI testing?

$
0
0

Hi API Team,

 

Your contribution has been great so far! I’m sure you’ve even learned something new about UI Testing Smiley Happy

At the moment, the API team has more points. Can you compete with them today? Implement today's task and bonus tasks to earn more points (find them below) Smiley Wink

>> Track the current score

 

Day 3 Task:

Which skills does a tester need to do UI testing?

 

Here is what you can cover in your reply:

Which technical skills are required?

Which skills help a person grow in the UI Testing carrier?

Is attending UI Testing courses required? Which ones can you recommend?

 

Leave your replies here.

 

If you’ve just joined the event, feel free to complete the tasks for the previous days.

 

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.

 

Testing Destination of Windows Shortcut lnk in Start Menu Win7x64

$
0
0

Hi,

 

I'm trying to get this JScript from https://support.smartbear.com/viewarticle/8967/ working in TestComplete 12.6 on Win7x64.

 

It's to verify the target value of the shortcut (what it's trying to run).

 

This script is throwing an error:

JavaScript runtime error

ReferenceError: ActiveXObject is not defined

Error location:

Unit "script unit name"

Line 14 Column 18



{
  if (!IsShortcutValid("Programs|Accessories|Paint", "|")) {
    Log.Error("Shortcut is not valid");
    return;
  }
  Log.Message("Shortcut is valid");
}
function IsShortcutValid(shortcutPath, separator)
{
  var WshShell, fso, startDir, allUsersStartDir, path, shortcut;
  WshShell = new ActiveXObject("WScript.Shell");
  startDir = WshShell.SpecialFolders("StartMenu") + "\\";
  allUsersStartDir = WshShell.SpecialFolders("AllUsersStartMenu") + "\\";
  path = shortcutPath.split(separator).join("\\") + ".lnk";
  fso = new ActiveXObject("Scripting.FileSystemObject");
  if (fso.FileExists(startDir + path)) {
    shortcut = WshShell.CreateShortcut(startDir + path);
    return fso.FileExists(shortcut.TargetPath);
  }
  if (fso.FileExists(allUsersStartDir + path)) {
    shortcut = WshShell.CreateShortcut(allUsersStartDir + path);
    return fso.FileExists(shortcut.TargetPath);
  }
  return false;
}

Any advice greatly appreciated.

 

Pete

Image and Pixel comparsion

$
0
0

Hi,im getting Image and pixel comparsion error in Testexecute like below

The images are not equal.

The pixel difference is 1 %.
The color difference is 1 %.

There is a slight difference between the compared images. If you want the checkpoint to report them as equal, set its Pixel Tolerance parameter to 253.

 

Im running scripts which worked in TestComplete in Testexecute copying all scripts,stores,namemapping..so on.

for few of the scripts im getting error  like this. Ideally testcomplete scripts should work in testexecute as well

 

so is there any way i can solve this so script work in both TestComplet and Testexecute

Disable specific testcases in a particular Environment

$
0
0

Can anybody give me an example Setup Script or TearDown Script that can disable specific Testcases in a particular Environment?

 

 For example

 

Environment 1

Environment 2

Environment 3

 

Project

TestSuite

Testcase1

Testcase2

TestSuite

Testcase3

Testcase4

TestSuite

Testcase5

Testcase6

 

 

If Environment = Environment 1,Environment 3

then disable Testcase 1, Testcase 4, Testcase 6

else enable all.

 

 

I can’t see that using tags is environment specific, so I guess a script is the way to go.

 

Thanks!

How to run a Test suite in a loop.

$
0
0

Hi I have my Test suite and I want this to run in a loop. I know that we have the Test items xml where we can put he count for every test item but I want this count to happen over my entire suite and not on an individual Test item..

Counting Project Suite Items Excluding 'reset' scripts

$
0
0

Hi,

 

How can I set a temporary variable from TestComplete Variables to be able to run the same test case on multi-frame applications? (the temporary variable describes the name of the frame application). In case the test script is designed to set that temporary variable, that script is added to the total count of the Test Run (I would prefer to count only the test cases, and not also the helper scripts).

 

Is this possible somehow?

 

Best Regards,

Adrian M.


Gets HTTP/1.1 500 Internal Server Error[\r][\n] error. SOAP UI 5.4.0 gives blank response.

$
0
0
  • HTTP/1.1 500 Internal Server Error[\r][\n]

Problem with closing test program during use TestComplete

$
0
0

Hello,

We are testing Delphi application with TestComplete.

 

Every time we go to Object Browser and try to expand properties of object of class ‘THSListGrid’ in any window, the program closes (no error report when closing, program just closes).

 

  1. Properties tab is OK, but an error message appears (in attachement)
  2. When we go to „Fields” tab, the program closes

The same problem with Object Spy. When we try to spy any objest of class "THSListGrid" our tested app close.

testrunner.bat in combination with tags. ReadyAPI 2.6.0

$
0
0

I'm having issues with testrunner.bat in combination with tags

 

Number of Test Suites:

All Environments

38


testrunner.bat
-TTestSuite All Environments


11:58:48,673 WARN [SoapUIProTestCaseRunner] There are no suites with the specified tags.

 

I have 38 suites with the tag name "All Environments"

 

 

Has anybody else had this issue in in ReadyAPI 2.6.0?

Not able to launch testcomplete with IntellIJ using testcomplete jar files

$
0
0

Hi Team,

We are doing Cucumber + Bdd + Testcomplete testing. We were able to launch Testcomplete with Intellij framwork .But recently we got new testcompete licence and now we are not able to launch testcomplete.

 

Please give me some asset.

SOAP UI 5.4.0 failes to load the WSDL. Please help on this

Viewing all 20755 articles
Browse latest View live