Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 23 23:28

    wakaleo on master

    display URL in REST query repor… (compare)

  • Jan 23 23:28
    wakaleo closed #2372
  • Jan 23 20:16
    cliviu opened #2372
  • Jan 23 11:11
    fabianlinz edited #2337
  • Jan 22 19:27
    globalworming commented #2371
  • Jan 22 19:27
    globalworming closed #2371
  • Jan 22 18:18
    krishnapemmaraju commented #138
  • Jan 22 18:18
    wakaleo commented #138
  • Jan 22 18:15
    krishnapemmaraju commented #138
  • Jan 22 18:15
    krishnapemmaraju commented #138
  • Jan 22 18:14
    wakaleo commented #138
  • Jan 22 18:13
    krishnapemmaraju commented #138
  • Jan 22 18:11
    wakaleo commented #138
  • Jan 22 18:10
    krishnapemmaraju commented #138
  • Jan 22 18:06
    wakaleo commented #138
  • Jan 22 18:04
    krishnapemmaraju commented #138
  • Jan 22 18:03
    wakaleo commented #138
  • Jan 22 18:02
    krishnapemmaraju commented #138
  • Jan 22 18:02
    krishnapemmaraju commented #138
  • Jan 22 18:02
    wakaleo commented #138
ashasingh85
@ashasingh85
Hi all,
My test run well in debug mode but while running it through run mode it is failing with the element not found Exception. How should I resolve it, I have added the appropriate amount of wait as well.
Emre Baygül
@emrebaygul
Hi guys, How is parallel testing run in Serenity?
Andreas Worm
@globalworming
@ashasingh85 we would need to see the code and page but most likely you are waiting "wrong" or you page has the element, then removes it again before actually rendering the element you want
@emrebaygul depends on if you use cucumber or not and maven or gradle. plain junit with maven is handled with surefire, just google "surefire run parallel"
philicia
@tirzahtoh_twitter
This message was deleted
ashasingh85
@ashasingh85
@globalworming I did not get this response - "you are waiting "wrong" or you page has the element, then removes it again before actually rendering the element you want". Could you please little more.
explain*
Emre Baygül
@emrebaygul
@globalworming I will use cucumber. How can I do ?
Bhala
@Bhala1987
I'm getting the following exception, can someone guide to eradicate this:
net.thucydides.core.model.TestOutcome getTagsUsingTagProviders SEVERE: Tag provider net.thucydides.core.requirements.FileSystemRequirementsTagProvider@1efce9e failure java.lang.NullPointerException at net.thucydides.core.requirements.model.cucumber.CucumberParser.loadCucumberFeatures(CucumberParser.java:106) at net.thucydides.core.requirements.model.cucumber.CucumberParser.loadFeature(CucumberParser.java:72) at net.thucydides.core.requirements.model.cucumber.CucumberParser.loadFeatureNarrative(CucumberParser.java:136) at net.thucydides.core.requirements.FileSystemRequirementsTagProvider.loadFromFeatureFile(FileSystemRequirementsTagProvider.java:624) at net.thucydides.core.requirements.FileSystemRequirementsTagProvider.readRequirementsFromStoryOrFeatureFile(FileSystemRequirementsTagProvider.java:573) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) at net.thucydides.core.requirements.FileSystemRequirementsTagProvider.capabilitiesAndStoriesIn(FileSystemRequirementsTagProvider.java:197) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) at java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1556) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) at net.thucydides.core.requirements.FileSystemRequirementsTagProvider.getRequirements(FileSystemRequirementsTagProvider.java:179) at net.thucydides.core.requirements.FileSystemRequirementsTagProvider.requirementWithMatchingFeatureFile(FileSystemRequirementsTagProvider.java:254) at net.thucydides.core.requirements.FileSystemRequirementsTagProvider.getTagsFor(FileSystemRequirementsTagProvider.java:226) at net.thucydides.core.model.TestOutcome.getTagsUsingTagProviders(TestOutcome.java:1877) at net.thucydides.core.model.TestOutcome.getTags(TestOutcome.java:1854) at net.thucydides.core.model.TestOutcome.addTags(TestOutcome.java:1907) at net.thucydides.core.steps.StepEventBus.addTagsToCurrentTest(StepEventBus.java:645) at io.cucumber.core.plugin.SerenityReporter.startScenario(SerenityReporter.java:579) at io.cucumber.core.plugin.SerenityReporter.startOfScenarioLifeCycle(SerenityReporter.java:569) at io.cucumber.core.plugin.SerenityReporter.handleTestCaseStarted(SerenityReporter.java:242) at io.cucumber.core.eventbus.AbstractEventPublisher.send(AbstractEventPublisher.java:45) at io.cucumber.core.eventbus.AbstractEventBus.send(AbstractEventBus.java:9) at io.cucumber.core.runtime.ThreadLocalRunnerSupplier$SynchronizedEventBus.send(ThreadLocalRunnerSupplier.java:100) at io.cucumber.core.runtime.ThreadLocalRunnerSupplier$LocalEventBus.send(ThreadLocalRunnerSupplier.java:68) at io.cucumber.core.runner.TestCase.run(TestCase.java:43) at io.cucumber.core.runner.Runner.runPickle(Runner.java:66) at io.cucumber.junit.PickleRunners$NoStepDescriptions.run(PickleRunners.java:149) at io.cucumber.junit.FeatureRunner.runChild(FeatureRunner.java:83) at io.cucumber.junit.FeatureRunner.runChild(FeatureRunner.java:24) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329
3 replies
While running the whole test suite as maven cucumber serenity
arvindjosh08
@arvindjosh08
Hi....when i am doing gradle clean test -Denvironment=staging, it is always picking up the default environment varibles defined in serenity.conf file
1 reply
is there someone who can help
?
philicia
@tirzahtoh_twitter
this java command did not generate the index.html, can I know what am I missing here? java -Dcucumber.filter.tags=@app -Dcucumber.features=classpath:features -Dcucumber.glue=classpath:demo.stepdefinitions -Dwebdriver.driver=appium -Dappium.screenshots.dir=$DEVICEFARM_SCREENSHOT_PATH -Dappium.autoAcceptAlerts=true -Dappium.platformName=iOS -Dappium.app=$DEVICEFARM_APP_PATH org.testng.TestNG -junit -testjar *-tests.jar -d $DEVICEFARM_LOG_DIR/test-output -verbose 10
#GreenCardEquality #YESS386 #S386
@seenug_twitter

