Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 15 22:14
    wakaleo commented #2885
  • Aug 15 22:03
    wakaleo commented #2887
  • Aug 15 22:02
    wakaleo commented #2887
  • Aug 15 21:55
    wakaleo commented #1562
  • Aug 15 19:15
    sandy340 commented #1562
  • Aug 15 15:20
    alexanderkranga commented #2885
  • Aug 15 12:26
    beyond-danube commented #2689
  • Aug 15 07:07
    senthilkumar-gopi commented #2884
  • Aug 15 05:19

    wakaleo on main

    Fixed a broken test (compare)

  • Aug 14 23:13

    wakaleo on main

    Update to Selenium 4.4.0 (compare)

  • Aug 14 04:20
    vivganes commented #2887
  • Aug 13 11:02
    vivganes commented #2887
  • Aug 13 10:44
    vivganes commented #2887
  • Aug 13 10:44
    vivganes commented #2887
  • Aug 13 02:34
    wakaleo commented #2887
  • Aug 11 15:05
    sandeepraina-lenze commented #2884
  • Aug 11 15:00
    sandeepraina-lenze closed #2882
  • Aug 11 15:00
    sandeepraina-lenze commented #2882
  • Aug 11 14:59
    sandeepraina-lenze commented #2883
  • Aug 11 14:59
    sandeepraina-lenze closed #2883
Gaurav Khurana
@gauravkhuraana
            Ensure.that(BLOC).text().matches("\\d Blocks /"),
i want to match that BLOC element has the value as 156 blocks using regular expression.. how can i do that any documentation listing this kind of matching to be used in serenity-bdd
5 replies
Gaurav Khurana
@gauravkhuraana
Whats the difference between text() textcontent() and value() for an Target element.. ? is there any documentation to understand this
2 replies
anoopk1981
@anoopk1981
Hi..is it possible to change the default report directory (target/site/serenity) from the maven command line?
2 replies
rkochubei
@romanua
Hello Guys, is there any reference of how to run serenity tests with the junit5?
I see there are a lot different variations of doing that and different libs
But seems like from 2.6.0 serenity is supporting junit5
I can't find some simple test for example
8 replies
Kishore Kumar Madhav
@kishoremadhav27:matrix.org
[m]

Hi, We came across a scenario where we want to cast WebElementFacade to CustomWebElementFacade.
Example: We have created

  1. CheckBoxWebElementFacade and its implementation as CheckBoxWebElementFacadeImpl
  2. DataGridWebElementFacade and its implementation as DataGridWebElementFacadeImpl

Now, we need to return CheckBoxWebElementFacade type from DataGridWebElementFacade so that I can reuse the CheckBox's behaviour with DataGrid

When I tried to manually typecast, it threw Runtime: ClassCastException.
Please suggest.

2 replies
IvanLoco1
@IvanLoco1

Hi guys, i need a little help with this.

Im unsing Cucumber with Junit and Serenity with Screen play Pattern.

I have a Scenario Outline like this:

Feature: Making orders

Background:
Given Client is on the home page and logged in

Scenario Outline: Making a order with common items
Given Client adds the product into the shopping cart
|product |amount |
|<ProductNumber>|<Amount>|
And Client advances through the checkout with
|shipping method |shipping type |payment method|
|<Shipping> |<TypeShipping> |<Payment> |
And Client finishes the order
Then Client is order should be created

Examples:
|ProductNumber   |Amount     |Shipping         |TypeShipping    | Payment    |   
|34                                |1                   |Delivery          |Planed                   |Cash       |    
|35                                |1                   |Delivery          |Immediate        |Cash       |
|36                                |1                   |Delivery          |Immediate        |Cash       |

But the thing is that from the first example, the others all fail.
When the first example ends successfully, the page doesnt restart (so the client is already logged from the fisrt example.), and when the next example starts it uses this page.
Making the background task fail.

I thought that each example of the Scenario Outline was trated as a different Scenario and that the page should be closed when one is done.
but for reason this isnt working for me.

Note: In the serenity.properties have the property serenity.restart.browser.for.each=scenario

Any idea on how to solve this?

3 replies
bachhavdipak
@bachhavdipak
I am using serenity with junit 5 , Can someone please guide how to capture screenshots with JUnit 5?
Abhishek Sharma
@Abhishek-Sharma21

hi guys, can someone please explain we why I can't run appium parallel execution with the following setup ? it runs sequentially rather than parallel.
(if anyone could lead to any other best/easy approach to achieve this please)
serenity.property file(partial details) -
appium.deviceNames = emulator-5556,emulator-5554
manage.appium.servers = true
appium.hub = http://127.0.0.1:4444/wd/hub

POM
<artifactId>maven-failsafe-plugin</artifactId>
<version>3.0.0-M4</version>
<configuration>
<parallel>classes</parallel>
<threadCount>3</threadCount>

