Web Application Monitoring
Web Transaction Device Driver provides great opportunities in web application monitoring. Testing and monitoring web applications performance is carried out by executing scripts. An ability to control a browser and create test scripts is provided by Selenium.
![]() | Selenium is a portable software testing framework for web applications. |
Web application monitoring tool is implemented as a Device driver, so to get started you need to create a Web Transaction Device. In the process of adding a Device you need to specify a script that will be executed at each synchronization.
![]() | Launch of the test script requires Mozilla Firefox 42.0 or earlier to be installed next to Iotellect Server. |
Script Creation
An ability to create test scripts is provided by Selenium IDE. It is implemented as a Mozilla Firefox Add-On, and allows recording, editing, and debugging scripts.
![]() | Detailed documentation for Selenium IDE can be found on the website http://www.seleniumhq.org/docs/. |
Selenium IDE needs additional configuration after it has been installed. Enable experimental features: Options -> Options... -> Enable experimental features.
Then set a new header and footer for Java / JUnit 4 / WebDriver format, go to: Options -> Options... -> Formats -> Java / JUnit 4 / WebDriver.
Set the header to:
import org.openqa.selenium.support.events.EventFiringWebDriver;
import org.openqa.selenium.By;
import com.tibbo.linkserver.plugin.device.web.transaction.Screenshot;
public class WebTransactionClass {
private String baseUrl = "${baseURL}";
public void test (EventFiringWebDriver driver, Screenshot screenshot) throws Exception {
And set the footer to:
}
}
These settings allow to convert recorded actions to a format compatible with the Iotellect Server. Now you can record actions.
After an action has been recorded you should obtain a script source of the appropriate format, go to: Options -> Format -> Java / JUnit 4 / WebDriver. Then copy a script source from Source tab of the Selenium IDE and save it to Script property of the Device settings.
![]() | An example of a test script: import org.openqa.selenium.support.events.EventFiringWebDriver; |
Script execution results are stored to Actions and Screenshots Device settings at each synchronization.
![]() | Web transaction driver provides easy way of screenshots taking. You can insert the following line to the script to take a screenshot: |
Was this page helpful?