I have done a lot of R&D on this, but I cannot find a solution.
I need to maintain a login session between different scripts in a single function file. I made a function I am logged inand I wrote in the background. therefore, at the beginning of each script, a login occurs. but I want to maintain a single login session in scripts. Can anyone suggest.?
Example Code:
Feature: To test the output
Background:
Given I am logged in
@javascript
Scenario: To test the positive input
When I fill in "test" with "aab"
And I press "add"
Then I should see "welcome"
@javascript
Scenario:To test the negative inputs
When I fill in "test" with "@#$@!!111"
And I press "add"
Then I should see "Sorry,invalid input please try again"
, , . , , , 50 . . , , 15 . , , .