mirror of
https://github.com/hmalik144/Automation-Test-Framework.git
synced 2025-12-10 03:05:35 +00:00
Moved to using Gender enum
This commit is contained in:
@@ -17,52 +17,52 @@ Feature: Feature to test the practice form
|
|||||||
| Rachel | Zane | Female | rachel.zane@pearson-specter.com | 2125096965 |
|
| Rachel | Zane | Female | rachel.zane@pearson-specter.com | 2125096965 |
|
||||||
|
|
||||||
|
|
||||||
# @SmokeTest @RegressionTest
|
@SmokeTest @RegressionTest
|
||||||
# Scenario Outline: Check user can successfully submit a form with all the minimum valid credentials and 1 letter names
|
Scenario Outline: Check user can successfully submit a form with all the minimum valid credentials and 1 letter names
|
||||||
#
|
|
||||||
# Given user is on practice form
|
Given user is on practice form
|
||||||
# When user enters first name "<firstName>" and last name "<lastName>"
|
When user enters first name "<firstName>" and last name "<lastName>"
|
||||||
# And user selects gender "<gender>"
|
And user selects gender "<gender>"
|
||||||
# And user enters email address "<emailAddress>"
|
And user enters email address "<emailAddress>"
|
||||||
# And user enters mobile number "<mobileNumber>"
|
And user enters mobile number "<mobileNumber>"
|
||||||
# And user clicks submit button
|
And user clicks submit button
|
||||||
# Then pop up is displayed
|
Then pop up is displayed
|
||||||
#
|
|
||||||
# Examples:
|
Examples:
|
||||||
# | firstName | lastName | gender | emailAddress | mobileNumber |
|
| firstName | lastName | gender | emailAddress | mobileNumber |
|
||||||
# | i | j | Male | j@domain.com | 2125096995 |
|
| i | j | Male | j@domain.com | 2125096995 |
|
||||||
# | 2 | y | Female | y@domain.com | 2125096965 |
|
| 2 | y | Female | y@domain.com | 2125096965 |
|
||||||
#
|
|
||||||
#
|
|
||||||
# @RegressionTest
|
@RegressionTest
|
||||||
# Scenario Outline: Check user cannot submit a form with if fields are empty
|
Scenario Outline: Check user cannot submit a form with if fields are empty
|
||||||
#
|
|
||||||
# Given user is on practice form
|
Given user is on practice form
|
||||||
# When user enters first name "<firstName>" and last name "<lastName>"
|
When user enters first name "<firstName>" and last name "<lastName>"
|
||||||
# And user selects gender "<gender>"
|
And user selects gender "<gender>"
|
||||||
# And user enters email address "<emailAddress>"
|
And user enters email address "<emailAddress>"
|
||||||
# And user enters mobile number "<mobileNumber>"
|
And user enters mobile number "<mobileNumber>"
|
||||||
# And user clicks submit button
|
And user clicks submit button
|
||||||
# Then no pop up is displayed
|
Then no pop up is displayed
|
||||||
#
|
|
||||||
# Examples:
|
Examples:
|
||||||
# | firstName | lastName | gender | emailAddress | mobileNumber |
|
| firstName | lastName | gender | emailAddress | mobileNumber |
|
||||||
# | | Lastname | Male | name@domain.com | 2125096995 |
|
| | Lastname | Male | name@domain.com | 2125096995 |
|
||||||
# | FirstName | | Female | name@domain.com | 2125096965 |
|
| FirstName | | Female | name@domain.com | 2125096965 |
|
||||||
# | FirstName | Lastname | | name@domain.com | 2125096965 |
|
| FirstName | Lastname | | name@domain.com | 2125096965 |
|
||||||
# | FirstName | Lastname | Other | | 2125096965 |
|
| FirstName | Lastname | Other | | 2125096965 |
|
||||||
# | FirstName | Lastname | Other | name@domain.com | |
|
| FirstName | Lastname | Other | name@domain.com | |
|
||||||
#
|
|
||||||
# @RegressionTest
|
@RegressionTest
|
||||||
# Scenario Outline: Check email address shows error if incorrect email string
|
Scenario Outline: Check email address shows error if incorrect email string
|
||||||
#
|
|
||||||
# Given user is on practice form
|
Given user is on practice form
|
||||||
# When user enters email address "<emailAddress>"
|
When user enters email address "<emailAddress>"
|
||||||
# Then email input is displaying an error
|
Then email input is displaying an error
|
||||||
#
|
|
||||||
# Examples:
|
Examples:
|
||||||
# | emailAddress |
|
| emailAddress |
|
||||||
# | namedomain.com |
|
| namedomain.com |
|
||||||
# | name@domain.c |
|
| name@domain.c |
|
||||||
# | @domain.com |
|
| @domain.com |
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user