Skip to content

Instantly share code, notes, and snippets.

View vmwhereqa's full-sized avatar
🎯
Focusing

Vinod vmwhereqa

🎯
Focusing
  • Edinburgh
  • 02:10 (UTC +02:00)
View GitHub Profile
Given I am in registration page
And I provide below information during registeration
| Field | Input |
| firstName| Tom |
| lastName | Jerry |
| phone | 123456789 |
| email | tomandjerry@cartoon.com |
When I submit the details
Then the registration should be successful
[
{'Field': 'firstName', 'Input': 'Tom'},
{'Field': 'lastName', 'Input': 'Jerry'},
{'Field': 'phone', 'Input': '123456789'}
{'Field': 'email', 'Input': 'tomandjerry@cartoon.com'}
]
Given(/^I provide below information during registeration$/, function (table) {
console.log(table.hashes())
});
[
['firstName', 'Tom'],
['lastName', 'Jerry'],
['phone', '123456789'],
['email', 'tomandjerry@cartoon.com']
]
Given(/^I provide below information during registeration$/, function (table) {
console.log(table.rows())
});
Given I am in registration page
And I provide below information during registeration
| Fields | Inputs |
| firstName| Tom |
| lastName | Jerry |
| phone | 123456789 |
| email | tomandjerry@cartoon.com |
When I submit the details
Then the registration should be successful
{
'firstName': 'Tom',
'lastName' : 'Jerry',
'phone' : '123456789',
'email': 'tomandjerry@cartoon.com'
}
Given(/^I provide below information during registeration$/, function (table) {
console.log(table.rowsHash())
});
Given I am in registration page
And I provide below information during registeration
| firstName| Tom  |
| lastName | Jerry  |
| phone | 123456789  |
| email | tomandjerry@cartoon.com |
When I submit the details
Then the registration should be successful