Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • May 24 10:06
    westerhout commented #1849
  • May 23 16:20
    iholub commented #2806
  • May 23 16:07
    iholub edited #2827
  • May 23 16:07
    iholub opened #2827
  • May 23 06:35
    gauravkhuraana opened #2826
  • May 20 21:19
    dependabot[bot] labeled #35
  • May 20 21:19
    dependabot[bot] labeled #35
  • May 20 21:19
    dependabot[bot] opened #35
  • May 20 21:19

    dependabot[bot] on maven

    Bump gson from 2.8.4 to 2.8.9 … (compare)

  • May 20 13:18
    JonathanOrtegon-L closed #2797
  • May 20 13:18
    JonathanOrtegon-L commented #2797
  • May 19 15:13
    sandeepraina-lenze opened #2825
  • May 18 08:10

    wakaleo on master

    Added some unit tests (compare)

  • May 17 12:04

    wakaleo on master

    Enhanced the Upload task (compare)

  • May 16 14:28
    wakaleo labeled #2824
  • May 16 14:26
    wakaleo commented #2824
  • May 16 14:25
    ikallala commented #2824
  • May 16 14:00
    ikallala commented #2824
  • May 16 13:35
    wakaleo commented #2824
  • May 16 13:31
    ikallala edited #2824
FernandaGL
@mfernanda95
image.png
3 replies
Thai Nguyen
@ntthaibk
Hi, is there a way for me to add log info, err, warn,... to the summary HTML report?
1 reply
bachhavdipak
@bachhavdipak
@Channel : how to run an API test using serenity and junit5?
bachhavdipak
@bachhavdipak
Anyone facing an issue : No BaseStepListener has been registered - are you running your test using the Serenity runners?]) while running test using serenity with Junit 5?
2 replies
Anand Alok
@iamanandalok_twitter
Hi Everyone, does anyone have a sample code to read and store the web table data dynamically? For example on the basis of table header I want to store in List of dto structure to access through java classes. Table size is dynamic .
zzoubian
@zzoubian
Hey is anyone receiving this exception when running serenity batches using Serenity 3.2.4?
java.lang.IllegalArgumentException at WeightedCucumberScenarios.java:66
1 reply
anoopk1981
@anoopk1981
Hi..In Serenity, I run my tests against two environments - Local and QA . So I use "mvn clean verify" with -Denvironment=Local to run against one environment and then again use the same above command with -Denvironment=QA to run against another environment. Now my question is can I have the tests run against both environment with a single "mvn clean verify" command ?
2 replies
Thai Nguyen
@ntthaibk
Hi everyone, I'm running REST API test, and can not print the REST request and response log to my stdout. In the HTML report, I can see everything, but from my console log, I can not see it for debugging purpose. If I add filter, then the SerenityRest.lastResponse is no longer populated. Do you guys know where the problem might came from?
4 replies
gsangar
@gsangar
Hi everyone. We are having some problems when we try to upload a Folder with the FolderBrowserDialog. We can do it on our local PC, but when we try to run in remote remoteDriver has a check to only load files. The Folder Browser doesn’t accept a file and selenium does not accept folders. Also if we try to bypass serenity to upload it as “in local” serenity does not find the folder location. Any insights on how to upload a folder with Serenity and selenium?
1 reply
julian
@jdmesalosada
Kibana
purushothamn31
@purushothamn31
@wakaleo , is serenity jbehave framework support is ended at 2.2.1 release, serenity 3.2.4 will not support jbehave, do we need to update for cucumber instead of jbehave. Planning to update my serenity jbehave framework 1.8.0 currently we are using to the latest serenity 3.2.4, whats your suggestions thanks in advance
bachhavdipak
@bachhavdipak
@wakaleo : Not sure if I missed anything but I am using the latest serenity and trying to generate the result JSON file under (target/site/serenity) with the customer display name generator but its no working as expected with the below output configuration #####################################################

OutputDirectory Config

#

environment.single.browser=chrome

serenity.outputDirectory = target/serenity

serenity.exclude.unrelated.requirements.of.type = requirements

serenity.output.formats=json

output.formats=json

ChrisVanBael
@ChrisVanBael

Hi, I'm having an issue with that an important line is missing in the Serenity when an exception occurs:
In the Azure DevOps pipeline output I have:

   org.springframework.dao.EmptyResultDataAccessException: Incorrect result size: expected 1, actual 0
at org.springframework.dao.support.DataAccessUtils.nullableSingleResult(DataAccessUtils.java:97)
at org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.queryForObject(NamedParameterJdbcTemplate.java:244)
at org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.queryForObject(NamedParameterJdbcTemplate.java:260)

But in the Serenity report the first line (most meaningful) is missing:

