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

API Bloom - Week 3 Winners | Task for Week 4

$
0
0

Hi All,

 

 

It’s Monday, and it means that it’s time to congratulate our API Bloom winners for the previous week!

 

WEEK 3 WINNERS

Meet our heroes:

Week3_winners.png

 

1st place:  - $50 gift card

2nd place:  - $35 gift card

3rd place:  - $15 gift card

 

 and , you were very close to becoming the winners. I believe you will do your best this week

 

 

TASK FOR THIS WEEK

The task for week 3 remains the same – you need to post the biggest number of replies to questions posted to the Ready! API forums.

https://community.smartbear.com/Ready_API

 

We will decide the winners next Monday, May 29.

 

 

API BLOOM RULES

https://community.smartbear.com/t5/Community-Matters-Blog/API-Bloom-May-1st-Sept-1st/ba-p/140917


qacomplete custom fields not showing

$
0
0

Hi All

 

Its happened on more than one occasion now and maybe it can be explained.. but why?

 

I have added custom fields to a QAComplete project but fields added in custom row 13 and 18 will not display / be available to choose to appear in listing.  If I make duplicate entry in rows 14 and 19 the custom fields do show.

 

Any suggestions appreciated.

how to make other test steps pass/fail from groovy test step

$
0
0

Hello,

 

I have two steps in a test suite, one is soap request without any assertion other one is groovy test step. I want to make fail the soap request from groovy test step. I need how to write groovy script to make fail/pass of other test steps.

What are the exact affected and fixed SwaggerUI versions for CVE-2016-7559 & CVE-2016-7918 (CVSS10)?

$
0
0

Hello,

 

What are the exact affected and fixed SwaggerUI versions for CVE-2016-7559 & CVE-2016-7918 (CVSS10)?

 

Thank you,

h3xspirit

ScriptExtension replacement for ODT - Need some help

$
0
0

 

Folks using DelphiScript for TestComplete automation have a disadvantage over the other script languages.  While JScript and JavaScript and Python allows you to declare classes and instantiate objects, DelphiScript doesn't have that ability.

 

To this end, in the past, folks have used the ODT object in TestComplete to be able to build classes and objects.  However, that object will be deprecated at some point.

 

To that end, I've started working at a simplistic replacement for the ODT object to be able to allow similar functionality but via a Script Extension.  Everything is working pretty well... except for one thing: adding methods to classes.  It works fine if the project in which you're calling the object is a JavaScript or JScript project.  But once I try using the object in a DelphiScript project, it doesn't work.  I don't get any errors, just that the code never actually executes.

 

Below is the code in the script extension:

 

var classes = {
    Declare: function (className) {
        classes[className] = new function newClass(){
        this.AddProperty = addProperty;
        this.AddMethod = addMethod;
        };
    },
    New: function (className) {return new classes[className].constructor()}};
function getclasses(){
    return classes;
}

function addProperty(propertyName, defaultValue) {
    if (defaultValue === undefined) {
        this.constructor.prototype[propertyName] = undefined;
    }
    else {
        this.constructor.prototype[propertyName] = defaultValue;
    }
}


function addMethod(methodName, stringProc){
    function newFunction() {
        Runner.CallMethod(stringProc)
    };
    this.constructor.prototype[methodName] = newFunction;
}   

To use this, once the extension is built, here's the way the code would look in a DelphiScript project:

 

//The unit name is Unit1
procedure test;
var myObject1;
begin
    OgreODT.Classes.Declare('test');
    OgreODT.Classes.test.AddProperty('prop1');
    OgreODT.Classes.test.AddProperty('prop2');
    OgreODT.Classes.test.AddMethod('logBlah', 'Unit1.testODT');
    myObject1 := OgreODT.Classes.New('test');
    myObject1.logBlah();
end;

procedure testODT;
begin
    Log.Message('it worked');
end;

Everything executes without error... just that the message never actually gets logged.  As mentioned, if I run similar code via JScript or JavaScript, everything works fine.

 

So... any assistance would be helpful in debugging what's going on here.  .... you've been helpful in the past with these kinds of things.

How to access the caption of a winform programmatically?

$
0
0

I see in my Object Browser a "Caption" that I want to access the value of in a script.

Assuming that the parent object is found at "NameMapping.Sys.ProgramName.ProgramNameLoginForm", how do I then access the caption of said form?

Extract specific string value from whole string contained within a Datasource Property

$
0
0

Hi to all,

 

