@cloud
@regression
Feature: Lead Management Feature
Description: To ensure leads are created accurately and validated properly
As a CRM user
I want to create a new lead with all mandatory details and verify validations
File name: lead.feature
Relative path: feature/lead.feature
@cloud
@regression
Scenario: Create a new lead successfully with valid data
Given
the user is logged into the CRM as "Super Admin"
00:00:12.521
And
the user is on the Leads screen
00:00:13.635
And
the user clicks on Create New Lead Button
00:00:00.263
And
the user navigates to the Create New Lead form
00:00:00.011
When
the user fills the Lead Creation form with the following details:
00:00:05.644
| Name | |
|---|---|
| Mobile Number | |
| Gender | Male |
| Date of Birth | 15/08/1995 |
| Height | 180 |
| Current Weight | 85 |
| Email ID | |
| Preferred Language | English |
| Referral Code | MARKPARKER5309 |
| Profession | Software Engineer |
| City | Salem |
| Country | India |
| Lead Stage | Warm |
| Assigned To | Manokaran |
| Source | VMax Fit |
And
clicks the Create button
00:00:03.778
Then
a success message "Lead created successfully" should be displayed
00:00:01.143
And
the new lead should be visible in the Leads List
00:00:00.072
@cloud
@regression
Scenario: Verify mandatory field validations on empty submission
Given
the user is logged into the CRM as "Super Admin"
00:00:08.599
And
the user is on the Leads screen
00:00:13.533
And
the user clicks on Create New Lead Button
00:00:00.316
And
the user navigates to the Create New Lead form
00:00:00.020
When
the user clicks the Create button without entering data
00:00:00.139
Then
the following mandatory field errors should be displayed:
00:00:00.730
| Name is required |
|---|
| Mobile Number is required |
| Gender is required |
| Date of Birth is required |
| Height is required |
| Current Weight is required |
| Email ID is required |
| Preferred Language is required |
| Lead Stage is required |
| Assigned To is required |
| Source is required |
Given
the user is logged into the CRM as "Super Admin"
00:00:08.609
And
the user is on the Leads screen
00:00:13.116
And
the user clicks on Create New Lead Button
00:00:00.254
And
the user navigates to the Create New Lead form
00:00:00.025
When
the user opens the "Gender" dropdown
00:00:00.162
Then
the dropdown should contain the following options:
00:00:00.066
| Male |
|---|
| Female |
@cloud
@regression
Scenario Outline: Verify options for Preferred Language dropdown
Given
the user is logged into the CRM as "Super Admin"
00:00:08.596
And
the user is on the Leads screen
00:00:09.816
And
the user clicks on Create New Lead Button
00:00:00.334
And
the user navigates to the Create New Lead form
00:00:00.024
When
the user opens the "Preferred Language" dropdown
00:00:00.254
Then
the dropdown should contain the following options:
00:00:00.710
| English |
|---|
| Bengali (বাংলা) |
@cloud
@regression
Scenario Outline: Verify options for Lead Stage dropdown
Given
the user is logged into the CRM as "Super Admin"
00:00:08.817
And
the user is on the Leads screen
00:00:13.149
And
the user clicks on Create New Lead Button
00:00:00.274
And
the user navigates to the Create New Lead form
00:00:00.035
When
the user opens the "Lead Stage" dropdown
00:00:00.172
Then
the dropdown should contain the following options:
00:00:01.652
| Cold |
|---|
| Warm |
Given
the user is logged into the CRM as "Super Admin"
00:00:08.763
And
the user is on the Leads screen
00:00:13.207
And
the user clicks on Create New Lead Button
00:00:00.290
And
the user navigates to the Create New Lead form
00:00:00.035
When
the user fills the Lead Creation form with the following details:
00:00:06.245
| Name | Test Cancel |
|---|---|
| Mobile Number | 9898123456 |
| Gender | Male |
| Date of Birth | 15/08/1995 |
| Height | 180 |
| Current Weight | 85 |
| Email ID | cancel-test@yopmail.com |
| Preferred Language | English |
| Referral Code | MARKPARKER5309 |
| Profession | Software Engineer |
| City | Salem |
| Country | India |
| Lead Stage | Warm |
| Assigned To | Manokaran |
| Source | VMax Fit |
And
clicks the Cancel button
00:00:00.521
Then
the Create Lead form should close
00:00:00.010
Given
the user is logged into the CRM as "Super Admin"
00:00:08.507
And
the user is on the Leads screen
00:00:10.057
And
the user clicks on Create New Lead Button
00:00:00.307
And
the user navigates to the Create New Lead form
00:00:00.027
Given
a prerequisite lead is created with a unique mobile number
00:00:11.267
When
the user attempts to create a duplicate lead by reusing the mobile number
00:00:06.339
And
clicks the Create button after providing duplicate mobile number
00:00:01.027
Then
an error message "Lead already exists with this email or contact number" should be shown
00:00:00.050
Given
the user is logged into the CRM as "Super Admin"
00:00:08.529
And
the user is on the Leads screen
00:00:13.135
And
the user clicks on Create New Lead Button
00:00:00.412
And
the user navigates to the Create New Lead form
00:00:00.020
Given
a prerequisite lead is created with a unique email address
00:00:10.901
When
the user attempts to create a duplicate lead by reusing the email address
00:00:06.016
And
clicks the Create button after providing duplicate email address
00:00:01.047
Then
an error message "Lead already exists with this email or contact number" should be shown
00:00:00.047
@cloud
@regression
Scenario: Sales Allocation & Re-Allocation to a New Lead
Given
the user is logged into the CRM as "Super Admin"
00:00:08.549
And
the user is on the Leads screen
00:00:09.858
And
the user clicks on Create New Lead Button
00:00:00.244
And
the user navigates to the Create New Lead form
00:00:00.013
When
the user fills the Lead Creation form with the following details:
00:00:06.448
| Name | |
|---|---|
| Mobile Number | |
| Gender | Male |
| Date of Birth | 15/08/1995 |
| Height | 180 |
| Current Weight | 85 |
| Email ID | |
| Preferred Language | English |
| Referral Code | MARKPARKER5309 |
| Profession | Software Engineer |
| City | Salem |
| Country | India |
| Lead Stage | Warm |
| Assigned To | Smoke Test AAA |
| Source | VMax Fit |
And
clicks the Create button
00:00:03.220
Then
a success message "Lead created successfully" should be displayed
00:00:01.208
And
the new lead should be visible in the Leads List which is assigned to "Smoke Test AAA"
00:00:00.071
And
a new Sales Executive assigned to the lead with i.e. "Smoke Test BBB" and it should be assigned to the same
00:00:06.607
And
in Lead History, both entry should appear i.e. "Smoke Test Aaa(Fm0991)" and "Smoke Test Bbb(Vme0017)"
00:00:02.482