User bio
404 bio not found
Member since Dec 4, 2017
Replies:

Hi Talita and Karl,

Sorry about the late response. Reading your question again, the answer should be that there are currently no native Cucumber bindings for Object script.

The above example is using Cucumber's javascript bindings to work with WebdriverIO, a node.js implementation of Selenium WebDriver, to test the Management Portal UI, so it not quite what you're looking for.

However it is possible, to some extent, to test Object script code using Cucumber's javascript bindings to invoke object script commands within step definitions using the ISCNodeAPI.

For example, using its invoke_command method as follows:

let irisnode = require("../../common/utilities/iris1200.node");

When(/^I execute the following SQL statement (.*)$/, function (sql) {
    let myData = new irisnode.IRIS(); 
    sql = 'SELECT name, number FROM "SQLUser"."customer"'; 
    var stmt = myData.create_instance({class: "%SQL.Statement" }); 
    var r = myData.invoke_method( stmt, { method: "%Prepare", arguments: [ sql ] } );
    var result = myData.invoke_method( stmt, { method: "%Execute" } );
})  

This is certainly not ideal, so it would be great if SmartBear or someone else were to work on actual cucumber bindings for COS.

Certifications & Credly badges:
Olga has no Certifications & Credly badges yet.
Global Masters badges:
Olga has no Global Masters badges yet.
Followers:
Olga has no followers yet.
Following:
Olga has not followed anybody yet.