Mô tả

Course Description

Learn how Cucumber BDD (Behavioral Driven Development/Test Driven Development) testing frameworks work. Learn how the pieces of Cucumber fall together and how frameworks are put together, as well as best practices of BDD. We will use the most popular and actively maintained Cucumber framework for Python BDD called 'Behave'. We will use PowerPoint presentation to convey the concepts on each topic and then write example code testing real scenarios with Selenium WebDriver as well as API testing.

We will build an E-commerce site on our local machine and practice writing real test cases both for front end with Selenium WebDriver and for the backend with Python, with full access to MySQL database of our site.


Critical addition to your resume

If you are getting into the QA world or you are looking to advance your career, having BDD testing skill will accelerate your success. Python is one of the most popular languages to use in software testing, and knowing how to use it with BDD style testing will expand your pool of possibilities.

In addition to using Python for BDD testing you will also get tips and guidance on best practices.   

After completion of this course you will be able to go through interview as if you have BDD testing experience. You will also have a ready to go framework that you can continue to add test cases for practice and for your portfolio.


Content and Overview   

In this course we will be using PowerPoint presentation to explain the concepts and then go to code in an IDE (PyCharm) for each topic. Some topics, we will go directly to code and start writing and executing.   

We will install necessary packages for our framework. We will discuss the directory structure needed for our design, and then we will write and run test cases.  

We will run how the BDD tests are written, how the work together and how to understand and control the output.  

We will create an efficiently structured test framework and learn how to use Pythons logging module to produce readable reports.   


What am I going to get from this course?  

  • 49 + lectures of BDD core concepts, examples and practice exercises (continuously adding more examples) 

  • Plenty of test cases to use in your portfolio and to build bigger test suits on top of the course material

  • Enough material and examples to be able to create a project (BDD test framework) and maintain a GitHub repo 

  • Specific features of the most popular BDD framework for Python called Behave

  • Practice using Selenium WebDriver functions with Python

  • Practice testing of Front-end with Selenium WebDriver BDD and Python

  • Practice testing of Back-end with Python



Bạn sẽ học được gì

Yêu cầu

Nội dung khoá học

17 sections

Introduction

4 lectures
Introduction To The Course
03:34
About The Provided Course Code
03:30
Content List - Description of sections/lectures of the course
03:37
Introduction to BDD, Gherkin and Behave
03:53

Installations

10 lectures
Installing Python - Mac
04:17
Installing Python - Windows
09:21
About Virtual Environment
10:10
Creating virtual environment on Mac (demo)
05:19
Creating virtual environment on Windows (demo)
07:08
Installing Pycharm / IDE
07:05
Add Virtual Environment to PyCharm
05:29
Add Gherkin Plugin to PyCharm
04:14
Installing Behave and Selenium
00:49
BDD or Behave?
1 question

BDD Components and Basic Examples

12 lectures
Folder structure or layout (Discussion)
04:42
Folder structure or layout (Demo/Example)
04:13
Feature File
06:09
Step definition File
06:56
Running 1 file (discussion)
06:28
Running 1 file (demo)
06:53
Running all files (discussion)
03:28
Running all files (demo)
09:38
Review Please!
00:24
Displaying Output
08:06
More on Output
05:50
‘Given’, ‘Then’, ‘When’, ‘And’, ‘But’
03:32

Passing Parameters to Steps

2 lectures
Passing Parameters to Steps (discussion)
08:05
Passing Parameters to Steps (demo)
11:38

Sharing Data Between Steps

2 lectures
Sharing Data Between Steps (discussion)
06:27
Sharing Data Between Steps (demo)
06:52

Time for Practical Examples

6 lectures
Practical Examples Discussion
03:54
Project Setup Overview
09:24
Test Cases Group 1 Part 1 (python.org)
14:09
Test Case Group 1 Part 2 (python.org)
06:35
Using custom config file
10:52
Test Case Group 3 (more config examples)
16:07

Setup and Teardown

3 lectures
Setup and Teardown (discussion)
06:15
Setup/Teardown/environment.py
14:45
"Background"
03:35

Scenario Outlines

2 lectures
Scenario Outline (discussion)
08:21
Scenario Outline (demo)
07:08

Using Tags

2 lectures
Using Tags (discussion)
10:16
Using Tags (demo)
07:40

Cucumber Behave Report Generation

5 lectures
Generating Behave Reports Overview
06:50
How to Output Junit Compatible xml
02:54
How to Output JSON Report
03:57
How to Generate Allure Report
04:53
How to Generate Custom Report
17:59

Other Behave Core features

7 lectures
Calling Steps in Other Step definitions
05:34
Passing User Data From Command Line
06:09
Passing String to Step Definition
06:17
"--exclude" How to Exclude Test by File Name
04:54
"-f rerun" Retry Failed Tests (Rerun Failed Scenarios)
05:48
"--stop" Stop Execution at First Failure
03:27
"--dry-run" Run without Running
04:32

Runner Script

5 lectures
Runner Python Script to Run Tests
11:20
Runner Python script - continued (Parameterize)
10:23
Runner Python script - continued (Unique Test Id)
09:41
Runner Python script - continued (Output directory)
14:48
Runner Python script - continued (WebDrivers)
09:14

