For skipping test during maven build process you can use next tips:
IN CONSOLE:
mvn install -Dmaven.test.skip=true
or
mvn package -DskipTests
In IntelliJ IDEA:
1. Select step in IntellijIdea your want to modify and click Create button.
2. New Configuration task will apper in "Run Configurations" tree.
3. Select it and click right mouse button. Then click "Edit"
4. In "Command Line" add -DskipTests=true
5. Apply new changes.
Skills improver
Friday, January 13, 2017
Monday, July 22, 2013
Callable vs Runnable in java. Callable usage example.
Callable interface appeared in java.util.concurrent package in Java 1.5. Like a Runnable interface, Callable has the same purpose – to create executable tasks. But it provides more possibilities:
Thursday, July 18, 2013
Drag and Drop element using selenium example
In this article we will see how to drag and drop element using selenium. As example let's take JQuery slider to drag it's handle.
I will use JQuery slider from http://ui-dev.jquery.com/demos/slider/ page.
I will use JQuery slider from http://ui-dev.jquery.com/demos/slider/ page.
Sunday, July 7, 2013
Concurrency in java. ExecutorService.
High-level API for concurrency support appeared in Java 5. It includes different tools that make easier life for developers who work with a multi-threaded environment.
In particular, java.util.concurrent package contains a number of classes that help quick organize a thread pool. The following class diagram illustrates their hierarchy:
In particular, java.util.concurrent package contains a number of classes that help quick organize a thread pool. The following class diagram illustrates their hierarchy:
Check broken links on a Page using Selenium
In order to find and check broken links on a Page using Selenium we can do next steps:
All these steps realized and described below:
1. Find all links using findElements() method.
2. Check each link response using java.net.HttpURLConnection class. (if page return 404 code - link is broken)
All these steps realized and described below:
Saturday, July 6, 2013
ScheduledThreadPoolExecutor in examples.
ScheduledThreadPoolExecutor extends capabilities of ThreadPoolExecutor (class diagram here) and makes it possible to schedule tasks execution.
ScheduledExecutorService interface gives new methods:
- two of them for scheduling action (Runnable or Callable) to execute just ones:
schedule (Callable<V> callable, long delay, TimeUnit unit): <V> ScheduledFuture<V>
schedule (Runnable command, long delay, TimeUnit unit): ScheduledFuture<?>
- and two others for periodic task execution:
scheduleAtFixedRate (Runnable command, long initialDelay, long period, TimeUnit unit): ScheduledFuture<?>
scheduleWithFixedDelay (Runnable command, long initialDelay, long delay, TimeUnit unit): ScheduledFuture<?>
Let’s see how they work.
Wednesday, July 3, 2013
How to add FireBug extension in FireFox profile.
No need to explain how convinient and useful to have FireBug extension in a browser if you work with tools like Selenium WebDriver. Firebug is a powerfull extension that allows us inspect elements and their properties, find element's Xpath.
Let’s see how to add firebug extension in FireFoxProfile for debugging selenium tests in runtime.
Let’s see how to add firebug extension in FireFoxProfile for debugging selenium tests in runtime.
Labels:
FirefoxDriver,
FireFoxProfile,
Java,
Selenium,
Selenium/WebDriver
Saturday, June 29, 2013
Creating firefox profile for selenium tests
Sometimes it’s really useful to start Firefox browser with preconfigured properties in it's profile
It allows us to add some firefox addons like FireBug, and also using “setPreference()” method we can customize Firefox settings for out tests.
Let's look into a simple firefox profile for selenium tests example:
It allows us to add some firefox addons like FireBug, and also using “setPreference()” method we can customize Firefox settings for out tests.
Let's look into a simple firefox profile for selenium tests example:
Friday, June 28, 2013
ThreadPoolExecutor example
Let’s create a pool with fixed number of threads and execute tasks using it.
Assume that we have some list of elements and each of them should be processed by the same way. But processing takes a lot of time and we decided to use pool of threads.
Assume that we have some list of elements and each of them should be processed by the same way. But processing takes a lot of time and we decided to use pool of threads.
Subscribe to:
Posts (Atom)


