@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:08.775
And
the user is on the Leads screen
00:00:13.054
And
the user clicks on Create New Lead Button
00:00:00.261
And
the user navigates to the Create New Lead form
00:00:00.059
When
the user fills the Lead Creation form with the following details:
00:00:07.021
| Name | |
|---|---|
| Mobile Number | |
| Gender | Male |
| Date of Birth | 15/08/1995 |
| Height | 180 |
| Current Weight | 85 |
| Email ID | |
| Preferred Language | English |
| Referral Code | RCODE123 |
| Profession | Software Engineer |
| City | Salem |
| Country | India |
| Lead Stage | Warm |
| Assigned To | Manokaran |
| Source | VMax Fit |
And
clicks the Create button
00:00:03.240
Then
a success message "Lead created successfully" should be displayed
00:00:01.312
And
the new lead should be visible in the Leads List
00:00:00.077
@cloud
@regression
Scenario: Verify mandatory field validations on empty submission
Given
the user is logged into the CRM as "Super Admin"
00:00:08.797
And
the user is on the Leads screen
00:00:12.549
And
the user clicks on Create New Lead Button
00:00:00.349
And
the user navigates to the Create New Lead form
00:00:00.015
When
the user clicks the Create button without entering data
00:00:00.124
Then
the following mandatory field errors should be displayed:
00:00:00.382
| 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.956
And
the user is on the Leads screen
00:00:12.610
And
the user clicks on Create New Lead Button
00:00:00.247
And
the user navigates to the Create New Lead form
00:00:00.017
When
the user opens the "Gender" dropdown
00:00:00.144
Then
the dropdown should contain the following options:
00:00:00.106
| 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:09.558
And
the user is on the Leads screen
00:00:13.058
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.022
When
the user opens the "Preferred Language" dropdown
00:00:00.249
Then
the dropdown should contain the following options:
00:00:02.105
| 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.619
And
the user is on the Leads screen
00:00:12.389
And
the user clicks on Create New Lead Button
00:00:00.378
And
the user navigates to the Create New Lead form
00:00:00.023
When
the user opens the "Lead Stage" dropdown
00:00:00.083
Then
the dropdown should contain the following options:
00:00:01.929
| Cold |
|---|
| Warm |
Given
the user is logged into the CRM as "Super Admin"
00:00:08.490
And
the user is on the Leads screen
00:00:12.920
And
the user clicks on Create New Lead Button
00:00:00.483
And
the user navigates to the Create New Lead form
00:00:00.016
When
the user fills the Lead Creation form with the following details:
00:00:06.812
| 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 | RCODE123 |
| Profession | Software Engineer |
| City | Salem |
| Country | India |
| Lead Stage | Warm |
| Assigned To | Manokaran |
| Source | VMax Fit |
And
clicks the Cancel button
00:00:00.537
Then
the Create Lead form should close
00:00:00.011
Given
the user is logged into the CRM as "Super Admin"
00:00:08.657
And
the user is on the Leads screen
00:00:12.752
And
the user clicks on Create New Lead Button
00:00:00.281
And
the user navigates to the Create New Lead form
00:00:00.030
Given
a prerequisite lead is created with a unique mobile number
00:00:11.474
When
the user attempts to create a duplicate lead by reusing the mobile number
00:00:06.279
And
clicks the Create button after providing duplicate mobile number
00:00:01.007
Then
an error message "Lead already exists with this email or contact number" should be shown
00:00:00.047
Given
the user is logged into the CRM as "Super Admin"
00:00:08.712
And
the user is on the Leads screen
00:00:12.966
And
the user clicks on Create New Lead Button
00:00:00.272
And
the user navigates to the Create New Lead form
00:00:00.010
Given
a prerequisite lead is created with a unique email address
00:00:11.129
When
the user attempts to create a duplicate lead by reusing the email address
00:00:06.286
And
clicks the Create button after providing duplicate email address
00:00:01.025
Then
an error message "Lead already exists with this email or contact number" should be shown
00:00:00.049
@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.757
And
the user is on the Leads screen
00:00:12.675
And
the user clicks on Create New Lead Button
00:00:00.335
And
the user navigates to the Create New Lead form
00:00:00.018
When
the user fills the Lead Creation form with the following details:
00:00:06.987
| Name | |
|---|---|
| Mobile Number | |
| Gender | Male |
| Date of Birth | 15/08/1995 |
| Height | 180 |
| Current Weight | 85 |
| Email ID | |
| Preferred Language | English |
| Referral Code | RCODE123 |
| 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.205
Then
a success message "Lead created successfully" should be displayed
00:00:01.326
And
the new lead should be visible in the Leads List which is assigned to "Smoke Test AAA"
00:00:00.153
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:16.656
And
in Lead History, both entry should appear i.e. "Smoke Test Aaa(Fm0991)" and "Smoke Test Bbb(Vme0017)"
00:00:02.494