BDD Automation Practice Section

42 lectures
NOTE
00:12
Introduction to Practice Section
06:03
*TCID-10-1 (FE) Valid user should be able to login (Framework Setup)
21:42
*TCID-10 - 2 (Continued) Valid user should be able to login
11:17
*TCID-10 - 3 (FE) (Continued) Valid user should be able to login
28:16
*TCID-10 - 4 (FE) (Continued) Valid user should be able to login
09:58
Housekeeping - Same Files New Project in PyCharm
03:00
TCID-11 (FE) User with wrong password should get correct error message
14:06
TCID-12 (FE) User with none-existing email should get correct error message
06:07
*Backend Helper - http GET method
15:51
*Backend Helper - http POST method
06:59
*Credentials Management
10:13
*Backend Helper - Database Helper
09:27
*TCID-24-1 (BE) Verify 'GET /products' returns all products
12:57
*TCID-24-2 (BE) Verify 'GET /products' returns all products
12:45
Assignment Solution: Get all pages of products
09:46
*TCID-25 (BE) Verify 'products/id' returns a product with the given id
19:53
*TCID-29-1 (BE) Verify 'POST /customers' creates user
13:50
*TCID-29-2 (BE) Verify 'POST /customers' creates user
11:48
*TCID-29-3 (BE) Verify 'POST /customers' creates user
10:40
TCID-33-1 (FE) New user place order with 1 item without creating account
06:09
TCID-33-2 (FE) @Given("I add 1 item to cart")
14:39
TCID-33-3 (FE) @Given("I click on cart in nav bar")
09:09
TCID-33-4 (FE) @When("I select 'Free Shipping' option")
16:04
TCID-33-5 (FE) @When("I click on 'Proceed to checkout' button")
10:25
TCID-33-6 (FE) @When("I verify 'Checkout' page is loaded")
15:50
TCID-33-7 (FE) @When("I fill in the billing details form")
14:16
TCID-33-8 (FE) @When("I click on 'Place order' button")
05:07
TCID-33-9 (FE) @Then("the 'Order received' page should load")
17:36
TCID-33-9-1 (FE) Error in step 9?
02:08
TCID-33-9-2 (FE) Solution to Error in step 9
08:12
TCID-33-10 (FE) @Then("I verify order is created in database")
22:55
Selenium Implicit Wait
10:15
* How to run WebDriver in headless browser (headless Chrome)
08:51
TCID-36 to 40 - 1 (BE) @Given('I create a "<discount_type>" coupon')
19:21
TCID-36 to 40 - 2 (BE) @Then(' the coupon should exist in database')
21:49
TCID-43 (BE) Verify coupon metadata recorded correctly
20:40
TCID-44-1 (FE) 50% off cart coupon should discount 50% of the cart
02:53
TCID-44-2 (FE) Add items to cart and get total
15:01
TCID-44-3 (FE) @when(‘I get a valid 50% off coupon’)
06:32
TCID-44-4 (FE) @when(‘I apply the coupon to the cart’)
06:05
TCID-44-5 (FE) @then(‘the total should be reduced by 50%’)
11:38

Conclusion

1 lectures
Conclusion
06:39

SPECIAL SECTION: SQL (MySQL) Crash Course

17 lectures
Introduction to the SQL Crash Course
02:49
Introduction to SQL
08:15
Setup Database and Data
12:47
SQL SELECT Query (Reading Data)
11:50
SQL SELECT Query Continued
11:25
SQL SELECT Query Continued 2
08:40
SQL IN Clause
07:31
SQL SELECT Sub-Query
10:48
SQL LIKE Clause
07:30
Intro to SQL JOIN
08:40
SQL JOIN
08:52
SQL LEFT JOIN
09:13
SQL Special Functions
14:11
SQL INSERT INTO
12:19
SQL CREATE TABLE
06:46
SQL DROP and TRUNCATE
04:16
SQL Crash Course Conclusion
02:16

SPECIAL SECTION: Create E-Commerce Site on Local Machine To Practice Testing

14 lectures
Intro to "Creating E-Commerce Site Locally"
02:01
Options to Run Wordpress
07:50
Running WordPress with MAMP
17:02
Install 'Local'
02:25
Creating the site
03:58
Install theme
02:20
Install plugin (WooCommerce)
04:51
Adding sample products
03:37
Setup Home Page and Registration
04:33
Use 'Coupons' to checkout
06:16
Checkout with "Cash on Delivery"
02:35
Setup and Test WooCommerce Rest API
13:40
Connecting to Database
04:47
Conclusion of Section
01:55

SPECIAL SECTION: Deals

1 lectures
Bonus
00:24

Đánh giá của học viên

Chưa có đánh giá
Course Rating
5
0%
4
0%
3
0%
2
0%
1
0%

Bình luận khách hàng

Viết Bình Luận

Bạn đánh giá khoá học này thế nào?

image

Đăng ký get khoá học Udemy - Unica - Gitiho giá chỉ 50k!

Get khoá học giá rẻ ngay trước khi bị fix.