org.springframework.dao.support.DataAccessUtils.nullableSingleResult(DataAccessUtils.java:97)
org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.queryForObject(NamedParameterJdbcTemplate.java:244)
org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate.queryForObject(NamedParameterJdbcTemplate.java:260)

I have barely any configuration for Serenity, so I don't know why this line is missing.

3 replies
#GreenCardEquality #YESS386 #S386
@seenug_twitter
Hi @wakaleo @scaddenp and others - Has anyone able to get Serenity to run tests on Edge browser? Right now, though the browser gets launched, it throws a pop-up asking to choose a Profile. Though I tried multiple options in capabilities or edgeoptions, none of them seem to work..
Note, I am using Edge browser v100.0.1185.50 (Official build) (64-bit)
7 replies
Jmsc
@jmsierrac_twitter

Hello everyone. I have started to include manual test cases in my serenity reports using @Manual and @Manual:Passed. I have 24 test cases (22 automated and 2 manuals) but the serenity report is showing 17 automated and 7 manual (the 2 manual plus 5 automated). Any idea what is happening? This is the feature file containing the manual definitions:

Feature: SATK-2885 Out of the box workflows
@SATK-2885
@SATK-2885-Scenario1
@Workflows
Scenario: Scenario1 - Check out of the box workflows options
Given Mike logins into Spotfire as sdk
When Mike opens analysis PerkinElmer Signals Apps in SATK
Then Mike should see that 'InVivo_test_IP,Basic Screening Workflow' workflows exist
When Mike selects the 'InVivo_test_IP' workflow
Then Mike should see that 'Run' button is enabled
And Mike should see that 'Edit' button not exist
And Mike should see that the workflow owner is 'Unknown'
When Mike selects the 'Basic Screening Workflow' workflow
Then Mike should see that 'Run' button is enabled
And Mike should see that 'Edit' button not exist
And Mike should see that the workflow owner is 'Unknown'
When Mike clones 'Basic Screening Workflow' workflow in 60 seconds with
|Workflow Name|
|SATK-2885|
Then Mike should see that 'Run' button is enabled
And Mike should see that 'Edit' button exist
And Mike should see that the workflow owner is 'sdk'
And Mike deletes the saved workflow

@SATK-2885
@SATK-2885-Scenario2
@Workflows
@Manual
@Manual:Passed
Scenario: Scenario2 - Check out of the box workflows options offline
Given Mike open Spotfire client in offline mode
When Mike opens analysis PerkinElmer Signals Apps in SATK
Then Mike should see that 'InVivo_test_IP,Basic Screening Workflow' workflows exist
When Mike selects the 'InVivo-test-IP' workflow
Then Mike should see that 'Run' button is enabled
And Mike should see that 'Edit' button not exist
And Mike should see that the workflow owner is 'Unknown'
When Mike selects the 'Basic Screening Workflow' workflow
Then Mike should see that 'Run' button is enabled
And Mike should see that 'Edit' button not exist
And Mike should see that the workflow owner is 'Unknown'
When Mike clones 'Basic Screening Workflow' workflow in 60 seconds with
|Workflow Name|
|SATK-2885|
Then Mike should see that appears the message 'Sorry, you cannot clone a workflow whilst offline'

@SATK-2885
@SATK-2885-Scenario3
@Workflows
@Manual
@Manual:Passed
Scenario: Scenario3 - Check out of the box workflows without workflow folder defined
Given Mike logins into Spotfire as admin
And Mike sets to empty the Protocol Library Folder for the SDK group
And Mike logs out from Spotfire
When Mike logins into Spotfire as sdk
And Mike opens analysis PerkinElmer Signals Apps in SATK
Then Mike should see that appears the warning 'Workflows folder preference is empty, only out of the box workflows will be available.'
And Mike should see that 'InVivo_test_IP,Basic Screening Workflow' workflows exist

1 reply
anoopk1981
@anoopk1981
Hi..In serenity I want to check if my URL have changed after clicking a button. Is there an inbuilt method for this ?
3 replies
Gaurav Khurana
@gauravkhuraana

While running the test in Azure build pipeline in headless mode,
all UI tests are failing with below error..

What could be the possible reason.. locally it runs fine..

The following error occurred: unknown error: session deleted because of page crash
from unknown error: cannot determine loading status
from tab crashed
(Session info: headless chrome=101.0.4951.54)

6 replies
Alberto Gallardo
@gallardo
Hi. What is the status of gradle in serenity? Although the doc suggest repeatedly gradle commands equivalent to maven ones, and although from the doc it looks like gradle is a first level citizen, trying to build serenity with gradle is currently not possible. I've followed the contribution guide (https://github.com/serenity-bdd/serenity-core/blob/master/CONTRIBUTING.md#-how-to-build), but it is inaccurate or gradle is broken.
I've tried to upgrade serenity-core to use gradle 7.4.2, but it's extremely difficult. Furthermore, I have found that many sub-projects are using different versions of gradle (!). There are 20 gradle-wrapper.properties across serenity-core, with versions as disparate as old: 4.9, 3.5, 2.10
Alberto Gallardo
@gallardo