I have a flat | delimited file (see below for format) that I need to parse for a specific value and extract it to a property so I can use it later in my test

 

file contents as below:

CustRefID|title|firstname|lastname|addressline1|addressline2|addressline3|postcode
ID0000001|MR|RICH|JONES|5 WHATEVER WAY|HODGE HILL|BIRMINGHAM|B36 9LB
Rows=1

I'm extracting the file contents using the Datasource - Directory type (to minimise the groovyscript) and assigning the file contents to a fileContents property. I am using the fileContents property later in a POST request (by posting the whole string in the fileContents property) to the webservice.

 

HOWEVER - I need to parse the fileContents property for a particular value (my CustRefID attribute value) within the file, so I can add in a GET request after my POST to query the webservice to check the POST was successful - I need the CustRefID value that was submitted in the POST. I understand I can do this from the response probably more easily than extracting it from the testdata, however, there are reasons why I'm not allowed to do that, so I MUST extract the value from the testdata.

 

So I'm expecting my testcase to look something like the following:

 

Directory (Datasource) - sourcing files of particular type from the directory. I have a fileContents property setup to hold the file contents
Groovy step - (to parse the fileContents property to extract the CustRefId value)
REST POST step - (posting the fileContents property to the web service)
REST GET step- (querying the webservice (using the CustRefID value) to ensure the POST was successful)
Datasource Loop step - (looping round for the next file in my Directory Datasource)

 

I should highlight that I need to preserve the header record and the footer record in my REST requests, which is one of the reasons I'm going for the above approach despite loads of help from Rao, Radford, msiadak, and IgorG.

 

 

The below is courtesy of Rao from another post I made - I'm hoping its fairly straightforward to alter the code below

 

def lines = new File('data.txt').readLines()  // need to change this line to read the contents of the fileContents property???
lines.eachWithIndex { line, index ->
    if (index) {
    	def data = line.split('|')*.trim()
	log.info data[0]   //need to alter this SOMEHOW to pick out the CustRefID value         	   
    }	    	
}

 

I'm pretty sure the line.split will do it - but my reading is only taking me so far at the moment.

 

I can see the above is reporting the first character on lines 2 and 3 of the file - I've tried playing with the script myself but I'm struggling. Could anyone point me in the right direction?

 

Essentially - I need to parse the fileContents property (created in the Directory - Datasource object) to pull out the CustRefID value.

 

I've attached my project file in case this helps clarify.

 

As always - many thanks to all/anyone who can help - I do appreciate that you are helping me doing my job for me!

 

richie

OgreODT Script Extension

$
0
0

OK... version 1.0 of the ScriptExtension to replace some of the functionality of deprecated ODT is available for download.  You can grab it at 

 

https://bitbucket.org/privateteamogre/scriptextensions/downloads/OgreODT.tcx

 

The initial release of this runtime object is to add ODT.Classes support for use in DelphiScript projects.  This will allow a user to Declare and create new instances of objects for use in DelphiScript code.

 

A sample code for this is below:

procedure test;
var myObject1;
var argumentArray : array[0..1];
begin
    OgreODT.Classes.Declare('test');
    OgreODT.Classes.test.AddProperty('prop1');
    OgreODT.Classes.test.AddProperty('prop2');
    OgreODT.Classes.test.AddMethod('runTest', 'Unit2.testODT');
    myObject1 := OgreODT.Classes.New('test');
    argumentArray[0] := 'test';
    argumentArray[1] := 'another test';
    aqObject.CallMethod(myObject1, 'runTest', argumentArray);
end;

This code declares a class "test" and adds two properties to it and a method.  The method calls the code at 'Unit2.testODT'.

 

There are some differences in how this works from the original ODT objects:

 

1) In DelphiScript projects, in order to call the methods of the object, you need to use aqObject.CallMethod.  I haven't figured out yet how to get this to work more natively. For other languages, calling the object method directly works just fine

2) If you need to pass parameters to your method, they need to be passed as an array and then utilized within your method as elements of that array.  This is because I haven't been able to find an easy way (yet) to make the number of parameters in the object method variable for DelphiScript utilization. 

 

The above to caveats I'll be continuing to work on in future versions.  Feel free to ask for assistance in implementation.  As always, if you use this, all I ask is attribution and that any derivatives of this contain that attribution as well.


SOAPUI PRO : Rest API request parameter need to pass current date and time format value

