Selenium with protractor Selenium protractor Core java Javascript ,jquiry ,angular.js MavenB Npm ,bower Java environment Node js environment testNG.xml Package.json Eclips Webstorm Svn Git Sql mongoD TestNG (data driven,keyword driven) Jasmine , cucumber , mocha&chai (BDD AND TDD ) Reporting;-extend reporting ,listener reporting , html reporting , testing reporting Jasmine reporting , protractor-screenshot- reporting, jasmine-spec-reporting with node options
Pre requirements to run protractor • Node .js • Java (jdk)to run the selenium server • Npm • Selenium stand alone • Jasmine inbuilt with protractor
npm • Npm using for installation and uninstallation , updating , to running . • to install pre requirement of protractor :- • Npm install selenium-webdriver • Npm webdriver-manager update • Npm webdriver-manager start • Npm install protractor --save –dev • Npm install protractor-generator -g • Npm install chome driver , (same as all drivers ) • Npm install grunt-protractor-runner –save –dev • Npm install npm –g • Npm install protractor-html-screenshot-reporter –save -dev
Debugging • Broweser-pause(); • Browser.debugger(); Elements :- In webdriver :- findelement(); and findelements() ; In protractor :- element() and element.all() Shortcut of protractor elements :- $(); and $$();
Configaration file • Config having 4 things mainly :- • 1.selenium server (to handling to browsers and invoke the webdriver browser api’s ) • 2.browser capability (protractor can test directly aginist chorome ,firefox,opera,etc) • 3.specs ( spec is test case file , we are menction test script name in here specs , same as suite execution ) • 4.node options (to reporting and changing jamsmine colores , include node futures )
Locators • Protractor we can use angular and non angular js apps and single page app or multible pages are . • If app is java app:- by.id,css,name.xpath,tagname,classname,partiallinktext. • If app is angular.js:- by.binding , by.select ,by.input, by.model ,by.textarea, by.repeator, by.bottentext ,by.partialBottenText
• Thank you • Urs • Harikrishna boga • bogaharikrishna@gmail.com

Selenium with protractor

  • 1.
    Selenium with protractor Seleniumprotractor Core java Javascript ,jquiry ,angular.js MavenB Npm ,bower Java environment Node js environment testNG.xml Package.json Eclips Webstorm Svn Git Sql mongoD TestNG (data driven,keyword driven) Jasmine , cucumber , mocha&chai (BDD AND TDD ) Reporting;-extend reporting ,listener reporting , html reporting , testing reporting Jasmine reporting , protractor-screenshot- reporting, jasmine-spec-reporting with node options
  • 2.
    Pre requirements torun protractor • Node .js • Java (jdk)to run the selenium server • Npm • Selenium stand alone • Jasmine inbuilt with protractor
  • 3.
    npm • Npm usingfor installation and uninstallation , updating , to running . • to install pre requirement of protractor :- • Npm install selenium-webdriver • Npm webdriver-manager update • Npm webdriver-manager start • Npm install protractor --save –dev • Npm install protractor-generator -g • Npm install chome driver , (same as all drivers ) • Npm install grunt-protractor-runner –save –dev • Npm install npm –g • Npm install protractor-html-screenshot-reporter –save -dev
  • 4.
    Debugging • Broweser-pause(); • Browser.debugger(); Elements:- In webdriver :- findelement(); and findelements() ; In protractor :- element() and element.all() Shortcut of protractor elements :- $(); and $$();
  • 5.
    Configaration file • Confighaving 4 things mainly :- • 1.selenium server (to handling to browsers and invoke the webdriver browser api’s ) • 2.browser capability (protractor can test directly aginist chorome ,firefox,opera,etc) • 3.specs ( spec is test case file , we are menction test script name in here specs , same as suite execution ) • 4.node options (to reporting and changing jamsmine colores , include node futures )
  • 6.
    Locators • Protractor wecan use angular and non angular js apps and single page app or multible pages are . • If app is java app:- by.id,css,name.xpath,tagname,classname,partiallinktext. • If app is angular.js:- by.binding , by.select ,by.input, by.model ,by.textarea, by.repeator, by.bottentext ,by.partialBottenText
  • 7.
    • Thank you •Urs • Harikrishna boga • bogaharikrishna@gmail.com