Hi - I am trying to get a RemoteWebDriver session to launch a new session on PerfectoMobile cloud and I keep getting error message as "Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.". I checked the URLs, security info and other capabilities and everything looks fine.. Appreciate if you can assist.. Pasting the ProviderClass details here:
import java.net.URL;
import java.util.Iterator;

import org.openqa.selenium.Platform;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;

import net.thucydides.core.util.EnvironmentVariables;
import net.thucydides.core.util.SystemEnvironmentVariables;
import net.thucydides.core.webdriver.DriverSource;

public class PerfectoSerenityDriver implements DriverSource {

@Override
public WebDriver newDriver() {
    System.out.println("Initiating perfecto driver");
    EnvironmentVariables environmentVariables = SystemEnvironmentVariables.createEnvironmentVariables();


    try {
        DesiredCapabilities capabilities = new DesiredCapabilities("chrome", "", Platform.ANY);
        String host = "xxx.perfectomobile.com";
        String token = "test token code replaced with actual key";
        capabilities.setCapability("securityToken", token);
        capabilities.setCapability("platformName", "Windows");
        capabilities.setCapability("platformVersion", "10");
        capabilities.setCapability("browserName", "chrome");
        capabilities.setCapability("browserVersion", "87");
        capabilities.setCapability("location", "US East");
        capabilities.setCapability("resolution", "1280x1024");
        System.out.println("Capabilities set: " + capabilities);
       WebDriver driver = new RemoteWebDriver(new URL("https://" + host + "/nexperience/perfectomobile/wd/hub/fast"), capabilities);
    System.out.println("driver got initiated");
       return driver;
    }
    catch(Exception e){
        System.out.println("Problem initiating remote web session " + e.getMessage());
        return null;
    }
}

@Override

public boolean takesScreenshots() {
return true;
}
}

