Serenity BDD Report
Home > The Internet - Authentication > Form-Based Authentication > Using username and password to log in
Report generated 12-08-2026 16:10

Form-Based Authentication

  Form-Based Authentication (feature)   1 To 10 Seconds (Duration)   Under 1 Second (Duration)   Linux (platform)   Chrome 151.0.7922.138 (browser)   Authentication (capability)

Using username and password to log in

"The Internet" is an example application
that captures prominent and ugly functionality found on the web.
Perfect for writing automated acceptance tests against 😎
With Serenity/JS you can use Markdown
to better describe each Feature and Scenario.
 

Cast

 

Alice can:
  • PerformActivities
  • AnswerQuestions
  • RaiseErrors
  • ScheduleWork { scheduler: { clock: { timeAdjustment: { milliseconds: 0 } }, interactionTimeout: { milliseconds: 5000 } } }
  • BrowseTheWeb (BrowseTheWebWithWebdriverIO)
  • TakeNotes { notepad: {} }
  • CallAnApi { baseURL: "https://the-internet.herokuapp.com/", headers: { common: { Accept: "application/json, text/plain, */*" } }, timeout: 10000 }

Scenario Outline

When she logs in using "<username>" and "<password>"
Then she should see that authentication has <outcome>

Examples: 

# Username Password Outcome
1 tomsmith SuperSecretPassword! succeeded
2 foobar barfoo failed
Steps Outcome
SUCCESS 1s 254ms
SUCCESS 973ms
SUCCESS 2.23s
Serenity BDD version 4.2.34