User Guide For Cukes Digital
User Manual:
Open the PDF directly: View PDF .
Page Count: 22
Download | |
Open PDF In Browser | View PDF |
2016 User Guide for Cukes-Digital Author: Aniruddh Bajpai Guided By: Arun Pakkan 7/22/2016 Table of Contents Summary: .................................................................................................................................. 3 Skill set required for using Cukes - Digital: ................................................................................. 3 Tool set required for Cukes- Digital: ........................................................................................... 3 Setting Up Prerequisites for Android: ......................................................................................... 3 Setting Up Prerequisites for iOS: ............................................................................................... 5 Setting Up Cukes - Digital framework: ........................................................................................ 5 Cukes- Mobile Testing: .............................................................................................................. 6 Cukes- Mobile: CREATE: ........................................................................................................... 7 Cukes- Mobile: Create Feature and Step Definition:................................................................... 8 Cukes- Mobile: Create Step Definition: .....................................................................................10 Cukes- Mobile: Tag: ..................................................................................................................11 Cukes- Mobile: Execute: ...........................................................................................................12 Cukes- Mobile: Execute: Real Device .......................................................................................12 Cukes- Web Testing:.................................................................................................................15 Cukes- Web: CREATE: .............................................................................................................15 Cukes- Web: Create Feature and Step Definition:.....................................................................16 Cukes- Web: Create Step Definition:.........................................................................................19 Cukes- Web: Execute: Tags......................................................................................................21 Cukes- Web: Execute: ..............................................................................................................21 Cukes-Digital Page 2 Summary: Capgemini Cukes Digital Framework provides a comprehensive Test Automation solution for Cross channel applications leveraging the Agile-BDD methodologies and it allows seamless integration with Cloud , DevOps tools and services Skill set required for using Cukes - Digital: 1) 2) 3) 4) 5) 6) Basics of Automation Testing Basics of Java Basics of Selenium Web Driver Basics of Appium Understanding in POM Understanding of Cucumber Tool set required for Cukes- Digital: 1- Eclipse latest version 2- JDK 1.8, JRE 8.0 3- Android SDK for Android 4- Xcode for iOS 5- In Windows we can perform execution only on android device 6- In Mac we can perform Execution on both devices android as well as ios. 7- Selenium Jar files 8- Appium Java-Client 9- Appium Desktop Application 10- Extent-Report Jar file 11- Cucumber Jar File Setting Up Prerequisites for Android: 1- Set up JAVA_HOME in environment variable. Cukes-Digital Page 3 2- Set up Java Path in environment variable. 3- Set up ANDROID_HOME in environment variable. Cukes-Digital Page 4 4- Set up Android Path in environment variable: Path will be till tools & Platform tools folder in Android SDK. 5- Enable debugging option in device. Go to setting Go to about device Click multiple time on build number and this will enable Developer Option Go to Developer Option and enable USB Debugging. 6- Connect device with system and run cmd and type command adb devices it will list connected device in system. Setting Up Prerequisites for iOS: 1- MAC OS-10.11 recommended 2- Xcode 6.0, 7.1.1 recommended 3- Apple Developer Tools (iPhone simulator SDK, command line tools) Setting Up Cukes - Digital framework: 1) Extract The Cukes-Digital Zip file on your local machine provided by Mobile COE. Cukes-Digital Page 5 2) Create a local workspace in Eclipse and import Cukes- Digital into it. 3) Open the Cukes – Digital Project in eclipse. 4) Launch the Cukes – Digital front screen will display which looks like below 5) Select the present option accordingly, If you want to go with Mobile Testing (Native, Hybrid, Web) then select Mobile Testing. If you want to go Web Testing then go with Web Testing Cukes- Mobile Testing: Cukes – Digital offer to perform mobile automation testing in BDD methodology with various options like cloud based testing, real device testing, Jenkins for CI integration. You can directly go to different options with Mobile- Cukes digital window. CUKES-DIGITAL MOBILE WINDOW: Cukes-Digital Page 6 Once you will navigate to CUKES MOBILE WINDOW you will get different options: 1234- Create Execute Cloud Jenkins We will talk about all these options how they work and how to maintain them. Cukes- Mobile: CREATE: Click on CREATE option and navigate to ‘Create’ window, on this window you will get multiple options like: 1- Create Feature Definition 2- Create Step Definition 3- Tag Feature Definition: As we following BDD approach for this framework so we required to create feature definition file in gherkin language with different annotations like Scenario , Feature, Back ground ,Given, When , Then , And , But ,* , Outline , Example ,tags etc Let’s have overview what this annotation does: GIVEN: Given defines a precondition to the test. WHEN: When keyword defines the test action that will be executed. By test action we mean the user input action. THEN: Then keyword defines the Outcome of previous steps. AND: And keyword is used to add conditions to your steps. BUT: But keyword is used to add negative type comments. * Keyword: This keyword is very special. This keyword defies the whole purpose of having Given, When, Then and all the other keywords. Basically Cucumber doesn’t care about what Keyword you use to define test steps, all it cares about what code it needs to execute for each step. Scenario: This cucumber tag use to define what test case we going to script. Feature: This cucumber tag use to define what kind of scenario we are going to cover. Cukes-Digital Page 7 Scenario Outline and Example: This cucumber tag use to cover data driven approach. Cukes- Mobile: Create Feature and Step Definition: Click on Create Feature and Step Definition option and navigate to ‘Create Feature and Step Definition’ window, on this window you will get multiple options like: 1- Make changes to existing feature and generate glue code 2- Make changes in step definition 3- Create new feature Make changes to existing feature and generate glue code: If you want to make changes in existing feature file then select feature from drop down which you had previously created. Make changes in existing step definition: If you want to make changes in existing step definition then click on ‘CLICK HERE ‘it will take to new window and you can make change accordingly and Save the changes Cukes-Digital Page 8 Create New Feature File: If you want to create new feature file then ‘CLICK HERE ‘it will take to new window and you write down new feature and save accordingly what name you required with extension .feature CREATE WINDOW Cukes-Digital Page 9 SAVE WINDOW: Once creation or modification done go back to Mobile window and generate step definition to make feature run able and interact with application Cukes- Mobile: Create Step Definition: To create step definition you required to generate glue code. Glue code in empty structure of methods with annotation of cucumber. It allows us to make feature definition file run able and interact with applications. Click on generate glue code button and copy that code and paste in step definition field and write down code accordingly to make run able. Cukes-Digital Page 10 Cukes- Mobile: Tag: Click on tag button it take you to runner class and define the scenario tag you want run Cukes-Digital Page 11 Cukes- Mobile: Execute: Navigate back to Cukes mobile window and select option ‘EXECUTE’. In execute window you will different fields like tag , tag specifies that you want to execute specific feature or scenario. Cukes- Mobile: Execute: Real Device Provide required data and click on EXECUTE button. After clicking execution will began on real device which is connected to system. If you want to cast your device in screen click on ‘SCREEN-CAST’. This will display device on desktop. Cukes –Cloud: Right now cukes –digital support Browser Stack(Mobile Web) and Perfecto (Native , Hybrid), to perform cloud test select the device and provide data For native and hybrid navigate to Cukes perfecto window and provide data accordingly and perform exection: Cukes-Digital Page 12 For mobile web navigate to Cukes browser stack window and provide data accordingly and perform execution: Cukes-Digital Page 13 Cukes –Mobile Results: After completion of automation suite, module wise folder structure will be created through automation scripts to hold html reports. HTML reports will have step wise description of action performed along with link to the screenshot for that specific action with complete screenshot. Cukes –Mobile Jenkins: \ Jenkins use to provide CI integration solution, If you need to perform CI solution then click on Jenkins option and will take you to Jenkins window and began the execution. Cukes-Digital Page 14 Cukes- Web Testing: Cukes – Digital offer to perform web automation testing in BDD methodology with various options like cloud based testing, real device testing, Jenkins for CI integration. You can directly go to different options with Mobile- Cukes digital window. CUKES-DIGITAL WEB WINDOW: Once you will navigate to CUKES WEB WINDOW you will get different options: 5678- Create Execute Cloud Jenkins We will talk about all these options how they work and how to maintain them. Cukes- Web: CREATE: Click on CREATE option and navigate to ‘Create’ window, on this window you will get multiple options like: 4- Create Feature Definition 5- Create Step Definition 6- Tag Feature Definition: Cukes-Digital Page 15 As we following BDD approach for this framework so we required to create feature definition file in gherkin language with different annotations like Scenario , Feature, Back ground ,Given, When , Then , And , But ,* , Outline , Example ,tags etc Let’s have overview what this annotation does: GIVEN: Given defines a precondition to the test. WHEN: When keyword defines the test action that will be executed. By test action we mean the user input action. THEN: Then keyword defines the Outcome of previous steps. AND: And keyword is used to add conditions to your steps. BUT: But keyword is used to add negative type comments. * Keyword: This keyword is very special. This keyword defies the whole purpose of having Given, When, Then and all the other keywords. Basically Cucumber doesn’t care about what Keyword you use to define test steps, all it cares about what code it needs to execute for each step. Scenario: This cucumber tag use to define what test case we going to script. Feature: This cucumber tag use to define what kind of scenario we are going to cover. Scenario Outline and Example: This cucumber tag use to cover data driven approach. Cukes- Web: Create Feature and Step Definition: Click on Create Feature and Step Definition option and navigate to ‘Create Feature and Step Definition’ window, on this window you will get multiple options like: 4- Make changes to existing feature and generate glue code 5- Make changes in step definition 6- Create new feature Cukes-Digital Page 16 Make changes to existing feature and generate glue code: If you want to make changes in existing feature file then select feature from drop down which you had previously created. Make changes in existing step definition: If you want to make changes in existing step definition then click on ‘CLICK HERE ‘it will take to new window and you can make change accordingly and Save the changes Cukes-Digital Page 17 Create New Feature File: If you want to create new feature file then ‘CLICK HERE ‘it will take to new window and you write down new feature and save accordingly what name you required with extension .feature CREATE WINDOW Cukes-Digital Page 18 SAVE WINDOW: Once creation or modification done go back to Web window and generate step definition to make feature run able and interact with application Cukes- Web: Create Step Definition: To create step definition you required to generate glue code. Glue code in empty structure of methods with annotation of cucumber. It allows us to make feature definition file run able and interact with applications. Click on generate glue code button and copy that code and paste in step definition field and write down code accordingly to make run able. Cukes-Digital Page 19 Cukes- WEB: Tags: Click on tag button it take you to runner class and define the scenario tag you want run Cukes-Digital Page 20 Cukes- Web: Execute: Tags Navigate back to Cukes mobile window and select option ‘EXECUTE’. In execute window you will different fields like tag , tag specifies that you want to execute specific feature or scenario. Cukes- Web: Execute: Provide required data and click on EXECUTE button. After clicking execution will began on all browser which is selected. Cukes –WEB: Cloud: Right now cukes –digital support Browser Stack(Web) select the browser and provide data Cukes – Web Results: After completion of automation suite, module wise folder structure will be created through automation scripts to hold html reports. HTML reports will have step wise description of action performed along with link to the screenshot for that specific action with complete screenshot. Cukes-Digital Page 21 Cukes –WEB Jenkins: \ Jenkins use to provide CI integration solution, If you need to perform CI solution then click on Jenkins option and will take you to Jenkins window and began the execution. Cukes-Digital Page 22
Source Exif Data:
File Type : PDF File Type Extension : pdf MIME Type : application/pdf PDF Version : 1.5 Linearized : No Page Count : 22 Language : en-US Tagged PDF : Yes Title : User Guide for Cukes-Digital Author : Author: Aniruddh Bajpai Creator : Microsoft® Office Word 2007 Create Date : 2016:07:26 16:47:49+05:30 Modify Date : 2016:07:26 16:47:49+05:30 Producer : Microsoft® Office Word 2007EXIF Metadata provided by EXIF.tools