thucydides | use WebDriver-based unit | Functional Testing library
kandi X-RAY | thucydides Summary
kandi X-RAY | thucydides Summary
Thucydides is a tool that lets you use WebDriver-based unit or BDD tests to write more flexible and more reusable WebDriver-based tests, and also to generate documentation about your acceptance tests, including a narrative description of test, along with the corresponding screen shots, and also high-level summaries and aggregations of the test results
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Runs the given method
- Fire notifications
- Returns the list of test tags used by this environment
- Resets this builder to its initial state
- Initialize plural form
- Adds the IR regularizations
- Run the test suite
- Build the steps and configure listeners
- Executes the report
- Get classpath
- Creates a new file
- Build the testcases from the database
- Import external test reports from source
- Returns the next page of the given type
- Parse an assertion
- Intersects a line with another line
- Extract the arguments from a title line
- Serialize the given class
- Runs until the condition is satisfied or failed
- Initializes the required fields in the test case
- Gets the first embedded embedded table
- Initialize fields in the test case
- Types an element and tabs
- Run the given steps
- Extracts the image from an input stream
- Injects a test scenario
thucydides Key Features
thucydides Examples and Code Snippets
Community Discussions
Trending Discussions on thucydides
QUESTION
I am using gradle project and I have followed the CucumberSerenity with Spring Boot integration approach by using this link: https://medium.com/@manu.me/bdd-simplified-with-springboot-b56ffdcadb2b When i run the gradle task cucumber, I get below error message
...ANSWER
Answered 2020-Oct-02 at 04:39This happens when classes aren't available at runtime.
You are using custom sourcesets i.e. applicationTest
which is not configured properly to run cucumber task.
One solution is to change your class path in cucumber task and include the main source sets to use applicationTest classes
- cucumber task
QUESTION
I have tried to implement logs in the Serenity Cucumber framework and it prints logs in the console but doesn't generate a .log file.
This is logback-test.xml
under src/test/resources
ANSWER
Answered 2020-Sep-24 at 13:08A ConsoleAppender
won't write to a file, and will just ignore the file
configuration element under it. Instead, you should use a FileAppender
:
QUESTION
this error comes out when running the test I do not know how to solve it thanks for your help
they do not run in browser
Could not instantiate new WebDriver instance of type class org.openqa.selenium.chrome.ChromeDriver
package com.automation.correo;
...ANSWER
Answered 2020-Mar-09 at 19:08I had same issue during the first run of serenity-cucumber4-smoketests. The problem was in the chromedriver.exe version located in the skeleton. After I replaced it to a new one supported by my company, the test had passed. But same issue might happen if the path to the driver is not selected correctly.
QUESTION
I am trying to start a job in Jenkins
, which executes a Selenium
script. It was working fine for a few months, but today it is just stopped working for an unknown reason. This job starts the first test as always and then stucks. I am not getting any errors, just nothing happens after this:
ANSWER
Answered 2020-Feb-28 at 08:44For Windows:
I would like to add when Jenkins shall show running automation test cases in browser.
First, you should not install Jenkins as windows application. Even if you do so but Do not enable the checkbox "Allow service to interact with desktop" under Log On Tab, then Jenkins would not be showing running test cases in browser. where to find this tab -
1) In windows, service select the service of Jenkins
2) Open properties window of the service -> Logon-> enable the checkbox "Allow service to interact with desktop"
3) you have to toggle the NoInteractiveServices registry key
4) After then you should reboot the service, Jenkins.
Best Approach You shall deploy Jenkins from a war file as follows:
1) Download Jenkins.war from Jenkins's official site. (If already installed just go to the folder where Jenkins has installed default path as "C:\Program Files (x86)\Jenkins\")
2) Deploy it by the command prompt : java -jar {directoryOfJenkinsFileInWindows}/jenkins.war
3) Now you can access Jenkins administration on http://localhost:8080
QUESTION
I have a project which is based on the serenity-bdd/serenity-cucumber-starter project. I'm using test-containers to start a couple of Docker containers as well as a Selenium Grid
container to run the test against.
ANSWER
Answered 2019-Sep-16 at 14:34Faced recently the same issue, but was lucky enough to find a solution:
QUESTION
I've installed serenity-bdd and allure for report generation. I want to have both serenity and allure reports, But I noticed the test suite is executing twice.
Serenity: http://www.thucydides.info/docs/serenity/
Allure: https://github.com/allure-framework/allure2
I'm running the tests and report generation with:
...ANSWER
Answered 2018-Apr-19 at 11:25The root cause was using both failsafe and surefire plugins, just had to remove one and now the tests only execute once.
QUESTION
In serenity BDD, throw an exception while running the chrome browser.
Not found a valid solution.
...ANSWER
Answered 2019-Apr-25 at 20:38"Expected enabled element was not enabled" - the element you are trying to interact with is not enabled (it might be a hidden element, or hidden by another element, or not the element you think it is).
QUESTION
I am using mac mojave 10.14.3, JDK 1.8, Serenity core 2.0.40 (latest) to develop my test cases. They all run perfectly well either with Chrome ver. 73(100% of time) or Firefox ver. 65.0(99% of time) on my local mac system. Our Jenkins is running on Redhat linux with no GUI. We installed Firefox browser( Firefox version 60.5.0 probably the latest available) since Chrome is not supported/ unavailable for RH Linux. When I merged code and ask my admin to run the git branch on Jenkins, I always get errors.
I have these in my project code itself: Selenium-java :3.141.59
Selenium-api: 3.141.59
Selenium-server: 3.141.59
geckodriver:0.24.0
chromedriver:2.45.615355
Today after every test running 100% pass on my local Mac system, ran on Jenkins(RH Linux box) I am getting this error (ran 2 times).
...ANSWER
Answered 2019-Mar-26 at 19:44QUESTION
I have a screenplay interaction class that makes a select from a postgres DB. I would like to know how to return the result set using this screenplay pattern.
What I have tried by now is changing the returned type on the method "public void performAs(T actor)" to "public ResultSet performAs(T actor)"
But then I have the following problems:
...ANSWER
Answered 2019-Feb-03 at 04:27In the Screenplay pattern, interactions are not meant to return values, just to perform some action on the system under test. You use Questions for querying the state of the system. It would be easier if you shared the overall problem you are trying to solve, but since your example is about querying users, you could have a test that checks that you can add a user to the system via a UI admin page:
QUESTION
I am automating a page where I must choose two prices, when choosing the first price the page goes down the scroll and that's where the test fails, I get the error, I've already tried with explicit waits and thread.sleep but it does not work. any ideas?
this is the error:
net.thucydides.core.webdriver.exceptions.ElementShouldBeVisibleException: Expected condition failed: waiting for [[RemoteWebDriver: chrome on XP (e64b73bc32012e0506c1b2816cbc2ac2)] -> xpath: //div[@id='divAvailabilityOut']//span[@data-bind='html: Price']] to be displayed (tried for 50 second(s) with 100 milliseconds interval)
and this is my code:
...ANSWER
Answered 2018-Aug-26 at 09:34As I understood you try to find and select ticket with max price.
Here code sample to find and select max price for From and To figths:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install thucydides
You can use thucydides like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the thucydides component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page