@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:09.092
And
the user is on the Leads screen
00:00:14.213
And
the user clicks on Create New Lead Button
00:00:00.304
And
the user navigates to the Create New Lead form
00:00:00.023
When
the user fills the Lead Creation form with the following details:
00:00:04.982
| 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.242
Then
a success message "Lead created successfully" should be displayed
00:00:00.966
And
the new lead should be visible in the Leads List
00:00:00.434
@cloud
@regression
Scenario: Verify mandatory field validations on empty submission
Given
the user is logged into the CRM as "Super Admin"
00:00:09.424
And
the user is on the Leads screen
00:00:13.052
And
the user clicks on Create New Lead Button
00:00:00.311
And
the user navigates to the Create New Lead form
00:00:00.019
When
the user clicks the Create button without entering data
00:00:00.160
Then
the following mandatory field errors should be displayed:
00:00:00.174
| 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 |
| Assigned To is required |
| Source is required |
Given
the user is logged into the CRM as "Super Admin"
00:00:08.846
And
the user is on the Leads screen
00:00:14.001
And
the user clicks on Create New Lead Button
00:00:00.306
And
the user navigates to the Create New Lead form
00:00:00.019
When
the user opens the "Gender" dropdown
00:00:00.135
Then
the dropdown should contain the following options:
00:00:00.059
| 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.877
And
the user is on the Leads screen
00:00:13.376
And
the user clicks on Create New Lead Button
00:00:00.312
And
the user navigates to the Create New Lead form
00:00:00.022
When
the user opens the "Preferred Language" dropdown
00:00:00.128
Then
the dropdown should contain the following options:
00:00:00.843
| 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:07.070
And
the user is on the Leads screen
00:00:12.976
And
the user clicks on Create New Lead Button
00:00:00.319
And
the user navigates to the Create New Lead form
00:00:00.022
When
the user opens the "Lead Stage" dropdown
00:00:00.103
Then
the dropdown should contain the following options:
00:00:01.396
| Cold |
|---|
| Warm |
Given
the user is logged into the CRM as "Super Admin"
00:00:09.060
And
the user is on the Leads screen
00:00:12.094
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.022
When
the user fills the Lead Creation form with the following details:
00:00:04.941
| 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.468
Then
the Create Lead form should close
00:00:00.011
Given
the user is logged into the CRM as "Super Admin"
00:00:09.044
And
the user is on the Leads screen
00:00:12.864
And
the user clicks on Create New Lead Button
00:00:00.323
And
the user navigates to the Create New Lead form
00:00:00.019
Given
a prerequisite lead is created with a unique mobile number
00:00:10.437
When
the user attempts to create a duplicate lead by reusing the mobile number
00:00:05.112
And
clicks the Create button after providing duplicate mobile number
00:00:00.995
Then
an error message "Mobile number already exists." should be shown
00:00:00.026
Given
the user is logged into the CRM as "Super Admin"
00:00:07.348
And
the user is on the Leads screen
00:00:12.943
And
the user clicks on Create New Lead Button
00:00:00.354
And
the user navigates to the Create New Lead form
00:00:00.027
Given
a prerequisite lead is created with a unique email address
00:00:09.536
When
the user attempts to create a duplicate lead by reusing the email address
00:00:05.152
And
clicks the Create button after providing duplicate email address
00:00:00.930
Then
an error message "Email already exists." should be shown
00:00:00.024
@cloud
@regression
Scenario: Sales Allocation & Re-Allocation to a New Lead
Given
the user is logged into the CRM as "Super Admin"
00:00:07.035
And
the user is on the Leads screen
00:00:13.195
And
the user clicks on Create New Lead Button
00:00:00.309
And
the user navigates to the Create New Lead form
00:00:00.020
When
the user fills the Lead Creation form with the following details:
00:00:04.673
| 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.020
Then
a success message "Lead created successfully" should be displayed
00:00:01.086
And
the new lead should be visible in the Leads List which is assigned to "Smoke Test AAA"
00:00:00.431
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:07.376
And
in Lead History, both entry should appear i.e. "Smoke Test Aaa(Fm0991)" and "Smoke Test Bbb(Vme0017)"
00:00:02.348