Error exception:
Problem initiating remote web session Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'xxxxxxx', ip: 'yyyyyyy', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_191'
Driver info: driver.version: PerfectoSerenityDriver
Given User login into SFDC as ADMIN # starter.stepdefinitions.commonStepDefination.user_login_into_SFDC_as_ADMIN()
net.serenitybdd.core.exceptions.SerenityManagedException
at org.junit.Assert.fail(Assert.java:86)
at org.junit.Assert.fail(Assert.java:95)
at wfm_PageObjects.LoginPage.loginSalesforce(LoginPage.java:60)
at wfm_PageObjects.LoginPage$ByteBuddy$wm46uLWS.loginSalesforce$accessor$v6mXo8Ji(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.thucydides.core.steps.BaseMethodRunner.invokeMethod(BaseMethodRunner.java:18)
at net.thucydides.core.steps.NormalMethodRunner.invokeMethodAndNotifyFailures(NormalMethodRunner.java:18)
at net.thucydides.core.steps.StepInterceptor.runNormalMethod(StepInterceptor.java:394)
at net.thucydides.core.steps.StepInterceptor.testStepResult(StepInterceptor.java:179)
at net.thucydides.core.steps.StepInterceptor.intercept(StepInterceptor.java:77)
at wfm_PageObjects.LoginPage$ByteBuddy$wm46uLWS.loginSalesforce(Unknown Source)
at starter.stepdefinitions.commonStepDefination.user_login_into_SFDC_as_ADMIN(commonStepDefination.java:48)

Andreas Worm
@globalworming
@ashasingh85 you are either not waiting long enough or the element you are expecting is there at one point, so the wait stops, then it's removed again and comes up later again. hard to tell without seeing the page
#GreenCardEquality #YESS386 #S386
@seenug_twitter

Hi - I am trying to get a RemoteWebDriver session to launch a new session on PerfectoMobile cloud and I keep getting error message as "Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.". I checked the URLs, security info and other capabilities and everything looks fine.. Appreciate if you can assist.. Pasting the ProviderClass details here:
import java.net.URL;
import java.util.Iterator;

import org.openqa.selenium.Platform;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.remote.RemoteWebDriver;

import net.thucydides.core.util.EnvironmentVariables;
import net.thucydides.core.util.SystemEnvironmentVariables;
import net.thucydides.core.webdriver.DriverSource;

public class PerfectoSerenityDriver implements DriverSource {

@Override
public WebDriver newDriver() {
    System.out.println("Initiating perfecto driver");
    EnvironmentVariables environmentVariables = SystemEnvironmentVariables.createEnvironmentVariables();


    try {
        DesiredCapabilities capabilities = new DesiredCapabilities("chrome", "", Platform.ANY);
        String host = "xxx.perfectomobile.com";
        String token = "test token code replaced with actual key";
        capabilities.setCapability("securityToken", token);
        capabilities.setCapability("platformName", "Windows");
        capabilities.setCapability("platformVersion", "10");
        capabilities.setCapability("browserName", "chrome");
        capabilities.setCapability("browserVersion", "87");
        capabilities.setCapability("location", "US East");
        capabilities.setCapability("resolution", "1280x1024");
        System.out.println("Capabilities set: " + capabilities);
       WebDriver driver = new RemoteWebDriver(new URL("https://" + host + "/nexperience/perfectomobile/wd/hub/fast"), capabilities);
    System.out.println("driver got initiated");
       return driver;
    }
    catch(Exception e){
        System.out.println("Problem initiating remote web session " + e.getMessage());
        return null;
    }
}

@Override

public boolean takesScreenshots() {
return true;
}
}

Error exception:
Problem initiating remote web session Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'xxxxxxx', ip: 'yyyyyyy', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_191'
Driver info: driver.version: PerfectoSerenityDriver
Given User login into SFDC as ADMIN # starter.stepdefinitions.commonStepDefination.user_login_into_SFDC_as_ADMIN()
net.serenitybdd.core.exceptions.SerenityManagedException
at org.junit.Assert.fail(Assert.java:86)
at org.junit.Assert.fail(Assert.java:95)
at wfm_PageObjects.LoginPage.loginSalesforce(LoginPage.java:60)
at wfm_PageObjects.LoginPage$ByteBuddy$wm46uLWS.loginSalesforce$accessor$v6mXo8Ji(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at net.thucydides.core.steps.BaseMethodRunner.invokeMethod(BaseMethodRunner.java:18)
at net.thucydides.core.steps.NormalMethodRunner.invokeMethodAndNotifyFailures(NormalMethodRunner.java:18)
at net.thucydides.core.steps.StepInterceptor.runNormalMethod(StepInterceptor.java:394)
at net.thucydides.core.steps.StepInterceptor.testStepResult(StepInterceptor.java:179)
at net.thucydides.core.steps.StepInterceptor.intercept(StepInterceptor.java:77)

@wakaleo @globalworming - can you please assist?

2 replies
philicia
@tirzahtoh_twitter
can I know the java command to generate serenityBDD report? the following java has missing index.html java -Dserenity:aggregrate -Dserenity.outputDirectory=target/site/serenity -Dcucumber.filter.tags=@app -Dcucumber.features=classpath:features -Dcucumber.glue=classpath:demo.stepdefinitions -Dwebdriver.driver=appium -Dappium.screenshots.dir=$DEVICEFARM_SCREENSHOT_PATH -Dappium.autoAcceptAlerts=true -Dappium.platformName=$DEVICEFARM_DEVICE_PLATFORM_NAME -Dappium.app=$DEVICEFARM_APP_PATH org.testng.TestNG -junit -testjar *-tests.jar -d $DEVICEFARM_LOG_DIR/test-output -verbose 10
4 replies
Emre Baygül
@emrebaygul
Hi guys, I want to run tests in parallel with serenity Freamwork but I'm getting an error. Can you help me please ?
3 replies
Saikat Barua
@SaikatDEV
@wakaleo @here I am using the latest versions of serenity as below:
<serenity.version>2.3.10</serenity.version> <serenity.maven.version>2.3.10</serenity.maven.version> <serenity.cucumber.version>2.3.10</serenity.cucumber.version> As well using cucumber 6 with dependency as : <dependency> <groupId>net.serenity-bdd</groupId> <artifactId>serenity-cucumber6</artifactId> <version>${serenity.cucumber.version}</version> <scope>test</scope> </dependency> However, if i use cucumber 4 and up, Eclipse cant navigate feature to stepdef using F3 on keyboard. And this is a known issue for cucumber 4 and up as https://github.com/cucumber/cucumber-eclipse/issues/372. Can you please help me which lower compatible cucumber version i can use with those serenity versions. And other dependencies i needed to add? So my eclipse can find step def for cucumber steps.
1 reply
mony
@munna73
Hi, I am using below versions of Serenity with Cucumber published . serenity-core serenity-maven-plugin serenity-cucumber6 Cucumber
2.3.4 2.3.4 2.3.4 6.6.0 after completing my test run the serenity-aggregate report generation is taking a lot of time.Did any one face similar issue..? what is the resolution for this..? Some times it takes 15 minutes after the tests are complete to generate report.
mony
@munna73
All, @wakeleo, If any one has been successful in running serenity web tests in parallel using latest release with cucumber 6, can you please share your thoughts.I am interested inhowmaony nodes you have on selenium gr0d, your setup and how many tests you were able to run in parallel, were your tests flaky or they ran fine with out any issues. Appreciate any responses. I have around 500 tests and trying to reduce execution time.
1 reply
Saikat Barua
@SaikatDEV
@globalworming I am using the latest versions of serenity as below:
<serenity.version>2.3.10</serenity.version> <serenity.maven.version>2.3.10</serenity.maven.version> <serenity.cucumber.version>2.3.10</serenity.cucumber.version> As well using cucumber 6 with dependency as : <dependency> <groupId>net.serenity-bdd</groupId> <artifactId>serenity-cucumber6</artifactId> <version>${serenity.cucumber.version}</version> <scope>test</scope> </dependency> However, if i use cucumber 4 and up, Eclipse cant navigate feature to stepdef using F3 on keyboard. And this is a known issue for cucumber 4 and up as cucumber/cucumber-eclipse#372 Can you please help me which lower compatible cucumber version i can use with those serenity versions. And other dependencies i needed to add? So my eclipse can find step def for cucumber steps.
1 reply
philicia
@tirzahtoh_twitter
what is the java command option for the mvn serenity:aggregate?
5 replies
Andreas Worm
@globalworming
@dimitarVladov @munna73 @emrebaygul
i can confirm that you can run multiple feature files in parallel or (maybe and, didn't test) run multiple cucumber suites in parallel. running with batch parameters also works.. get in touch if you need help
Andreas Worm
@globalworming
@ricardorlg-aval regarding running from jar, just packaging a test-jar with dependencies should be fine and then using the failsafe plugin https://stackoverflow.com/a/17061755
so you would have on test sources project and then a test running project
mony
@munna73
@globalworming I tried running multiple feature files in parallel, I have used following the pom file under configuration
<parallel>classes</parallel>
<parallel>methods</parallel>
<useUnlimitedThreads>true</useUnlimitedThreads>; I ran only 2 tests using mvn clean verify -Dcucumber.filter.tags="@test1 or @test2" . All the time only one test has passed . Another test has failed. I ran several times, some times test1 passes, some times test2 passes. I have different errors at different times . 1) No Such element exception 2)Stale element exception 3) net.thucydides.core.webdriver.DriverConfigurationError:could not instantiate class org.openqa.selenium.chrome.ChromeDriver. I get 3 different errors 3 times. I tried on local, on selenium Grid. Note: Tests are web tests. I can try running in batches , are there any instructions for that.
4 replies
#GreenCardEquality #YESS386 #S386
@seenug_twitter

