Introducing Silk AppDriver

Micro Focus Expert
Micro Focus Expert
0 0 1,059

Testing organizations face many challenges: They have to ensure constant quality in changing environments that cover wide varieties of technologies, tools and integrations. Many teams need to test native, web, and mobile apps together, but are required to use different testing tools and frameworks. This variability and often incompatibility of tools make consistent reporting and analysis a nightmare. Silk Test has built-in support for native, mobile, and web capabilities, thus providing a solution to the tool variation issue. However, some organizations might want to be more open than that. For such organizations Micro Focus is proud to announce the launch of the new open source project Silk AppDriver.

Silk AppDriver is an implementation of the W3C WebDriver protocol for native (Windows) and mobile (Android and iOS) applications, built on top of Silk Test. It allows testing all kinds of apps through the WebDriver API in any language for which client bindings exist.

As an add-on to Silk Test, Silk AppDriver allows you to unleash the full potential of Selenium and to combine the best of both worlds. With Silk AppDriver, you can use any programming language and testing framework that is supported by Selenium to automate all technologies that are supported by Silk Test, including Win32, WPF, Java, SAP, Mobile, and many more.

How does Silk AppDriver work?

Silk AppDriver runs as a standalone server that implements the WebDriver W3C protocol and translates the WebDriver commands to the Silk Test API.

Here's what that looks like schematically:

As a user, there are only three things you need to do:

  1. Install Silk Test 18.0 or later.
  2. Download and run Silk AppDriver.
  3. Write your first native Selenium test.
from selenium import webdriver

driver = webdriver.Remote(
  command_executor='http://127.0.0.1:8080',
  desired_capabilities={'app': '%WINDIR%\\notepad.exe'})

textfield = driver.find_element_by_xpath("//TextField")
textfield.clear()
textfield.send_keys("hello from python!")

driver.find_element_by_xpath("//Menu[@caption='File']").click()
driver.find_element_by_xpath("//MenuItem[@caption='Exit']").click()
driver.find_element_by_xpath("//PushButton[@caption=\"Don't Save\"]").click()

driver.quit()

Benefits

This approach allows testing organizations to leverage the entire Selenium ecosystem for their testing, while at the same time using the unique Silk Test technology support and additional features like synchronization and TrueLog.

Learn more

To learn more about Silk AppDriver, visit the GitHub project page at https://github.com/MicroFocus/SilkAppDriver.

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.