The fast and the continuous (SeleniumCamp 2014)

download The fast and the continuous (SeleniumCamp 2014)

If you can't read please download the document

Transcript of The fast and the continuous (SeleniumCamp 2014)

Diapositiva 1

UI-

!

The fast and
the continuous

Andrei Solntsev

5 ,

1



1



1



!

2

PageObjects

3

TestNG
,
JUnit

4




SSL ?

5



?

-

!

J. B. Rainsberger

Integration tests are SCAM

http://devconfu.eu/video/239

J. B. Rainsberger

Integration tests are SCAM

Integration tests are SCAM

Integration tests are SCAM

Integration tests are SCAM

Integration tests are SCAM

!

!

!

!

UI- -

UI-

!

-

UI-

-

- -

- -

? !

!

, ...

-,
.

,
-!

UI-?

!

Rocket science

: 100 /

150

?

Rocket science

WebDriver

Login

!

LoginTest- 1

- 2

- 3

Login

!

NewOrderTest- 1

- 2

/fastLogin?user=bob&url=new-order

?

!

/fastLogin?user=bob&url=new-order

In-memory H2, Sqlite

- Jetty

- Play!

http://habrahabr.ru/post/126066/

@BeforeClasspublic static void startServer() { Server server = new Server(8080);

WebAppContext shop = new WebAppContext("webapp", "/shop"); server.setHandlers(shop);

server.start();}

open(http://localhost:8080/shop);

In-memory DB

db.url=jdbc:oracle:thin:@ip:1521:SIDdb.driver=oracle.jdbc.OracleDriver

%test.db.url=jdbc:h2:mem:shop%test.db.driver=org.h2.Driver

DB

create table lang_words ();

http://xpdays.com.ua/materials/agile-db-with-liquibase/

https://github.com/asolntsev/hangman

5 ,



200
5 !

In-memory DB


fastLogin



50 !

PageObjects

TestNG vs JUnit

http://xpdays.com.ua/materials/junit-vs-testng/

! - fastLogin

UI- 1-2

100500 - -

SSL

!

GIT

http://localhost:8080

> ant test

> ant uitest

,


,

100500

do MORE with LESS

https://dl.dropboxusercontent.com/u/2856647/aikido.mp4

,
100500

, ,

[email protected]/asolntsev

selenide.org