Is this a correct way of writing a BDD Test Scenario?

Can i split a BDD Test Scenario in two:

Requirement:

If the booking is a , and the is not eligible for check-in, then display the following message: ‘ Success, Once Ok is selected display BP.

Test Scenario:

Background:

GIVEN I have selected check in AND I am online

Scenario Outline: * - Return Flight is NOT eligible for BP page

   GIVEN I am on the 'D' Page
   WHEN i select the  'YES' selection tab
   THEN  the following  message is displayed ‘ Success, <Pax Name> '

    GIVEN i have selected 'YES' on the D Page
    WHEN i select 'OK' on the displayed message
    THEN the BP page is displayed

Also:

Requirement:

Include a selection tab of Yes & No to allow user to confirm that they are the passenger. (Default highlighted to Yes) a. Yes – if selected will xxxxx b. No – if selected will return user to aaaaaaaaa

Background:

GIVEN I have selected check in AND I am online

GIVEN I am on the 'D' Page THEN the page should have a 'Yes' & 'No' selection tab AND the 'YES' selection tab is highlighted

GIVEN I am on the 'D' Page WHEN I select the 'NO' selection tab THEN i'm returned to the check in page

Answers


You can always mix and match steps. For example, the first Scenario could be done as follows:

Scenario: Return Flight is NOT eligible for BP page
   GIVEN I am on the 'D' Page
   WHEN i select the  'YES' selection tab
   THEN  the following  message is displayed ‘ Success, <Pax Name> '
   WHEN i select 'OK' on the displayed message
   THEN the BP page is displayed

Need Your Help

Save table sorting after page reload

javascript php html

I have webpage with table and javascript that sorts columns (js I found in google). This page have refresh option (every 30 secs). I need to save table sorting after refresh. How can i do it?

.NET FileSystemWatcher to detect NTFS security changes

c# .net security ntfs filesystemwatcher

The .NET FileSystemWatcher's Changed event MSDN documentation says:

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.