This framework is build using Serenity, JBehave, Java, WebDriver, maven Purpose was to automate acceptance test in BDD approach
- Test are written in BDD
- JBhave story fils eare created
- This framework supports multiple OS and browser
- For demo purpose I have added plugin for IE
- This can be executed from command prompt, Eclipse or anf CI tool
- We get a detailed serenity report that can be viewed in browser
- We can track Epic, Requirement , Stories
- JAVA and maven installed and setup
- Sometime browser version can create conflict in execution of these tests, that can be resolved. But for demo purpose i will suggest take latest IE or Firefox.
- Check out this source code
- Open comand prompt and go to the root of the repository and execute below for test to be executed is chrome (prefer chrome) mvn integration-test -Dwebdriver.chrome.driver=chromedriver.exe -Dwebdriver.driver=chrome -Dwebdriver.base.url= serenity:aggregate -Dit.test=AcceptanceTestSuite
Or For IE use below command mvn integration-test -Dwebdriver.ie.driver=IEDriverServer.exe -Dwebdriver.driver=iexplorer -Dwebdriver.base.url= serenity:aggregate -Dit.test=AcceptanceTestSuite
Or For Firefox use below command mvn integration-test -Dwebdriver.base.url= serenity:aggregate -Dit.test=AcceptanceTestSuite
All the BDD have not been automated, as my purpose was to prove automation
- create hotel entry -- Implemented
- create customer entry -- Implemented
- delete customer entry -- Implemented
- delete a customer entry -- Not Implemented
- For multiple entry or multiplerecord creation for hotelor customer we can use same test with multiplerecord i.e Example data
- field validation for hotel creation form -- Not Implemented
- field validation for customer form -- Not Implemented
- search functionality -- Not Implemented
- Once execution is successful. Navigate to the root folder of the framework.
- Navigate to /target/site/serenity/index.html
- This reportcan be viewed in any browser.
- This report can be integrated with any CI tool.