*webinar* learn from the experts: how to boost test coverage with automated visual testing

53

Upload: applitools

Post on 09-Jan-2017

212 views

Category:

Software


3 download

TRANSCRIPT

Page 1: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 2: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 3: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 4: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 5: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 6: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 7: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 8: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 9: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 10: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 11: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 12: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 13: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 14: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 15: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 16: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 17: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 18: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 19: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 20: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing

import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; public class NoApplitools {

public static void main(String[] args) { WebDriver driver = new ChromeDriver(); driver.get("https://stareast.techwell.com/program/concurrent-sessions/" + "boost-test-coverage-automated

+ “-visual-testing"); driver.findElement(By.partialLinkText("Joe Colantonio”)).click(); driver.quit();

}

}

Page 21: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing

<dependency><groupId>com.applitools</groupId><ar7factId>eyes-java</ar7factId><version>RELEASE</version></dependency>

Page 22: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing

importcom.applitools.eyes.Eyes;importcom.applitools.eyes.MatchLevel;importcom.applitools.eyes.RectangleSize;

Page 23: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing

WebDriver driver = new ChromeDriver(); Eyes eyes = new Eyes();

Page 24: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing

eyes.setApiKey(getKey()); eyes.setForceFullPageScreenshot(true); eyes.setBaselineName(”StarEast"); eyes.setMatchLevel(MatchLevel.LAYOUT2); driver=eyes.open(driver,"StarEast","StarEastDemo",newRectangleSize(1000,800));

Page 25: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing

driver.get("https://stareast.techwell.com/" + "program/concurrent-sessions/boost” + "-test-coverage-automated-visual- testing"); eyes.checkWindow("Joe Session Main Page");

Page 26: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing

driver.findElement(By.partialLinkText ("Joe Colantonio")).click(); eyes.checkWindow("About Joe Colantonio"); eyes.close();

Page 27: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 28: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing

Exception in thread "main" com.applitools.eyes.NewTestException: 'StarEast' of 'Stareast Demo'. Please approve the new baseline at https://eyes.applitools.com/app/sessions/123456789=1

Page 29: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 30: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 31: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing

Exception in thread "main" com.applitools.eyes.TestFailedException: 'StarEast' of 'Stareast Demo'. See details at https://eyes.applitools.com/app/sessions/1234accountId=1 at com.applitools.eyes.EyesBase.close(EyesBase.java:600)

at com.applitools.eyes.Eyes.close(Eyes.java:12) at com.applitools.eyes.EyesBase.close(EyesBase.java:540) at com.applitools.eyes.Eyes.close(Eyes.java:12) at TestApplitools.main(TestApplitools.java:41)

Page 32: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 33: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing

●  Needle(PythonWD)●  WebDriverCss(JSWebDriverIO)●  Gemini(JSDSL)●  SeleniumVisualDiff(JavaWD)●  VisualCepDon(PHPCodeCep7on)●  Pix-Diff(JSProtractor)●  Shoov(JSWebDriverIO)●  Vizregress(.NETWD)●  RspecPageRegression(Capibara)●  ApplitoolsEyes(AllWD+Appium)●  PhantomCSS(JSCasperJS)●  Specter(JSDSL)●  FBSnapshotTestCase(XCTest)

●  Viff●  CSSVisualTest●  GreenOnion●  Wraith-Selenium●  Wraith●  Dpdxt●  GruntPhotoBox●  Grunt-Vigo●  SnapAndCompare●  BackstopJS●  CSSCriDc●  Kobold●  DiffCop●  SUCCSS

Page 34: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 35: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing

Cool Ways to Use Visual Tests to Boost Your Test

Coverage

Page 36: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 37: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 38: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 39: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 40: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing

public void verifyExams() { eyes.checkWindow("Exams"); }

Page 41: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 42: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 43: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 44: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 45: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 46: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 47: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 48: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 49: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 50: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 51: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 52: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing
Page 53: *Webinar* Learn from the Experts: How to Boost Test Coverage with Automated Visual Testing

https://automationguild.com