UV,
On 5/8/18 2:24 PM, UV wrote:
> Thanks George. But does that mean, I should have scenarios like -
>
> Scenario 1: Connect/ Search an Agent when user Accepts geo location turn
> on request
> Given ...I am registered user
> And i m on landing page
> *And I accept the system prompt for turning on geo location*
> When...I tap on Search
> then...
Yes, that's much better. I would make accepting the prompt be the When
clause, though, since that's the central point of this scenario.
As a couple of other hints, I would avoid using the first person. As you
build up a number of scenarios, it's easier if you refer to the user in
a way that identifies their role. This could be "registered user" -- the
downside is that's a bit long. You can also use a name, since an
unregistered user won't be known by name to the system. This distinction
is too fine for some people.
What do you think about this:
Scenario: User accepts prompt to turn on geolocation
Given a registered user, Bob, has geolocation turned off
And Bob visits the landing page
When Bob accepts the system prompt to turn on geolocation
Then the system displays the map
Note that if there is no system prompt, the scenario will still fail.
Have it report something like "no system prompt to accept" when that
happens.
>
> Scenario 2: Connect/ Search an Agent when user Denies geo location turn
> on request
Scenario: User declines prompt to turn on geolocation
Given a registered user, Bob, has geolocation turned off
And Bob visits the landing page
When Bob declines the system prompt to turn on geolocation
Then the system displays an alternate search capability
>
> Scenario 3: Connect/ Search an Agent when Geo location is already on
Scenario: User already has geolocation turned on
Given a registered user, Bob, has geolocation turned on
When Bob visits the landing page
Then the system displays the map
These are all scenarios about the geolocation feature. You'll want
additional scenarios for the search functionality.
Scenario: Searching via the map
Given Bob visits the search map
When Bob selects ... on the map and searches
Then the system ...
Note that the Given here needs to do whatever it takes to get to the
search map. The easiest is probably to turn on geolocation and go to the
landing page, but how you get there isn't important to the map search
capability.