thucydides | use WebDriver-based unit | Functional Testing library

 by   thucydides-webtests Java Version: Current License: Non-SPDX

kandi X-RAY | thucydides Summary

kandi X-RAY | thucydides Summary

thucydides is a Java library typically used in Testing, Functional Testing, Selenium applications. thucydides has no bugs, it has no vulnerabilities, it has build file available and it has high support. However thucydides has a Non-SPDX License. You can download it from GitHub, Maven.

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

            kandi-support Support

              thucydides has a highly active ecosystem.
              It has 263 star(s) with 106 fork(s). There are 61 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 4 open issues and 41 have been closed. On average issues are closed in 34 days. There are 22 open pull requests and 0 closed requests.
              It has a positive sentiment in the developer community.
              The latest version of thucydides is current.

            kandi-Quality Quality

              thucydides has no bugs reported.

            kandi-Security Security

              thucydides has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              thucydides has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              thucydides releases are not available. You will need to build from source code and install.
              Deployable package is available in Maven.
              Build file is available. You can build the component from source.

            Top functions reviewed by kandi - BETA

            kandi has reviewed thucydides and discovered the below as its top functions. This is intended to give you an instant insight into thucydides implemented functionality, and help decide if they suit your requirements.
            • 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
            Get all kandi verified functions for this library.

            thucydides Key Features

            No Key Features are available at this moment for thucydides.

            thucydides Examples and Code Snippets

            No Code Snippets are available at this moment for thucydides.

            Community Discussions

            QUESTION

            Spring Boot + Serenity + Cucumber for Rest API Integration Test
            Asked 2020-Oct-02 at 04:39

            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:39

            This 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

            1. cucumber task

            Source https://stackoverflow.com/questions/63394861

            QUESTION

            Failed to generate .log file, but output console is there
            Asked 2020-Sep-25 at 08:59

            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:08

            A ConsoleAppender won't write to a file, and will just ignore the file configuration element under it. Instead, you should use a FileAppender:

            Source https://stackoverflow.com/questions/64046227

            QUESTION

            Error: Could not instantiate class org.openqa.selenium.chrome.ChromeDriver
            Asked 2020-Mar-09 at 19:08

            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:08

            I 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.

            Source https://stackoverflow.com/questions/49324567

            QUESTION

            Browser does not open in Jenkins while executing selenium test
            Asked 2020-Feb-28 at 08:44

            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:44

            For 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

            Source https://stackoverflow.com/questions/55359513

            QUESTION

            Modify remote driver URL at runtime
            Asked 2019-Sep-16 at 14:34

            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:34

            Faced recently the same issue, but was lucky enough to find a solution:

            Source https://stackoverflow.com/questions/57654335

            QUESTION

            Serenity/Allure - Automated tests are running twice
            Asked 2019-May-21 at 07:37

            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:25

            The root cause was using both failsafe and surefire plugins, just had to remove one and now the tests only execute once.

            Source https://stackoverflow.com/questions/49918375

            QUESTION

            In serenity BDD ,How to fix this problem?
            Asked 2019-Apr-25 at 20:38

            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).

            Source https://stackoverflow.com/questions/55841432

            QUESTION

            net.thucydides.core.webdriver.UnsupportedDriverException: Could not instantiate class org.openqa.selenium.firefox.FirefoxDriver
            Asked 2019-Mar-26 at 19:44

            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:44
            *********POSSIBLY A BUG ?????**

            Source https://stackoverflow.com/questions/55302566

            QUESTION

            How to return a value from an Interaction
            Asked 2019-Feb-03 at 04:27

            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:27

            In 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:

            Source https://stackoverflow.com/questions/54495073

            QUESTION

            How to solve net.thucydides.core.webdriver.exceptions.ElementShouldBeVisibleException- selenium
            Asked 2018-Dec-17 at 16:46

            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:34

            As 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:

            Source https://stackoverflow.com/questions/52020254

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install thucydides

            You can download it from GitHub, Maven.
            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

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/thucydides-webtests/thucydides.git

          • CLI

            gh repo clone thucydides-webtests/thucydides

          • sshUrl

            git@github.com:thucydides-webtests/thucydides.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link