-
Fixed bug that not replace variables in when check url.
-
Added following step.
Then the [...] style contains '...'
-
Added feature to config variable in site config.
-
Re-arrange
config.yaml
fields as following example.## file config.yaml site_config: default: develop develop: urls: web: http://dev.yourdomain.com mobile: http://m-dev.yourdomain.com variables: var1: test var2: 1234 production: urls: web: http://www.yourdomain.com mobile: http://m.yourdomain.com variables: var1: test var2: 5678
To use variables in feature steps, use syntax
${var_name}
, for example:When user enters 'hello ${var1} and ${var2}' to the [search_box]
-
Drop
title:
config in page object file. -
Drop
route:
config in page object file, use new feature instead. -
Updated site config to support multiple sites.
New site configuration example.
## file config.yaml sites: default: develop develop: web: http://www.dev.yourdomain.com mobile: http://m.dev.yourdomain.com production: web: http://www.yourdomain.com mobile: http://m.yourdomain.com
Usage in page object file with
<config name>::/path/...
.## file xxx.yaml page: name: WebPageName url: mobile::/product/12345 ## browse to http://m.dev.yourdomain.com/product/12345
Switch site to run test with command option
site=<site name>
.$ cylon run all site=production
- Fixed bug when check element is invisible.
- Fixed bug cylon command fail when specify some options.
- Fixed bug on new steps in v1.2.1
- Added feature to test responsive windows, please follow these steps.
- run
cylon update project
command - configure your browser size in
responsive.yaml
- add option
browser-size=<name>
when runcylon
command
- run
-
Added following steps.
When user saves current page to file '...' When user saves screenshot to file '...' Then the [...] placeholder text is '...'
-
Added following steps.
When user scrolls to [...] Then the [...] value is equal to [...] value Then the [...] value is greater than [...] value Then the [...] value is greater than or equal to [...] value Then the [...] value is less than [...] value Then the [...] value is less than or equal to [...] value
-
Fixed bug for debug mode.
-
Added
screenshot
mode to save screenshots when step failed.cylon run all screenshot
NOTE: Need to run cylon update project
command.
-
Added command
cylon version
. -
Added step to repeat user steps.
Given user repeat following steps '...' times """ ... """
-
Fixed bug in wait for element visible.
-
Added click element by script step (used for some javascript element).
When user clicks the [...] by script
-
Added following steps.
When user waits for '...' seconds When user waits [...] appear for '...' seconds When user waits [...] disappear for '...' seconds
- Fixed to open and close browser for each feature.
- Fixed to support chrome driver.
- Added debug mode to cylon command.
NOTE: Need to run cylon update project
command.
- Added to maximize browser when start run.
-
Added following keywords.
Then the [...] class contains '...' Then the [...] value matches pattern '...' ## use regex pattern
- Improve element wait and synchronize.
- Removed specific selenium version in setup script.
-
Fixed to wait popup appear in following keywords.
When user accept the popup When user cancel the popup Then the popup message shows '...'
-
Fixed fail report on following keywords.
When user clicks the [...] When user enters '...' to the [...]
-
Added following keywords.
Then the [...] is enabled Then the [...] is disabled
- Fixed to wait and check url after open page.
- Fixed code to check when enters, clicks and selects fail.
- Fixed code to check selected text on select.
-
Fixed following keywords to wait for expected state (timeout 8 seconds).
Then the [...] exists Then the [...] does not exist Then the [...] is visible Then the [...] is invisible
- Fixed
IndexError: string index out of range
when run withoutsite=<site>
option. - Fixed cylon command to has return code when test failed.
NOTE: Need to run cylon update project
command.
- Fixed
AttributeError: 'Configuration' object has no attribute 'site'
NOTE: Need to run cylon update project
command.
-
Added site config in config.yaml file, example.
sites: default: http://www.yoursite.com develop: http://dev.yoursite.com
-
Added route config in pageobject file, example.
... page: name: home route: / ...
-
Fixed cylon command to run with configure site, example.
cylon run site=develop
-
Drop command
cylon run tags <tags>
usecylon run tags=<tags>
instead. -
Drop support for
site_url:
config in pageobject file. -
Drop support for
settings.yaml
file.
NOTE: Existing projects need to run cylon update project
command.
- Fixed bug on "move mouse over ..." step.
- Fixed NoneType error on check url keywords.
- Fixed NameError Page on check url keywords.
- Fixed running crash when check element visible.
- Added to check yaml syntax before run.
- Fixed console logs more readable.
- Updated code style follow PEP8.
NOTE: Existing projects need to run cylon update project
command.
-
Fixed wait time when find element.
-
Updated core libraries.
-
Updated code style follow PEP8
-
Addded unit test to core libraries.
-
Added CLI command to update project files.
Commands: ... update project Update project files to compatible with current version.
NOTE: Existing projects need to run update command above.
-
Added keywords to enters date, Example:
When user enters date 'today' to the [date input] When user enters date 'tomorrow' to the [date input] When user enters date next '3' days to the [date input] When user enters date '2014-07-07 00:00:00' to the [date input] # specific date time
- Fixed cylon CLI to working on Windows
-
Added cylon CLI feature (experimental)
Usage: cylon <command> [arguments] Commands: new project <name> Create new project directory. new feature <name> Create new feature file. new pageobject <name> Create new pageobject file. run all Run test with all feature. run tags <tags> Run test with specified tags.
-
Added following keywords to support multi-line content
When user enters following lines to the [element] """ This keyword can enters multi-line content to element. 1. line 1 content 2. line 2 content """ Then the [element] value is """ any multi-line content... """ Then the [element] value contains """ any multi-line content... """
-
Added accept fail keyword feature
This feature allow scenario to continue running when the specified step was failed
To use this feature just add
, accept fail
sentence after normal keyword for example:Then the [option1] is selected, accept fail Then user enters 'some text' to the [textbox] ## enters text to textbox either option1 was selected or not
-
Added conditional keyword feature
This feature allow to combine two steps as conditional and execution step, these two steps separated by
,
(comma and one space)If conditional step was passed it will continue running the execution step, else it will ignore for example:
When the [input] value is '1', user selects the [option1] When the [input] value is '2', user selects the [option2]
-
Added keywords to support url path
Given User has [ProductDetail/product1] page opened Then The browser shows [ProductDetail/product1] page
To use above pattern you need to define
url_paths:
in page object file like this.page: name: ProductDetail url: http://yoursite.com/product url_paths: - name: product1 path: /PID00001 - name: product2 path: /PID00002
- Fixed to support http authentication url (e.g.
http://user:pass@site.com
). - Fixed wait for page load before verify url.
- Fixed keywords to verify more than and less than value to compare with natural alphanumeric.
- Fixed code to get current selected value from select list.
-
Added Page Analysis feature.
-
Added new keyword.
Then The [...] value is between '...' and '...'
-
Fixed wait time when check element does not exist.
-
Fixed following keywords to support numeric value.
Then The [...] value is more than '...' Then The [...] value is more than or equal '...' Then The [...] value is less than '...' Then The [...] value is less than or equal '...' Then The [...] value is between '...' and '...'
-
Updated verify failure message.
- First stable release.