Hello All and @globalworming @wakaleo @thePantz -
I have been trying for awhile to launch a session on PerfectoMobile cloud, but I keep getting error at RemoteWebDriver line as "Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure."
If I use the same capabilities in a simple Java class, it is able to launch the remote session on PerfectoMobile cloud.
Can someone please help me where the issue could be?
My pom.xml file has all latest version of serenity and cucumber

serenity.properties file has:
webdriver.driver=provided
webdriver.provided.type=mydriver
webdriver.provided.mydriver=Utility.PerfectoSerenityDriver
serenity.driver.capabilities=mydriver

Jonesh Sharma
@jonesh66
Hello, how do I set path to the chrome executable on bitbucket pipelines? Whenever I run the UI tests locally, I don’t have to specify it (serenity auto-detects my chrome browser perhaps) but when I run the same on bitbucket pipelines, I need to provide a driver executable. I have gone through some resoures and set webdriver.chrome.driver = /usr/bin/google-chrome in serenity.properties. No success. Any help will be appreciated
1 reply
mahendra j
@gitmaster2020_gitlab
iam trying to pass value1 from serenity.conf file but value1 is not picked up can anyone help.
@TestData
public static Collection<Object[]> RestData() {
return Arrays.asList(new Object[][]{
{"name", "key", "intent",value1},
});
}
mahendra j
@gitmaster2020_gitlab
@globalworming @wakaleo iam trying to pass value1 from serenity.conf file for below TestData but value1 is not picked up can you help
@TestData
public static Collection<Object[]> RestData() {
return Arrays.asList(new Object[][]{
{"name", "key", "intent",value1},
});
}
rkochubei
@romanua
Guys hi, could you please take a look for some reason in the new serenity version i'm getting error with the deserializing xml files by rest assured
groovy.xml.XmlUtil.serialize(Lgroovy/xml/slurpersupport/GPathResult;)Ljava/lang/String;
I'm using the latest rest assured version 4.3.3 and serenity 2.3.12
When i'm using serenity version 2.3.4 i'm not getting this error.
Where can i see release notes changes to check what was changed?
2 replies
ChrisVanBael
@ChrisVanBael
Is there some sort of library to parse log files? I want to verify if warnings or error are being logged.
3 replies
philicia
@tirzahtoh_twitter
Hi
Emre Baygül
@emrebaygul
Hi guys, When I upgrade the version to 2.3.12, setpdef. The methods in the class are not defined in the feature file. Can you help me ?
anoopk1981
@anoopk1981

