Skip to content

Behavior driven development (BDD) approach to write automation test scripts to test web applications.

Notifications You must be signed in to change notification settings

lqthang2204/Selenium-with-cucumber

Repository files navigation

About this project

  • The project holds all automation tests for multi project

Why do I need this project?

This project is for multi browser (chrome, firefox, edge, safari)

  • This project will provide tests specific to performing various browser UI actions and verifications.

  • The project will provide use of the same steps for Web.

When and why would I need to modify this project?

Any QA or Developer can contribute to this project for valid acceptable scenarios as below:

  1. Add a new test or feature file of clubbing various tests.

  2. There is an error with an existing test and needs to be updated.

  3. There is missing documentation.

  4. Any other case that should be brought up to QA leads.

How do I setup IntelliJ?

Review the https://www.jetbrains.com/idea/download/#section=windows, which addresses questions such as:

  1. How do I import the code into IntelliJ?

  2. How do I check out and change GIT branches?

  3. What are environment variables and how to configure them for running tests?

How do I get the code, afresh?

  1. You can download code at https://github.com/lqthang2204/FrameworkAuto

  2. Clone this project to a working folder on your local machine. Follow https://github.com/lqthang2204/FrameworkAuto for cloning a repository.

Test execution

How do I run a automation test?

  1. VM options : -Dtimeout=120000 -DpageLoadTimeout=120000 -DstartMaximized=true and add more -Drun_unsafe_okhttp_client=true when network got issue Certificate

  2. Environment Variables: WEB_BROWSER=FIREFOX

How to run To run Selenide+Cucumber tests, just type from command line: mvn clean verify -Dcucumber.filter.tags=@example or Run all ferature mvn clean verify

How do I search for a feature file or a test?

For searching a specific feature, you can navigate along the path,

src => test => resources => features => FeatureName.feature

In the below image,

  1. Click on src

  2. Click on test

  3. Click on resources

  4. Click on features

    1. Select the desired feature you are looking for. A single feature file holds multiple tests for all platforms (Web) as per the requirement. Here Login.feature file is selected in point 4.

Understanding feature file, tests, and it’s tags

You can also use Ctrl+Shift+f on Windows and Cmd+Shift+f on Mac to search for a feature name, test name or a certain test tag.

Config to run

About

Behavior driven development (BDD) approach to write automation test scripts to test web applications.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published