forked from nicholaslemay/Loquacious-Snake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
38 lines (19 loc) · 1.39 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
This is the first version of FluentSelenium for Python !
The work done here is heavily inspired by the SUTA project for PHP http://github.com/xto/SUTA and the original FluentSelenium project for C# available here : http://fluentselenium.codeplex.com/.
The intent is on making end-to-end testing or acceptance testing as easy as possible to read and write for developers and people with basic programming skills. This is done to facilitate the integration of testers and Product Owners in the work done by developers in order to allow them to be able write the tests together and have an artifact that everybody can understand and discuss upon.
Example :
First, lest's take this fictitious user story
As a User
I want to be able to consult my account
In order to see my current invoice.
Conditions Of Succes:
The page is available only for registered users.
The page is accessible through the /myAccount URL
The Page displays the current invoice total
You can thus break down the steps like this :
Users goes to /myAccount
User Should see current invoice total
Using Fluent Selenium for Python, the previous steps would be written like this :
context = SharedSeleniumExecutionContext( Config.SELENIUM_HOST, Config.SELENIUM_PORT, Config.BROWSER, Config.DOMAIN)
user = SeleniumDrivenUser(context)
user.goesTo(Locations.MyAccount).andThen().shouldSee(Locators.INVOICE).withText(expectedInvoiceTotal)