Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 17 18:14
    victorgallegosGIT commented #2557
  • Sep 17 18:13
    victorgallegosGIT commented #2557
  • Sep 17 18:03
    wakaleo commented #2557
  • Sep 17 17:53
    victorgallegosGIT opened #2557
  • Sep 17 10:54
    SchnuckySchuster commented #2554
  • Sep 17 10:53
    SchnuckySchuster commented #2554
  • Sep 17 10:39
    wakaleo commented #2554
  • Sep 17 10:33
    SchnuckySchuster opened #2554
  • Sep 14 08:02
    KurumiXenar commented #2548
  • Sep 14 08:00
    KurumiXenar commented #2548
  • Sep 14 04:11
    KurumiXenar commented #2548
  • Sep 14 03:07
    KurumiXenar commented #2548
  • Sep 11 05:05
    abhijeetkumartricon commented #2549
  • Sep 11 04:39
    abhijeetkumartricon commented #2549
  • Sep 10 05:36
    wakaleo commented #2553
  • Sep 10 05:28
    kedziorm opened #2553
  • Sep 10 03:04
    luisbarretoglobant opened #2552
  • Sep 09 16:34
    wakaleo labeled #2543
  • Sep 09 16:34
    wakaleo labeled #2551
  • Sep 09 12:29
    wakaleo commented #2551
Swetha Muchapathi
@Muchapathi
How to execute serenity tests in Docker-Zalenium?I am getting "net.thucydides.core.webdriver.DriverConfigurationError: Could not instantiate class org.openqa.selenium.firefox.FirefoxDriver" exception on following the official documentation to execute the tests in docker.Can someone please help me!
8 replies
Swetha Muchapathi
@Muchapathi
@munna73 Are you able to proceed with executing tests in Docker?
anoopk1981
@anoopk1981
I am using selenium grid with serenity + cucumber and my tests runs fine in Docker.
scaddenp
@scaddenp
@Muchapathi One curiosity. You say that your zalenium console is reporting chrome browser version 91. With Zalenium development stopped, our browser version is stuck in the 80s. Did you build your own docker image with the latest browsers?
Swetha Muchapathi
@Muchapathi

@Muchapathi One curiosity. You say that your zalenium console is reporting chrome browser version 91. With Zalenium development stopped, our browser version is stuck in the 80s. Did you build your own docker image with the latest browsers?

@scaddenp : Yes,I think I have executed $ docker run -d -p 4444:4444 --shm-size="2g" selenium/standalone-chrome:4.0.0-rc-1-prerelease-20210713
But could you please help me in understanding the execution in Zalenium+Docker.

mony
@munna73
@Muchapathi I can proceed by adding Ignore-certificate_errors
mony
@munna73

@all,Created below jar files in target folder using mvn package -Dskiptest
selenium-docker-tests.jar
selenium-docker.jar
All dependencies packaged under target/libs folder using maven plugin

My project uses Serenity with Cucumber. My runner class is below.

==================================================================
package g.d.c.t.ut.testsuite;
import org.junit.runner.RunWith;
import io.cucumber.junit.CucumberOptions;
import net.serenitybdd.cucumber.CucumberWithSerenity;

@RunWith(CucumberWithSerenity.class)
@CucumberOptions(features = "src/test/resources/features")
public class Utestrunner {
}

==========================================================================

To run with out jar files on docker from my PC I use below

mvn clean verify -Dcucumber.filter.tags="@MFA" -Dwebdriver.remote.url=http://localhost:4444/wd/hub -Dwebdriver.remote.driver=chrome -Dwebdriver.remote.os=LINUX
Executed command below after bilding jar files selenium-docker-tests.jar ,selenium-docker.jar.

