Presentation is loading. Please wait.

Presentation is loading. Please wait.

Developing for Selenium Grid

Similar presentations


Presentation on theme: "Developing for Selenium Grid"— Presentation transcript:

1 Developing for Selenium Grid
Dima Kovalenko

2

3 What is Selenium Grid? Distribute Parallelize Share resources

4

5 Distribute

6 Distribute 1 computer vs many

7

8

9 Node Config JSON

10

11 Parallelize

12

13 Session ID Every test has a session unique session id
3e6f47aa-16ec c1f-3b17a Session ID is only way to identify each test request

14 Share Resources

15 Share Resources Multiple teams can use same browsers
No need to purchase individual computers for each team

16 Getting Source Code Git clone Open with
Open with Inteli J Eclipse

17 Proxies

18

19 DefaultRemoteProxy.java Passes commands from test Interesting methods
getNewSession() beforeSession() afterSession() beforeCommand() afterCommand() beforeRelease()

20 Selenium Grid Extras Source Code

21 Overwriting Default Proxy

22 Overwriting Default Proxy

23 Why video record?

24

25

26

27 Before Command

28

29 Adding New Proxy Command Line “proxy” argument Config JSON

30

31 Special Note Proxy to use config is defined on the node
The HUB needs to be in class of the HUB Runs only on HUB instance! Multiple proxies

32 Prioritizers Default FIFO First In, First Out Interface Class

33

34 Capability Matcher

35 Capability Matcher matches() Returns bolean

36

37 Config JSON

38 Servlet Allows user to implement custom HTTP endpoints
Can be any valid HTTP format HTML JSON XML

39

40

41

42 Compiling into JARs Maven Javac Etc

43 Classpath


Download ppt "Developing for Selenium Grid"

Similar presentations


Ads by Google