|
Project Information
Featured
Downloads
Links
|
SummaryThis project is an add-on for SilkTest 2009. The goal of this project is to provide a COM interface for the Open Agent, which can be used by many different scripting languages to drive the Open Agent. With silk4com you can use most of the JTF API in VBScript, JavaScript or even in VBA, without the need of a Java Compiler and JUnit. Silk4COM is an Open Source project, so feel free to check out the source and play with it. There is also a binary package available if you don't want to build it yourself. If you would like to contribute please contact any of the project members. ScreencastsSome videos that demonstrate how to use Silk4COM... Setting up Silk4COM
more to come soon ... Sample ScriptThe following code demonstrates a simple Google search in JavaScript: // Desktop (instantiate silk4com desktop)
var desktop = new ActiveXObject("SilkTestLib.Desktop");
// Execute Base State (will return a testobject representing the browser window).
var browser = desktop.executeBrowserBaseState(
"C:\\Program Files\\Internet Explorer\\iexplore.exe", // executable
"www.google.com", // page to load
"/BrowserApplication/BrowserWindow", // main window locator
"xBrowser"); // TechDomains to load
// Do a google search
browser.find("//input[@name='q']").setText("SQA Forums");
browser.find("//input[@name='btnG']").select();View the same script in VBS and in Java ... Open Agent ConsoleThe Open Agent Console provides a simple command line interface for the Open Agent. It is written entirely in JavaScript and therefore is a good sample on how to use the silk4com JTF wrapper classes. Just download the latest binaries or check out the source :) Try it!
Any feedback is appreciated |