Under the root dir, even a gradle init fails:

$ ./gradlew init
Error: Could not find or load main class org.gradle.wrapper.GradleWrapperMain
Caused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain

I'm using a pretty recent jvm (almost sure incompatible, but there is no serenity doc regarding required jvm):

$ java -version
openjdk version "17.0.2" 2022-01-18
John Ferguson Smart
@wakaleo
@gallardo I rarely use Gradle, and it has historically had issues with finding paths for the reporting which makes it tricky to work with, but if you would like to take a look and contribute, you are more than welcome to help out. Serenity works with the latest JVM versions from 1.8 to 17+
8 replies
bachhavdipak
@bachhavdipak
@wakaleo https://github.com/serenity-bdd/serenity-core/releases Unable to find latest release notes for 3.2.5.
John Ferguson Smart
@wakaleo

@wakaleo https://github.com/serenity-bdd/serenity-core/releases Unable to find latest release notes for 3.2.5.

We only do release notes for major or important releases.

bachhavdipak
@bachhavdipak
image.png
@cliviu :You have added support for the @DisplayName in the serenity core but when I am trying to run my test with @DisplayNameGeneration JSON file generated under target/site/serenity does not contain data based on the Junit 5 custom display name generator.
julian
@jdmesalosada
Hi everyone, I would like to read the Serenity outcomes, I’m following this documentation: https://serenity-bdd.github.io/theserenitybook/latest/importing-test-outcomes.html but the results are generated once the execution has finished. If I want to read the results after the execution what kind of implementation do you recommend me? Should I write a plug-in to do this? Something that runs after the phase of integration? Thanks.
1 reply
Sang Tiet
@sangtiet
Hi everyone, i got error when running test script with iOS native app: net.thucydides.core.pages.WrongPageError: The page object class com.pages.HomePage could not be instantiated:
Failed to instantiate page (net.thucydides.core.webdriver.DriverConfigurationError: Could not instantiate class io.appium.java_client.AppiumDriver) but on Android i can start script normally. Has anyone got this error?
Thai Nguyen
@ntthaibk
Hi everyone, I'm running serenity with cucumber (latest version). But when my test error with an exception, the @after hook is not executed. The after hook still execute when test failed or passed
Thai Nguyen
@ntthaibk
for more detail, I think the exception is Caused by: java.net.SocketTimeoutException, find somewhere on the internet stated that the After hook normally not execute when seeing timeOut exception
Alberto Gallardo
@gallardo
Hi @wakaleo ... I'm not sure that github commit comments don't get lost. Just in case, I drop it here: https://github.com/serenity-bdd/serenity-core/commit/0ffa5d98c588b82263b06e06cba30ff1aaceb16c#r73330382
Arya KS
@aryaks726
Hi, currently I am using cucumber test suite and serenity.properties to get the data in serenity report. my codes are like this
cucumber test suite
image.png
But now I want to use serenity config instead of serenity properties to get the data in the serenity report. So i tried doing this
Serenity config:
image.png
cucumber test suite:
image.png
but i didn't get the desired result and i am quite lost now on how to do it. So can anyone help me here?
Alberto Gallardo
@gallardo

After @wakaleo 's comment to one PR addressing the gradle build https://github.com/serenity-bdd/serenity-core/pull/2816#issuecomment-1122712720

serenity-core no longer uses the Gradle build, so it is not maintained - will probably be deleted at some point.

, I wonder if there is any gain in keeping the gradle files yet... What would be lost, if we delete them right now?

I'm raising the question because I'm still stuck with one issue using the serenity-gradle-plugin that I'm trying to debug. For this, I have invested some effort bringing the gradle build aligned with the maven build, but it apparently needs even more dedication. Devoting more efforts into it doesn't seem sensible though, as the plan is to delete the gradle build.

Gaurav Khurana
@gauravkhuraana
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("selenoid:options", Map.<String, Object>of(
"enableVNC", true,
"enableVideo", true
));
how can i pass these capabilities related to selenoid in conf.properties
1 reply
Arshdeep singh
@arsh711
hello
I'm trying to run serenity + cucumber + appium code parallel, I tried executing my code with runnable interface and Thread class. I was able to run code parallel but the only issue i'm getting now is that I want to change wdaLocalPort capability for different threads so that each threads get unique wdaLocalPort
1 reply
Gaurav Khurana
@gauravkhuraana

when running selenium grid on pipelines(azure) do we need to change this URL "http://localhost:4444" as of now i am getting error when the serenity-bdd tests are run

Getting below error

Could not instantiate class org.openqa.selenium.remote.RemoteWebDriver