Hi..When I upgraded to 2.3.12 , i don't see the colors in the test summary section. In previous versions each line below was colored differently which I felt looked good.

[INFO] SERENITY TESTS : SUCCESS
[INFO] -----------------------------------------
[INFO] | Tests executed | 2
[INFO] | Tests passed | 2
[INFO] | Tests failed | 0
[INFO] | Tests with errors | 0
[INFO] | Tests compromised | 0
[INFO] | Tests pending | 0
[INFO] | Tests ignored/skipped | 0
[INFO] ------------------------ | --------------
[INFO] | Total Duration | 37s 714ms
[INFO] | Fastest test took | 12s 555ms
[INFO] | Slowest test took | 25s 159ms
[INFO] -----------------------------------------

1 reply
anoopk1981
@anoopk1981
Hi..This question is more about intellij editor. I use serenity and cucumber and my step definitions are in a jar file. I am able to run the tests as expected but intellij is not resolving the step definitions. It says the steps are undefined but the tests actually run.
5 replies
ashasingh85
@ashasingh85
Hi All, I am running the testing using excel but my test are failing in the fourth iteration. I have debugged it and got to know that its entering the value in the field and immediately deleting and then test fails. Any idea on how to resolve.
1 reply
scaddenp
@scaddenp
Oddity with timeout. Debugging a test and notice:
element.withTimeoutOf(Duration.ofSeconds(15L)).waitUntilVisible() in fact waits for a very long time (minutes). Any ideas? What I am expecting is the it will wait at most 15sec for element to become visible. Am I misconstruing how this is supposed to work?
5 replies
scaddenp
@scaddenp

