0.0.0 • Published 8 years ago

qaify v0.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

Qaify

Generate page objects by interpreting web based applications / pages and outputting PageObjects which are an API for all of the interactive parts of the page. These can be used to control the page from a program and is especially usefull as the basis of automation tests. The output Page Object is never intended to be 100% accurate and there will always be some hand crafting involved on more complex pages. Rather the output helps by creating 'boilerplate' code.... etc...

##Configuration The output Page Object is completely configurable by config.json which is defined below:

###Basic properties | property | values |Comment| | --------------------- | ------------- |-------------| | datasource | mock or webdriver.io |the type of data source, this should refer to a implementation that returns an array of elements that will form the basis of the Page Object| |pageObjectType| nightwatch | the type of page object that will be output|

###Strategy The strategy with which to create the page object

propertyvaluesComment
selectorcss selectorthe selector that returns an array of elements that form the basis of the Page Object. this will usually be all elements that the user would interact with by clicking on, filling in or reading
functionNamehtml attributeThe attribute that the function name will be named after. for example id='submit' for a button input will return submitButton()
selectorAttributehtml attributeThe attribute which will for the basis of the css selector. usually id but can be any attricbute, even custom attributes like qa-data