3 replies
Rangiferus
@Rangiferus
Anyone knows how to pick up the result chart from the report to embed into another web page? I'd like to have a consolidated view of test results from multiple applications for which separate reports are generated and stored in different locations.
KaminskiJakub
@KaminskiJakub
Hello.
I have a question which I saw before here or on Github, but I've never seen an aswer to it.
Can we run tests using Serenity BDD+Cucumber for Desktop Applications ?
Do we use WinAppDriver (which is build on top of the WebDriver protocol) or any other tool, or no tool at all in that matter ?
Can it be done ? And if yes, is it described somewhere ?
Thanks
Alberto Gallardo
@gallardo
@wakaleo serenity-gradle-plugin issue#9 (https://github.com/serenity-bdd/serenity-gradle-plugin/issues/9#issuecomment-1131474558) is being more demanding than what I thought. Given that I'm not acquainted with guice, and the many uses of the guice objects, I'm not sure I can improve / fix the code.
If I'm understanding guice correctly, the most sensible approach would be to define a gradle scope and using different bindings in the plugin. Any thoughts?
Gaurav Khurana
@gauravkhuraana

Tests when run for firefox for selenium grid stucks after browser is open. Works well with chrome.. using this configuration

webdriver {
driver = remote
remote {
url="http://localhost:4444"
driver=firefox
}
}

below is the error,, can someone please help with this

11:55:30.333 INFO [ProxyNodeWebsockets.createWsEndPoint] - Establishing connection to ws://localhost:59603/devtools/browser/df0dd2ea-3f50-476d-b9ca-addbdb736a6c
JavaScript error: chrome://remote/content/server/WebSocketHandshake.jsm, line 182: Error: The handshake request has incorrect Origin header http://localhost:59603
11:55:30.338 WARN [ProxyNodeWebsockets$ForwardingListener.onError] - Error proxying websocket command
java.io.IOException: Invalid Status code=400 text=Bad Request
at org.asynchttpclient.netty.handler.WebSocketHandler.abort(WebSocketHandler.java:92)

Rangiferus
@Rangiferus
Is there any way to split large serenity.conf file into multiple smaller ones?
Abhishek Sharma
@Abhishek-Sharma21

Hi -
I'm trying to use grid version 3.141.59 with appium(with serenity-jbhevae). The issue I'm facing is that it is not routing the request to grid.

request goes directly to appium instance running on localhost:4723 and not to grid running locally localhost:4444
(it runs through grid when we i use custom class/browser -
WebDriver driver = new RemoteWebDriver(new URL("http://127.0.0.1:4444/wd/hub"),cap))

Serenity.property -
webdriver.driver=remote
webdriver.remote.driver=appium
appium.remote.hub=http://127.0.0.1:4444/wd/hub

public class AcceptanceTestSuite extends SerenityStories {
@Managed(uniqueSession = false)
public WebDriver webdriver;
}

Rangiferus
@Rangiferus

I have a problem with waiting for element invisibility:

Step failed
net.thucydides.core.webdriver.exceptions.ElementShouldBeVisibleException: Expected condition failed: waiting for [[ChromeDriver: chrome on WINDOWS (0e9a492f32a53ca564ae1bb46ff04d0d)] -> css selector: [data-test='dashboard-view-button-continue']] to be displayed (tried for 10 second(s) with 100 milliseconds interval)
Driver info: driver.version: unknown
    at net.serenitybdd.core.pages.WebElementFacadeImpl.throwShouldBeVisibleErrorWithCauseIfPresent(WebElementFacadeImpl.java:1009)
    at net.serenitybdd.core.pages.WebElementFacadeImpl.checkPresenceOfWebElement(WebElementFacadeImpl.java:974)
    at net.serenitybdd.core.pages.WebElementFacadeImpl.getValue(WebElementFacadeImpl.java:1053)
    at net.serenitybdd.core.pages.WebElementFacadeImpl.valueAttributeSupportedAndDefinedIn(WebElementFacadeImpl.java:1170)
    at net.serenitybdd.core.pages.WebElementFacadeImpl.getTextValue(WebElementFacadeImpl.java:1143)
    at net.serenitybdd.screenplay.matchers.statematchers.WebElementStateDescription.forElement(WebElementStateDescription.java:9)
    at net.serenitybdd.screenplay.matchers.statematchers.IsNotCurrentlyVisibleMatcher.describeMismatchSafely(IsNotCurrentlyVisibleMatcher.java:23)
    at net.serenitybdd.screenplay.matchers.statematchers.IsNotCurrentlyVisibleMatcher.describeMismatchSafely(IsNotCurrentlyVisibleMatcher.java:7)

As pasted above, the step fails on ElementShouldBeVisibleException although the IsNotCurrentlyVisibleMatcher matcher is used. Isn't it a bug?

1 reply