Another more minor issue. Doing it old fashioned way (no screenplay). Feature look like:
Scenario: Illegal syntax entered into search box
And Producing oil & gas fields is the search layer
And he enters "'Cardiff'" into search box
Then he sees error alert message

The step for enter text into searchbox is:
@Step("enter search layer text {0}")
public void searchLayerText(String searchText) {
WebElementFacade searchBox = find(ByAngular.model("mc.query.search.text"));
searchBox.typeAndEnter(searchText);
}
And the step for checking that an alert has happened is:
@Step("Wait for alert")
public Boolean alertPresent() {
try {
waitFor(ExpectedConditions.alertIsPresent());
return true;
} catch (Exception e) {
System.out.println(e.getMessage());
return false;
}
}
This does work, but I notice in logs that I get:
org.openqa.selenium.UnhandledAlertException:
unexpected alert open:
after entering the search text which implies that I need to set up expectation of the alert in advance???

2 replies
anoopk1981
@anoopk1981
Hi..I am using Cucumber + Serenity. I have to run my tests on my client's environment that has no browser installed. Is there any browser that I can package as part of the code and that way it can be ran on the client's machine without installing a browser on it ? Also there is no docker support available on client environment.
2 replies
philicia
@tirzahtoh_twitter
how can I use the javascript executor to call AsyncStorage.getItem in serenityBDD? can I have an example?
mony
@munna73
@All, i upgraded yo latest version 2.3.12 , On my local when i used 1) mvn clean verify -Dcucumber.Filter.tags=“@REGBATCH1 or @ REGBATCH2” 2) mvn clean verify -Dcucumber.Filter.tags=“ @ REGBATCH3” it works fine. When i run the same on Bamboo CI serever which is linux machibe cucumber is unable to find any tests with the tags specified in filter tags , i tried specifying just one tag and using or for more than one tag. When i reviewed logs on CI server, cucumber when parsing the tags is unable to find tags specifued . But same test work fine on local windows machine. I am not sure what tge issue might be on CI machine. Did any one excute tgeirvtests fine on CI unix machines.
Dmitriy Kapeliukh
@DmitriyKapeliukh
Could someone help me to define my project properties(urls, keys, etc) in someplace? Not an environment properties, its a configs for my tets. The is in Serenity some property or config file where I could store my configs?
3 replies
Kyrie Irving
@mnajibb_twitter
Hi guys, do anyone have experience in parsing serenity reports as result of mobile automation test in circleCI ?
4 replies
dipakbachhav
@dipakbachhav
@here: Can someone please help me to sort out my issue to execute cucumber scenarios in sequential order?
Andreas Worm
@globalworming
@dipakbachhav what issues do you have exactly?
Andreas Worm
@globalworming
@all cucumber users: does anyone have experienced scenarios in a feature file not running in the right order (from top to bottom). Given you don't run in parallel..
3 replies
Heidi
@coetzeehei
Hello, I am a bit new the Java/Selenium/Cucumber world. In the configurations in the one module, we have to put net.serenitybdd.cucumber.cli.Main as the main class. but IntelliJ is giving the message that this class cannot be found. How do I fix this?
1 reply