$
0
0
Hi All, SOAPUI PRO - Rest API request parameter need to pass current date and time in my request parameter value Like : { "Profile": "Group", "family": [ { "name": "Remo", "age": 24 }], "currentDateandtime": "2013-01-08 11:25:00.0000000 +05:30" } Need to Pass current date and time in "currentDateandtime" parameter Please share your valuable suggestion

How to run multiple SQL(Insert) statements in JDBC Request?

$
0
0

How to run multiple SQL(Insert) statements in JDBC Request?

 

I am using Ready! API 1.9.0

Loop using DataSource Directory Type Doesn't Seem to Be Working

$
0
0

Hi,

 

i'm sure you're all sick of reading my posts, especially the questions that appear straightforward.  I've been trawling the forum but I can't quite find the answer I need and I'm sure the answer is simple.

 

My Test Case has the following:

 

 

Datasource (Directory) type reading text files from the directory (FileContents property contains the flat files contents)
REST POST step (posts the contents of the FileContents property)
REST GET step (queries the database checking the POST worked ok)
Datasource Loop (Datasource step = Datasource (Directory), TargetStep = REST POST step)

 

 

NOW - I have 3 files in my directory, if I run the Datasource (with ZERO rows) - I can see the contents of the 3 files

 

I was expecting as there are 3 files in my directory, that the loop would execute the test 3 times,  once for each file - HOWEVER - this is NOT happening - the test is executing only once.

 

My reading indicates that what I think I've setup is correct - but I'm failing to see where the problem is - can anyone please advise?

 

I need to setup my testcase so that it executes for each file found via the Directory Datasource.

 

Many thanks to all!

 

richie

 

KeyWord Mode: Is there a way to create conditional checkpoints?

$
0
0

Keyword Mode: Is there a way to create conditional checkpoints? 

 

I have a test - which depending on the country I'm testing - will produce 3 different results in a Property Checkpoint I set up. All are valid, but I can only check one. 

 

I thought there would be a method in Operation Parameters around 'Value', something like the Value can equal "A101 or A102 or A103", but no such luck.

 

 

Not able to see the properties and methods in Object Browser Window

$
0
0

Attached the screenshot. Not able to see the properties and methods in Object Browser window.

 

Thanks

NG

Is it possible to create automated tests of Selectize drop downs in Testcomplete?

$
0
0

We are updating our online services.  These services are both browser based and mobile based.  Any lists that were currently in a standard drop down box are now being converted to use Selectize.    We want to update our current automated Testcomplete tests to execute against the drop downs using Selectize.    I have not had any luck recording a keyword test or coding a script that will select data from a drop down using Selectize.   I have two questions, 1. Is Testcomplete compatible with Selectize?  2. Is there any documentation related to automated testing of Selectize in Testcomplete?

 

Thank you for any help.

How to work with Access based desktop application

$
0
0
Hi i am working with an Access based application and ibjext spy is not recognizing the obkects on the screen. Also what are the best practices for Access applications for automation

How to work with Microsoft Acccess based application

$
0
0
Hi i am working with an Access based application and ibjext spy is not recognizing the obkects on the screen. Also what are the best practices for Access applications for automation

Could you please help on integration of Test Complete with QAComplete tool?

$
0
0

Hi Team,

When I try downloaded 'Automation Testing Bridge Set Up' plug-in for integration of Test Complete with Complete from internet,unable to download fully.Some file is missing or may firewall is blocking.Anyone can please help me to fix my issue as well as provide me some guidelines to configure TC with QAC.Thanks in Advance!

 

Thanks,

Ashok

what are the settings should i make to automate Microsoft AX Dynamics application using testcomplete

$
0
0

What settings required to automate Microsoft AX Dynamics application in Chrome browser using testcomplete

Parameters are greyed out

$
0
0

Why are my AQtime|Parameters menu command greyed out?

Is there a way to define a DB role when creating a JDBC connection?

$
0
0

Hi,

 

We normally connect to our DB with a SysDBA role using SQL Developer.role_sqlDeveloper_Blurred.pngbut when I try to set a JDBC connection, it seems that there is no Role field in there. Using the default login gives me the following error when I tested it:readyApiError_blurred.png

 I checked the DB connection string, and it seems that there is also no role defined in there:ReadyApiConnectionString.png

Any suggestion to specify it? The guide I saw also doesn't have any such field. I've asked a dev on our client but I was told they are using only one account. The same account I used when I encountered the error. I can get data using the same DB Connections I've posted when using SQL Developer.

 

Viewing all 20990 articles
Browse latest View live