Ravindra Kumar karanki
@ravindra-karanki
Can i run secenity tests as a service?
☁️ y Baba
@CosmicGenes_twitter
Hello Guys i was looking at the starter project in serenity ..it looks like the main/master class is now more oriented towards screenplay and the action classes/lean page object branches have gone stale.. I am more familiar in the page object pattern than the screenplay .. is it worth cloning and progressing with the action-clasess pattern and does the latest code play well with it
1 reply
tanakala2645
@tanakala2645
Hello Guys… trying to upgrade my framework from 2.4.4 to 3.2.4 and have come across an issue ClassNotFoundException for the Api testrunner. does anyone have samples using gradle which uses 3.2.4 along with junit4 and cucumber 7?
3 replies
The exception is at builtinclassloader
tanakala2645
@tanakala2645
@wakaleo can you help with my question please?
IvanLoco1
@IvanLoco1

Hello guys,

I have a question, is it possible to use serenity in the backend of an application?
so that when something happens in this app a serenity test case is executed?

At my job we're planning something like this, then giving it to people who aren't that good at programming.
So they can run the test cases we created.

If it is possible and someone has done it or heard it, could you share your experience with me?

6 replies
chanduguthikonda
@chanduguthikonda
Guys, does anyone know is it possible to override headless.mode in runtime while executing specific test case?
scaddenp
@scaddenp
Any idea what would be behind this warning:
Illegal reflective access by net.thucydides.core.steps.StepInterceptor (file:/xxxxxxxxxxxxx/net/serenity-bdd/serenity-core/3.2.4/serenity-core-3.2.4.jar) to field java.lang.reflect.Method.root
13 replies
dimitarVladov
@dimitarVladov
Hello guys, does someone executing latest serenity screenplay using CircleCi? If yes could you point me or provide example configuration.
Thanks.
3 replies
Abhishek Sharma
@Abhishek-Sharma21
can anyone explain me the use of
appium.deviceNames = device1,device2 etc with the grid setup, as appium would still look for platform version and hence running all the parallel calls on same device(the first one out of pool of devices) since serenity doesn't provide appium.platformVersions etc..?
iammac2
@iammac2
This message was deleted
1 reply
baskarcsb
@baskarcsb
Hi Guys, i am executing the edge browser test against the latest version with selenium 4 grid and i have mentionedin serenity property as webdriver.driver=edge But the test failed and it shows the below error. Not sure why it is trying to instantiate chromedriver..... Failed opening login page.
net.thucydides.core.webdriver.DriverConfigurationError: Could not instantiate class org.openqa.selenium.chrome.ChromeDriver
is this an issue with serenity?
Note: it works locally but it failed against remote selenium 4 grid
also I would like to know... how the other teams are configuring the edge browser configuration in distributed grid for selenium 4
if anyone succeed to execute edge browser against selenium 4 grid ....then please share the grid node config info.
Kumud Goel
@KumudGoel4_twitter
OMG...it is like fish market
bachhavdipak
@bachhavdipak
Do we have a release note for 3.3.0. ?
1 reply
bachhavdipak
@bachhavdipak
I am trying to find support for a display name generator with the latest 3.3.0 release (It's available with JUnit 5 but seems like it's missing with serenity from the past few releases. )
1 reply
Vivek Ganesan
@vivganes

Hey friends.. I seem to be having issues running serenity-bdd with cucumber-jvm. Possibly a bug in serenity system.

I have a scenario marked as @manual in the feature file

Feature: Subtracting Numbers

  @manual
  Scenario: Subtracting two numbers
    Given a is 2
    And b is 1
    When I subtract b from a
    Then the difference should be 1

Now, my expectation is that serenity should not force me to write step definitions for this scenario as it is tagged as manual.

However, I get the following error when I run the serenity


[ERROR] Tests run: 3, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.539 s <<< FAILURE! - in org.example.acceptancetests.AcceptanceTestSuite
[ERROR] Subtracting Numbers.Subtracting two numbers  Time elapsed: 0.109 s  <<< ERROR!
io.cucumber.junit.UndefinedStepException:
The step "I subtract b from a" is undefined. You can implement it using the snippet(s) below:

@When("I subtract b from a")
public void i_subtract_b_from_a() {
    // Write code here that turns the phrase above into concrete actions
    throw new io.cucumber.java.PendingException();
}


Some other steps were also undefined:

@Then("the difference should be {int}")
public void the_difference_should_be(Integer int1) {
    // Write code here that turns the phrase above into concrete actions
    throw new io.cucumber.java.PendingException();
}


[INFO] 
[INFO] Results:
[INFO]

[ERROR] Tests run: 3, Failures: 0, Errors: 1, Skipped: 0
dimitarVladov
@dimitarVladov
Hello guys,
Could some one provide me with latest Serenity + Screenplay + Cucumber versions that could run tests in parallel?
Thanks.
dimitarVladov
@dimitarVladov

