Jul
23
revised Selenium and Parallelized JUnit - WebDriver instances
added 242 characters in body
Jul
22
comment Selenium and Parallelized JUnit - WebDriver instances
It is quite easy to extract all parallel related logic to superclass, take a look at this gist.
Jul
22
revised Selenium and Parallelized JUnit - WebDriver instances
deleted 1 character in body
Jul
22
comment Selenium and Parallelized JUnit - WebDriver instances
Code in @BeforeClass is executed only once and by main thread (also when @Parametrized is used). So yes, you would iterate and initialize all required WebDriver instances but cannot store them in ThreadLocal to be available later in worker threads execution context. At the other hand, cleaning is possible and simpler in @AfterClass - it's called once and we can just iterate on all registered WebDriver instances.
Jul
22
awarded Revival
Jul
22
revised Selenium and Parallelized JUnit - WebDriver instances
deleted 3 characters in body
Jul
21
comment How to insert an "info" node into a linked-list, numerically or alphabetically, without using a sorting method?
Maybe List is not best data structure for your needs ? Can you explain what are you going to do with this information after inserting ?
Jul
21
revised Selenium and Parallelized JUnit - WebDriver instances
added 111 characters in body
Jul
21
awarded Editor
Jul
21
revised Selenium and Parallelized JUnit - WebDriver instances
deleted 19 characters in body
Jul
21
answered Selenium and Parallelized JUnit - WebDriver instances
May
24
comment Selenium and Parallelized JUnit - WebDriver instances
To make sure what you want to achieve: 1. Write one class with T number of test cases (lets call it T1, T2, ...). 2. Use JUnit parametrization (P browser types, lets call it P1, P2, ...) to make JUnit run PxT number of test cases. 3. For particular P type set of test cases (PxT1, PxT2, PxT3, etc) instantiate specific Px WebDriver only once and destroy it at the end. 4. Parallelize execution of test cases but only on browser type (in other words, guarantee that no test with the same Px will run concurrently). / Is that the case ?
Mar
26
comment When do you use git rebase instead of git merge?
As others pointed out and I agree with, part of this example has serious flaw. By executing git checkout master and later git rebase cool-feature you are rebasing master onto cool-feature. In other words you are replaying some changes from tip of the master on top of cool-feature branch. And because master typically comes from origin repository what you are effectively doing is changing master history and this is bad idea.
May
11
awarded Supporter
Feb
29
answered Is there a way to find out how long it takes for websphere process a request
Jul
21
comment Maven: compile aspectj project containing Java 1.6 source
I tried it in my maven module and it worked. Although finally resigned from excluding such this because of other reason. My project uses national characters and aspectj-maven-plugin seems to mess up with encodings. So finally I refactored module that there is no references from java to aj. Javac compiles .java and after that AspectJ compiles missing .aj files. So far working like a charm.
Jul
2
awarded Teacher
Jun
29
answered Maven: compile aspectj project containing Java 1.6 source