Что такое findslide.org?

FindSlide.org - это сайт презентаций, докладов, шаблонов в формате PowerPoint.


Для правообладателей

Обратная связь

Email: Нажмите что бы посмотреть 

Яндекс.Метрика

Презентация на тему Introduction in test automation

Gradle settings buildscript { repositories { jcenter { url "http://jcenter.bintray.com/" } } } allprojects {
1. Introduction in test automation Gradle settings buildscript {   repositories { Gradle settingsdependencies {   testCompile group: 'junit', name: 'junit', version: '4.11' Gradle Settingstest {   testLogging {     // jUnit Annotation@BeforeClass public static void createAndStartService() throws IOException {   service jUnit Annotation@Before public void setUp() throws Exception {   driver = jUnit Annotation@Test public void openGoogle() throws Exception {   driver.get( jUnit Annotation@After public void closeDriver() throws Exception{   driver.close(); } jUnit Annotation@AfterClass public void result() throws Exception{   System.out.println(
Слайды презентации

Слайд 2 Gradle settings
buildscript { repositories {

Gradle settings buildscript {  repositories {   jcenter {

jcenter { url

"http://jcenter.bintray.com/" } } } allprojects { repositories { jcenter { url "http://jcenter.bintray.com/" } } }

Слайд 3 Gradle settings
dependencies { testCompile group: 'junit', name:

Gradle settingsdependencies {  testCompile group: 'junit', name: 'junit', version: '4.11'

'junit', version: '4.11' // https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java compile group:

'org.seleniumhq.selenium', name: 'selenium-java', version: '2.53.1' // https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-chrome-driver compile group: 'org.seleniumhq.selenium', name: 'selenium-chrome-driver', version: '3.3.1' }

Слайд 4 Gradle Settings
test { testLogging {

Gradle Settingstest {  testLogging {   // Make sure

// Make sure output from

// standard out or error is shown // in Gradle output. showStandardStreams = true } } tasks.withType(Test) { testLogging { events 'started', 'passed' } }

Слайд 5 jUnit Annotation
@BeforeClass public static void createAndStartService() throws IOException {

jUnit Annotation@BeforeClass public static void createAndStartService() throws IOException {  service

service = new ChromeDriverService.Builder()

.usingDriverExecutable(new File("\\chromedriver.exe")) .usingAnyFreePort() .build(); service.start(); }

Слайд 6 jUnit Annotation
@Before public void setUp() throws Exception {

jUnit Annotation@Before public void setUp() throws Exception {  driver =

driver = new ChromeDriver(service); driver.manage().timeouts().implicitlyWait(90, TimeUnit.SECONDS); driver.manage().window().maximize(); }


Слайд 7 jUnit Annotation
@Test public void openGoogle() throws Exception {

jUnit Annotation@Test public void openGoogle() throws Exception {  driver.get(

driver.get("http://google.com.ua"); driver.findElement(By.id("id")).click(); driver.findElement(By.xpath(".//*[@id='root']/form/input[2]")).sendKeys("dadkhb"); }


Слайд 8 jUnit Annotation
@After public void closeDriver() throws Exception{ driver.close(); }

jUnit Annotation@After public void closeDriver() throws Exception{  driver.close(); }

  • Имя файла: introduction-in-test-automation.pptx
  • Количество просмотров: 108
  • Количество скачиваний: 0