How to use POJO in cucumber
Create contactBean class
o Add all variables
o Add the getter/setters
• Create bean feature file
• Create a table with first row containing the variables
in the contactBean class
o Add values under the table
o Implement method with parameter (List<ContactBean>contacts)
• Scenario: Create contact
o Given I logged into suiteCRM
o When I save a new contact:
| firstName | lastName | officePhone | cellphone | email |
| Steve |Gates | 3456758888 | 1234329999 | [email protected] |
o Then I should see contact information for "SteveGates"