Skip to content

Page Object Model based Test Automation Framework with Cucumber BDD Framework and Selenium WebDriver for test UI based Apps 🚀

Notifications You must be signed in to change notification settings

qaa-demo/cucumber-selenium-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cucumber/Selenium/JavaScript Demo and Intro Training

Cucumber/Selenium/JavaScript Demo and Intro Training

Welcome to the Cucumber/Selenium/JavaScript Demo and Intro Training repository! This guide will help you get started with the project and provide you with instructions on how to set up and use the demo.

Prerequisites

Before you begin, make sure you have the following installed on your local machine:

  • Node.js: Ensure you have Node.js installed. You can download it from nodejs.org.

Note

Node.js is a cross-platform, open-source JavaScript runtime environment that can run on Windows, Linux, Unix, macOS, and more. Node.js runs on the V8 JavaScript engine, and executes JavaScript code outside a web browser. Node.js lets developers use JavaScript to write command line tools and for server-side scripting.

  • Git: Git is required for cloning the project. Install Git from git-scm.com.

Note

Git is a distributed version control system that tracks versions of files. It is often used to control source code by programmers who are developing software collaboratively.

  • Visual Studio Code (VSCode): A popular code editor. Download it from code.visualstudio.com.

  • GitHub Account: A GitHub account is required to clone the repository and manage your project. You can sign up for a free account at github.com.

Note

GitHub is a developer platform that allows developers to create, store, manage and share their code. It uses Git software, providing the distributed version control of Git plus access control, bug tracking, software feature requests, task management, continuous integration, and wikis for every project.

Complete git/GitHub Intro (optional)

Note

The basic training materials on git/GitHub can be found in GIT-GITHUB.md. Open this file to get started with Git/GitHub Introduction if required.

Clone the Project

  1. Open your terminal (Command Prompt, PowerShell, or any terminal of your choice).

  2. Clone the repository to your local machine using the following command:

    git clone [replace with this repo location]

    If prompted if you trust the author, select 'Yes, I trust the author' button in VSCode

  3. Navigate into the project directory:

    cd [replace with your folder location on your pc]

Install Dependencies

  1. Install the project dependencies using npm:

    npm install

    This command will read the package.json file and install all required packages, including Cucumber and Selenium.

Complete Selenium/Cucumber Intro Training

Note

The training materials are stored in INTRO.md. Open this file to get started with the introductory tutorial.Follow the instructions in INTRO.md to complete the intro tutorial. This will guide you through the basics of using Cucumber and Selenium with JavaScript.

Create a New Project

  1. Select a Web App: Choose a web application you want to automate. This could be an internal tool, a sample app, or any other web-based application.

  2. Create a New Project: Based on what you learned in the intro tutorial, create a new project for automating your selected web app. You may start by setting up a new directory and initializing it with npm.

  3. Create a Test Plan and Test Cases: Develop a test plan outlining the features and scenarios you want to automate. Write test cases based on this plan.

  4. Start Creating Your QA Automation Framework: Set up your QA automation framework using Cucumber and Selenium. Create feature files, step definitions, and any necessary configuration files. Implement the automation of your test cases according to your test plan.

  5. Automate Your Test Cases: Begin automating the test cases you defined. Run your tests to ensure they work correctly and refine them as needed.

Conclusion

You are now ready to start working on your QA automation project using Cucumber and Selenium with JavaScript. If you encounter any issues or have questions, refer to the documentation or seek help from the community.

Happy learning!


.

About

Page Object Model based Test Automation Framework with Cucumber BDD Framework and Selenium WebDriver for test UI based Apps 🚀

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published