serenity-js

increase timeout when running against remote grid

ぐ巨炮叔叔 提交于 2020-01-07 06:47:12
问题 when running a test locally it succeeds, but when configuring a remote grid, it fails with 1) Scenario: Login - features/api.feature:10 Step: When he enters his credentials - features/api.feature:13 Step Definition: node_modules/serenity-js/src/serenity-cucumber/webdriver_synchroniser.ts:46 Message: function timed out after 5000 milliseconds How can I increase the timeout value? Thanks & Ciao Stefan 回答1: Hi Stefan and thanks for giving Serenity/JS a try! You have a couple of options here,

Serentiy Report with protracor and cucumber

寵の児 提交于 2019-12-12 04:34:09
问题 I have protractor cucumber example works fine, now I'm trying to create report by serenity.js protractor.conf.js file exports.config = { getPageTimeout: 600000, allScriptsTimeout: 700000, framework: 'custom', frameworkPath: require.resolve('serenity-js'), capabilities: { 'browserName': 'chrome' }, specs: [ '/home/git/adap_gateway/src/test/features/*.feature' ], baseURL: 'http://localhost:8099/', cucumberOpts: { require: '/home/git/adap_gateway/src/test/javascript/stepDefinitions.js', format:

How to assert that web element is visible on the screen using serenity-js?

眉间皱痕 提交于 2019-12-11 15:11:01
问题 I am using Serenity-js BDD framework with screenplay pattern in my project. Here I am not able to perform assertion for visibility of an element on web-page using Ensure class's "that" method. Code : Page Element - static searchPatientsVerificationRow = Target.the('verification record').located(by.xpath("//div[@class='row']//tr")); Test Script Step : return Ensure.that(TaggingSearchControls.searchPatientsVerificationRow,Is.visible()) Error : Argument of type 'SuccessCondition' is not