<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Handlers</title><link>https://sourceforge.net/p/bubik/wiki/Handlers/</link><description>Recent changes to Handlers</description><atom:link href="https://sourceforge.net/p/bubik/wiki/Handlers/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 01 Jul 2014 09:26:55 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/bubik/wiki/Handlers/feed" rel="self" type="application/rss+xml"/><item><title>Handlers modified by Bartek Wilczek</title><link>https://sourceforge.net/p/bubik/wiki/Handlers/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -11,7 +11,7 @@
     browser = webdriver_handler.driver

     # In other handlers:
-    webdriver_handler = @test.handler( :webdriver )
+    webdriver_handler = @runner.get_handler( :webdriver )
     browser = webdriver_handler.driver

 The code above will set webdriver_handler variable to reference to instance of Webdriver hander object that is created once per whole test execution process. If there's a need to have multiple instances of the same handler class (for example to have multiple browser sessions for one test) additional parameter instance_id has to be introduced to 'handler' function call:
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bartek Wilczek</dc:creator><pubDate>Tue, 01 Jul 2014 09:26:55 -0000</pubDate><guid>https://sourceforge.net6ce4172462bf23fb879c0252e349d48b8e55f0dc</guid></item><item><title>WikiPage Handlers modified by Bartek Wilczek</title><link>https://sourceforge.net/p/bubik/wiki/Handlers/</link><description>&lt;pre&gt;--- v3 
+++ v4 
@@ -26,4 +26,4 @@
 
 ### Life cycle
 
-asd
+An instance of handler class is created when handler() function is called for the first time in any place of the code. Handler class implements Listener interface, so it supports methods start_exec, start_test, start_variant, end_variant, end_test, end_exec. When first instantiated execution control flow is inside 'variant' so the following 3 methods are executed: start_exec, start_test, start_variant. Initialization of objects needed throughout the whole execution should be set in start_exec and cleaned up in end_exec. Other start/end methods can be used to manipulate these internal objects: for example Webdriver handler uses start_variant method to restart browser window on each variant.
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bartek Wilczek</dc:creator><pubDate>Wed, 07 Mar 2012 14:53:37 -0000</pubDate><guid>https://sourceforge.netc752c42db25e451cd8098cd80f98b94bc4e047ee</guid></item><item><title>WikiPage Handlers modified by Bartek Wilczek</title><link>https://sourceforge.net/p/bubik/wiki/Handlers/</link><description>&lt;pre&gt;--- v2 
+++ v3 
@@ -6,7 +6,23 @@
 
 ### Accessing handlers from test code
 
-asd
+    # In test code:
+    webdriver_handler = handler( :webdriver )
+    browser = webdriver_handler.driver
+
+    # In other handlers:
+    webdriver_handler = @test.handler( :webdriver )
+    browser = webdriver_handler.driver
+    
+The code above will set webdriver_handler variable to reference to instance of Webdriver hander object that is created once per whole test execution process. If there's a need to have multiple instances of the same handler class (for example to have multiple browser sessions for one test) additional parameter instance_id has to be introduced to 'handler' function call:
+
+    # In test code:
+    webdriver_handler = handler( :webdriver, 2 )
+    browser = webdriver_handler.driver
+
+    # In other handlers:
+    webdriver_handler = @test.handler( :webdriver, 2 )
+    browser = webdriver_handler.driver
 
 ### Life cycle
 
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bartek Wilczek</dc:creator><pubDate>Wed, 07 Mar 2012 14:35:46 -0000</pubDate><guid>https://sourceforge.net61fe71fbd33e147788faeeab6f23c2e4ad1b2425</guid></item><item><title>WikiPage Handlers modified by Bartek Wilczek</title><link>https://sourceforge.net/p/bubik/wiki/Handlers/</link><description>&lt;pre&gt;--- v1 
+++ v2 
@@ -1,1 +1,13 @@
+### Introduction
+
 Each test in bubik is represented by an independent object (instance of Scenario class). It's lifetime is limited only to time of 'run' method execution. None of the object created inside a test can be reused in other tests. Therefore the concept of handlers has been introduced.
+
+Handler is an instance of a class that extends Bubik::Handler and is located in module Bubik::Handlers. Built-in handlers like 'webdriver' are located in BUBIK_DIR/handlers. Project specific handler should be located in PROJECT_DIR/handlers. Both directories are scanned for proper classes when handler object is requested from the test code for the first time.
+
+### Accessing handlers from test code
+
+asd
+
+### Life cycle
+
+asd
&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bartek Wilczek</dc:creator><pubDate>Wed, 07 Mar 2012 13:56:17 -0000</pubDate><guid>https://sourceforge.net4c03fb5beebb5e555cebc0e034953fdfe8a419c3</guid></item><item><title>WikiPage Handlers modified by Bartek Wilczek</title><link>https://sourceforge.net/p/bubik/wiki/Handlers/</link><description>Each test in bubik is represented by an independent object (instance of Scenario class). It's lifetime is limited only to time of 'run' method execution. None of the object created inside a test can be reused in other tests. Therefore the concept of handlers has been introduced.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Bartek Wilczek</dc:creator><pubDate>Wed, 07 Mar 2012 13:17:34 -0000</pubDate><guid>https://sourceforge.net076bcb9e2258b3728b08e2d9ca807bf428724082</guid></item></channel></rss>