So guys,
I somehow found a workaround for above question.... not perfect but saves time on execution...

                <configuration>
                    <includes>
                        <include>**/*TestSuite.java</include>
                    </includes>
                    <systemPropertyVariables>
                        <webdriver.base.url>${webdriver.base.url}</webdriver.base.url>
                    </systemPropertyVariables>
                    <parallel>suites</parallel>
                    <forkCount>4</forkCount>
                </configuration>

using following config & you need runners for all different feature sub folders like

Screenshot 2022-08-03 at 14.53.58.png
All runners are including path to suits like
package yx;

import io.cucumber.junit.CucumberOptions;
import net.serenitybdd.cucumber.CucumberWithSerenity;
import net.serenitybdd.junit.runners.SerenityRunner;
import org.junit.runner.RunWith;

@RunWith(CucumberWithSerenity.class)
@CucumberOptions(
        plugin = {"pretty"},
        features = "src/test/resources/features/authentication"
)
public class AuthenticationTestSuite {}
1 reply
Gaurav Khurana
@gauravkhuraana

import net.thucydides.core.util.SystemEnvironmentVariables;
is this removed from latest version.. as i took the latest version of serenity.. i am facing error while compilation

[ERROR] symbol: class SystemEnvironmentVariables
[ERROR] location: package net.thucydides.core.util
cannot find symbol

i was using below to read the command line argument from maven
SystemEnvironmentVariables.createEnvironmentVariables().getProperty("environment");

7 replies
scaddenp
@scaddenp

Having "fun" with a js map component. When in "drawing" mode it has some complex handling of mouse/touch events to touch and click are equivalent. Much of the action happening on pointer-down pointer-up events. The problematic bit is simulating a mouse click on the map in such a way that all the event handling is activated as it would with a real click. I used to do that with evaluateJavascript and use new Mousevent (etc) to generate the critical events. (A new Mouseevent('click') does NOT do it. A recent update to the component broke that, so that rather than delving into the event interactions, I thought I would try doing the mouse click with the selenium/serenity. (Still using evaluatejavascript to convert lat/long into container container coordinates). But no joy...

In serenity I am doing
homePage.withAction().moveToElement(map,x,y).click();
(map is the webelement holding the map).

Does this look correct for simulating a mouseclick at container coordinates x,y ?

2 replies
Gaurav Khurana
@gauravkhuraana
in the latest version of 3.3.0 which i updated yesterday i have seen even thugh headless mode = true,,, still i see browser are getting open
3 replies
John Ferguson Smart
@wakaleo
Morning folks, the new Serenity BDD documentation website is live: https://serenity-bdd.github.io/
23 replies
rakeshnambiar
@rakeshnambiar
Hi, I am unable to import import net.serenitybdd.screenplay.ensure.Ensure;. IntelliJ shows an error whereas the script is working fine during the terminal execution. Any guess?
2 replies
rakeshnambiar
@rakeshnambiar
Hi all, pls let me know in case you have some sample code in handy for dealing the collection of elements. Mainly checking the element count and clicking the first element in the collection using screenplay pattern - thanks
13 replies
rakeshnambiar
@rakeshnambiar
I am wondering is there any way to write some dynamic text to the serenity report
6 replies
Juan Esteban Lopez Giraldo
@esteban2050
image.png
2 replies
Guys question, How can I identify or see any documentation to know which are the lastest versions of the libraries and that they also have good compatibility. I am creating a new project and I found on internet these versions but I am not sure, can you give me a hand ?
Manish Upadhyay
@manishbupadhyay
Hi Folks, I want to use single browser windows per feature file. How can I achieve this? Can anyone please suggest me?
For example: I've one feature file where 13 test cases are there now I want to use single time chrome browser to validate all these 13 test cases. @wakaleo
7 replies
Andreas Worm
@globalworming
@scaddenp and everyone else. TIL: you can pretty easy click a basic selenoid instance in GCP, when going to compute engine you can create a new instance from marketplace https://console.cloud.google.com/compute/instancesAdd(cameo:browse)?filter=solution-type:vm&q=selenoid
cost like 30$/mo for 2CPU/4GB
after setting static ip and setting serenity.properties webdriver.remote.url=http://<STATIC_IP>:4444/wd/hub and webdriver.remote.driver=chrome it just works 🎉
2 replies
Juan Esteban Lopez Giraldo
@esteban2050
image.png
8 replies
guys good evening, can you help me with this doubt: I just ran my test and I could see "test passed" but I didn't see that the browser had opened can you help me with this part ?
Yunaz Gilang Ramadhan
@ygrip
Hi all, it seems that serenity singe page reports does not render the scenario outline examples, all just reported with same (redundant scenario name) is this known issue? how can I get around this issue? thanks in advance sample
1 reply
Yunaz Gilang Ramadhan
@ygrip
This message was deleted
Yunaz Gilang Ramadhan
@ygrip
This message was deleted
sample