java -cp selenium-docker.jar:selenium-docker-tests.jar:libs/* org.junit.runner.JunitCore g.d.c.t.ut.testsuite.Utestrunner

Error: Could not find or load main class org.junit.runner.JunitCore

I am not sure exactly how to execcute by using a packaged Jar.

5 replies
anptv
@anptv
@wakaleo How to make myQuestion (to get a value, not to assert) appear in the Serenity report?
In Serenity, I understand that if I want to get a value after a step, I should write it as a question (because I cannot get the return after a task).
So, I have many questions to get returned data.
After having this returned data, I assign it to another variable to continue calculating. For example:
int numberOfItems = myQuestion.about(inputtedData).answerBy(actor);
But by this way, myQuestion does NOT appear in the test report.
The question is: How to make myQuestion (to get a value, not to assert) appear in the Serenity report?
9 replies
anoopk1981
@anoopk1981
Hi..I have an aws ec2 machine and I want to login to that machine and execute a command as part of my test execution. So how can I automate this? I have tried the jsch library but its not working with aws. Any inputs appreciated. Thank You.
Sebasthianc1
@sebasthianc1

happy week !!

How can I use the "chrome.capabilities.acceptInsecureCerts = true" functionality in the serenity.properties file, but let it be for the "edge" browser

philicia
@tirzahtoh_twitter
can I use serenityBDD to intercept network request?
10 replies
rkochubei
@romanua
Hi Guys, just noticed that during test execution I'm not getting stack trace of exception in TestData. Is there any way to fix this?
3 replies
Sebasthianc1
@sebasthianc1
How to test with different browsers (firefox, chrome, edge) in dbb serenity performing the capabilities accept Insecure Certs?
5 replies
Paul Ireland
@trashytop

Trying to build serenity-core using https://github.com/serenity-bdd/serenity-core/blob/master/CONTRIBUTING.md as I want to start contributing again. However, I'm getting some compilation errors from "gradle build", e.g.

TagCoverage.kt
Unresolved reference:lowercase:98

CapabilityValue.java
package com.fasterxml.jackson.core does not exist

Tried jdk1.8.0_301 and jdk-15.0.1
Tried clearing Gradle caches folder
Tried fresh clone of serenity-core
Tried building from cmd prompt and IntelliJ IDE

"mvn build" seems ok

2 replies
Emre Baygül
@emrebaygul
Hello, anyone using aws device farm for mobile automation ? I use serenity framework
14 replies
anptv
@anptv

[Cannot run test with tag] I'm using serenity and serenity-cucumber6 version: 2.4.24
I added a tag for a feature file (ex: @color=red like https://johnfergusonsmart.com/running-serenity-bdd-tests-with-tags/)
then run test by: $ mvn clean verify -Dcucumber.options="--tags @color=red"

but this command runs all tests (include features that have not any tag)

If I run $ mvn clean verify -Dcucumber.filter.tags="@color=red", it runs only feature file that has tag @color=red.
But serenity report shows 0 test run. Please show me the way to run a specific feature file. Thanks in advance!

15 replies
philicia
@tirzahtoh_twitter
hi, is there any way serenityBDD can support running 3 browsers in parallel?
21 replies
Georgina Hall
@Iphiclus
Hi, I am currently using Serenity for reporting manual tests. I get all the step defs in the Terminal, which I don't need for the moment. I did see there was somewhere, where I can turn this off. But for the life of me now can't find the config. I have tried serenity.logging=QUIET but that doesn't work. Thanks
Sridhar S M
@sridhar131989
Hi All, Im trying to use Serenity with junit as a test suite. Using @RunWith(SerenityRunner.class) on multiple test classes like Test1, Test2, etc. I am able to run the tests but the report doesn't has index.html. Instead there are other html pages where I am able to see the individual test results. Can someone help me to run Serenity with junit as a complete suite so that I can see the test reports with index.html. Is there any useful link to follow please do share.Thanks in advance.
6 replies
John Ferguson Smart
@wakaleo
@/all If you find video training a useful learning tool, I've just released a 10+ hour training course on Core Serenity BDD Web Testing on Udemy: you can check it out here: https://www.udemy.com/course/serenity-bdd-web-testing/
5 replies
julianVillalobos
@julianVillalobos

Hi everyone.
I hope you are well.

I am working with screenplay pattern.

context:
this feature must fill a form with enough data, the table of examples is very saturated, so visually it does not look nice.

6 replies
image.png
image.png
so that that does not happen, it occurred to me to locate the data as follows:
image.png
Questions:
  1. what is the correct way to locate the information when there is a lot of data to enter?
  2. Can I use datatable to bring the data to the stepdefinitions with the screenplay pattern, and if it can, how should I do it? I am trying as in the following image:
image.png
julianVillalobos
@julianVillalobos
I am still starting in this profession, I would greatly appreciate your help.
Andreas Worm
@globalworming
Nice, @cliviu put a lot of effort into junit5 integration 🎉🎉🎉 serenity-bdd/serenity-core#2536
3 replies
Goraksha
@gorakshasabnis
Hi, hope you all are doing well. I was searching for a way to write CSV in serenity BDD. In documentation I can only find how to read data from CSV but not write. Any idea how can i write data in CSV ? Can someone please help?
4 replies
Thomas Knee
@chronicideas_gitlab
Hello, does anyone please know if there is any built-in support for Android Espresso in Serenity BDD, instead of using Appium ? Thanks
santglewee
@santglewee
Hi @globalworming . Would you be so kind and tell how can I run my Scenario in two browsers at the same time ?
I have a sh script to run it

Windows

environment=$1
echo "$environment"
case $environment in
browserstack)
gradle clean test -Dtags=smoketest -Dparallel.tests=2 -Dbrowserstack.url=$BROWSERSTACK -Dbrowserstack.os="Windows" -Dbrowserstack.os_version="10" -Dbrowserstack.browser="firefox" -Dbrowserstack.version="45"
gradle clean test -Dtags=smoketest -Dparallel.tests=2 -Dbrowserstack.url=$BROWSERSTACK -Dbrowserstack.os="Windows" -Dbrowserstack.os_version="10" -Dbrowserstack.browser="chrome" -Dbrowserstack.version="54"
gradle clean test -Dtags=smoketest -Dparallel.tests=2 -Dbrowserstack.url=$BROWSERSTACK -Dbrowserstack.os="Windows" -Dbrowserstack.os_version="10" -Dbrowserstack.browser="IE" -Dbrowserstack.version="11"
gradle clean test -Dtags=smoketest -Dparallel.tests=2 -Dbrowserstack.url=$BROWSERSTACK -Dbrowserstack.os="Windows" -Dbrowserstack.os_version="10" -Dbrowserstack.browser="Edge" -Dbrowserstack.version="13"
;;
web)
gradle clean test -Dtags=smoketest -Dwebdriver=chrome
gradle clean test -Dtags=smoketest -Dwebdriver=firefox
;;
esac
N KRISHNA
@nkrishna79_twitter
customDriver implementation: Can someone help me with an example repo or something for setting up a customDriver implementation using serenity appium cucumber java
i have tried my own implementation of custom driver but it doesn't work
Zoe Buck
@starbuck251
Is there somewhere that release notes are kept for each release since I am not seeing anything anything really on this page for what is new between releases? Are they kept elsewhere?: https://github.com/serenity-bdd/serenity-core/releases
philicia
@tirzahtoh_twitter
any one using serenityBDD with cucumber6? https://mvnrepository.com/artifact/net.serenity-bdd/serenity-cucumber6/2.3.2, when I add to my pom.xml I got this error: [ERROR] Errors:
[ERROR] CucumberTestSuite ? AbstractMethod Receiver class io.cucumber.junit.JUnitCucum...
[INFO]
[ERRO
7 replies
John Ferguson Smart
@wakaleo

Heads up - the "Effective UI Test Automation With Serenity BDD And Selenium" course is on special on Udemy for 5 days: https://www.udemy.com/course/serenity-bdd-web-testing/?couponCode=63F62ACABBCCB5E29E07

If you want to learn core Serenity, this course has heaps of details and insider-tips, and also gets regular updates with the latest features, so it's a good investment.

3 replies
Yunaz Gilang Ramadhan
@ygrip

Hi all, I am trying to upgrade using serenity with cucumber 6 to version 2.5.8. But when executing my scenario keeps failing, and getting this error :

org.openqa.selenium.NoSuchSessionException: Session ID is null. Using WebDriver after calling quit()?
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'XXXX', ip: '10.XXX.XX.XXX', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_181'
Driver info: driver.version: RemoteWebDriver

    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:125)
    at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:609)
    at org.openqa.selenium.remote.RemoteWebDriver.getScreenshotAs(RemoteWebDriver.java:295)
    at net.serenitybdd.core.photography.WebDriverScreenShooter.takeScreenshot(WebDriverScreenShooter.java:21)
    at net.serenitybdd.core.photography.PhotoSession.takeScreenshot(PhotoSession.java:50)
    at net.serenitybdd.core.photography.PhotoSessionBooking.andSaveToDirectory(PhotoSessionBooking.java:34)
    at net.thucydides.core.steps.BaseStepListener.screenshotFrom(BaseStepListener.java:1054)

oddly enough if I add this :
serenity.restart.browser.for.each=NEVER
in properties the test is running well.

is there any suggestion to solve this issue?

1 reply
anoopk1981
@anoopk1981
Hi..I am using serenity screenplay pattern. Is there a way to do soft assertions? I am using Ensure library too.
byakoshiki
@byakoshiki_twitter
Hello, I am trying to execute Serenity tests in Parallel with Cucumber 6, however even when i set threadCount and forkCount in fail safe plugin the tests run only in one thread. Any ideas?
1 reply
using latest serenity (2.6.0)
Emre Baygül
@emrebaygul
Hi, a test in my locale is running in 11 seconds. But the same test runs for 5 minutes on the selenium grid. Why might this be caused?
2 replies
Goraksha
@gorakshasabnis

I am running my test suite as below:
@RunWith(CucumberWithSerenity.class)
@CucumberOptions(
features = "classpath:features"
)
public class TestSuite {
}
& I am using gradle as a build tool. I tried maxParallelForks 4 in build.gradle but it didn't work.

test {
useJUnit()
maxParallelForks 4
}

I want my feature files to run in parallel. Can anyone please help me on how can i achieve that ?

juan2three
@juan2three
Has anyone used serenity along with Docker?
5 replies
Quick Man
@QuickMa06847734_twitter
I am trying to run two api endpoint tests that are almost identical but one runs fine and others is giving a Null Pointer exception:
I checked and both endpoints are correct but I don’t know why one is not working