Questions tagged [serenity-js]

Questions about the Serenity/JS acceptance testing library, as well as the JavaScript and TypeScript implementation of the Screenplay Pattern.

73 questions
1
vote
1 answer

Serenity/js Cucumber Protractor : Tabs Capabilities & Features not visible in HTML reporting

I followed serenity-js guidelines but I don't see Capabilities and Feature tabs in HTML report. Only tests and acceptance criteria are visibles. json output (maybe an issue with the path ???) : { "id":"test-num-1;test-dosomething", …
S.L.
  • 11
  • 1
1
vote
1 answer

Appium with Screenplay

I've been using Screenplay for a couple of web projects now. My next project is going to be testing iOS and Android. Wondering if there is any support for Screenplay with Appium or if anyone has attempted it?
0
votes
0 answers

Is it possible to test Android and IOS apps on real devices with Serenity/JS?

I'm interested in testing Mobile apps and wanted to know if it is possible to use Appium - with Serenity/JS and Cucumber on real devices like in Serenity-BDD with Java I dont konw how to try
Ahmed
  • 21
  • 3
0
votes
0 answers

Serenityjs Rest - Error: unable to get local issuer certificate

When i try to do a GetRequest using the Serenity JS REST code, I am getting the error as TestCompromisedError: The API call has failed Caused by: Error: unable to get local issuer certificate> at TLSSocket.onConnectSecure…
0
votes
1 answer

Ensure one thing, and then another one if first is false

I have an interface with a list of users and a possibility to add a new one. I want to assert that this user is new (i.e. its email is not already used). So I should check that we have no message pop-up. checkMailIsNotUsed: () => …
Dapangma
  • 127
  • 1
  • 1
  • 10
0
votes
1 answer

Passing data from one step to another using screenplay ( e.g. When -> Then )

Using serenity-js, with cucumber and screenplay, i can't get to pass data from one step to another. E.g. : a "When" step defined by a pretty user.attempsTo() that simply calls a webservice, and a "Then" step that should simply checks the response of…
bruno777
  • 1,896
  • 2
  • 11
  • 5
0
votes
0 answers

Serenity js:add explicit wait in protractor

In my serenity js application I m trying to add explicit wait using the browser.wait in the protractor import { BrowseTheWeb, Click, Target } from '@serenity-js/protractor'; import { by } from "protractor"; import { protractor, element,browser }…
shamon shamsudeen
  • 5,466
  • 17
  • 64
  • 129
0
votes
2 answers

'serenity-bdd run' gives 'The "path" argument must be of type string' error in Docker

I have a Serenity-JS project that runs normally on the command line. I am trying to package it into a Docker container for use in an Azure pipeline, which is a model we've used with other projects. However, when I run the project via Docker, the…
ah1324
  • 1
0
votes
1 answer

download specific version of serenity-cli jar in package.json protractor project

Is there a way I can download specific version of serenity-cli jar. senario: I want to use the specific version of old jar of cli, where do I mention the version of the jar in the package.json . TIA
0
votes
1 answer

How to get the text from a particular xpath and how to store that in a string using Serenity

I want to fetch the text from an xpath and store it in a string. After entering all inputs and submitting , a new code will get generated and which looks like Customercode: IN02732114(number will dynamic). Now i want to fetch this code and store it…
0
votes
1 answer

Click.on(link) vs Navigate.to()

My system under test is a website, that dynamically creates pages from a config file and an index page with clickable icons to these pages. So far I could not find a way to iterate through the icons on the index page and test all the linked …
tommiport5
  • 43
  • 9
0
votes
1 answer

SerenityJS - Problem Getting Started with NPM CI Command - Serenity-BDD CLI jar

I'm on my Mac at work and I'm trying to get started with the Serenity JS template project found here: https://github.com/serenity-js/serenity-js-cucumber-protractor-template. After I installed all the prerequisites and cloned the code, I ran the…
JD12345
  • 3
  • 1
0
votes
0 answers

Type 'Promise>' is missing the following properties from type 'ApolloQueryResult': data, loading, networkStatus, stale

Someone that can help me to fix the following error: (method) CallGraphQL.executeQuery(queryToExecute: DocumentNode): Promise> Type 'Promise>' is missing the following properties from type…
0
votes
1 answer

Below code is not woking with Chrome browser

I have created a reusable function which clicks the check box of a particular row and returns the text of that row. CheckBoxXpath-> private static final String XPATH_JOBRATECATEGORIES_CHECKBOX_LIST =…
B123
  • 45
  • 1
  • 2
  • 11
0
votes
1 answer

Error: No selenium server jar found at "Location"

I am facing following issue : Error: No selenium server jar found at C:\ui-automation\serenity-1.0\node_modules\protractor\node_modules\webdriver-manager\selenium\selenium-server-standalone-3.0.1.jar. When I am trying to run my test using…