Silk Test 15.0. Silk Test Classic Quick Start Tutorial for Dynamic Object Recognition



Similar documents
Silk Test Silk Test Classic - Creating Data- Driven Test Cases

Silk Test Testing Mobile Web Applications

Integrating Autotask Service Desk Ticketing with the Cisco OnPlus Portal

BusinessObjects Enterprise XI Release 2

Create, Link, or Edit a GPO with Active Directory Users and Computers

Producing Standards Based Content with ToolBook

Setting up VMware ESXi for 2X VirtualDesktopServer Manual

SilkTest Workbench. Getting Started with.net Scripts

How to Configure Microsoft System Operation Manager to Monitor Active Directory, Group Policy and Exchange Changes Using NetWrix Active Directory

Apache JMeter HTTP(S) Test Script Recorder

XCM Internet Explorer Settings

Symantec Enterprise Vault

Citrix EdgeSight for Load Testing User s Guide. Citrix EdgeSight for Load Testing 3.8

Evaluator s Guide. PC-Duo Enterprise HelpDesk v5.0. Copyright 2006 Vector Networks Ltd and MetaQuest Software Inc. All rights reserved.

Jolly Server Getting Started Guide

Installing a Browser Security Certificate for PowerChute Business Edition Agent

SELF SERVICE RESET PASSWORD MANAGEMENT CREATING CUSTOM REPORTS GUIDE

SmartOffice Configuration Guide for Microsoft Windows XP with Internet Explorer 7

Setting up Hyper-V for 2X VirtualDesktopServer Manual

Web Editing Tutorial. Copyright Esri All rights reserved.

Citrix EdgeSight for Load Testing User s Guide. Citrx EdgeSight for Load Testing 2.7

Wavecrest Certificate

Firewall Settings for AVG Free Edition

The cloud server setup program installs the cloud server application, Apache Tomcat, Java Runtime Environment, and PostgreSQL.

Administration Guide. . All right reserved. For more information about Specops Inventory and other Specops products, visit

How to install and use the File Sharing Outlook Plugin

Setting up Citrix XenServer for 2X VirtualDesktopServer Manual

OUTLOOK WEB APP (OWA): MAIL

Installing LearningBay Enterprise Part 2

GOOGLE DOCS APPLICATION WORK WITH GOOGLE DOCUMENTS

IBM Rational Rhapsody Gateway Add On. CaliberRM Coupling Notes

WatchDox for Windows. User Guide. Version 3.9.5

Security Assertion Markup Language (SAML) Site Manager Setup

How To Create A Hyperlink In Publisher On Pc Or Macbookpress.Com (Windows) On Pc/Apple) On A Pc Or Apple Powerbook (Windows 7) On Macbook Pressbook (Apple) Or Macintosh (Windows 8

UOFL SHAREPOINT ADMINISTRATORS GUIDE

Silk Performer Browser-Driven Web Load Testing Tutorial

1. To ensure the appropriate level of security, you will need Microsoft Windows XP or above.

Census. di Monitoring Installation User s Guide

Video Administration Backup and Restore Procedures

Symantec Enterprise Vault

SSL Manager. User Guide. July Welcome to AT&T Website Solutions SM

Cluster to Cluster Failover Using Double-Take

Symantec Enterprise Vault

Symantec Enterprise Vault

Appendix E. Captioning Manager system requirements. Installing the Captioning Manager

Trend Micro PC-cillin Internet Security 2006

Install MS SQL Server 2012 Express Edition

LPR for Windows 95/98/Me/2000/XP TCP/IP Printing User s Guide. Rev. 03 (November, 2001)

Setting up Hyper-V for 2X VirtualDesktopServer Manual

Bitrix Site Manager ASP.NET. Installation Guide

CTERA Agent for Windows

Using Internet or Windows Explorer to Upload Your Site

How to add your Weebly website to a TotalCloud hosted Server

Creating a Java application using Perfect Developer and the Java Develo...

Windows Live Mail Setup Guide

AssetWise Performance Management. APM Remote Upgrade Guide

Outlook . Step 1: Open and Configure Outlook

Publish Joomla! Article

How To Install Outlook Addin On A 32 Bit Computer

Exclaimer Alias Manager for Exchange Deployment Guide - Exclaimer Alias Manager for Exchange Outlook Add-In

Integrating ConnectWise Service Desk Ticketing with the Cisco OnPlus Portal

TAO Installation Guide v0.1. September 2012

Working with Templates. Schoolwires Centricity2

VMware Horizon FLEX User Guide

An Oracle White Paper May Creating Custom PDF Reports with Oracle Application Express and the APEX Listener

Unity Error Message: Your voic box is almost full

StreamServe Persuasion SP5 Control Center

5.6.2 Optional Lab: Restore Points in Windows Vista

Microsoft Dynamics GP Release

8x8 Virtual Office Telephony Interface for Salesforce

LPR for Windows 95 TCP/IP Printing User s Guide

Eclipse installation, configuration and operation

AUTOCUE IVR. User Guide Updated: 06/18/15 Document Number: 36UG

WNDR4500 User Guide. A Guide for Using ReadySHARE Printer ReadySHARE Access Desktop NETGEAR Genie Time Machine with your WNDR4500 Router

Installation and Deployment

HELP DOCUMENTATION E-SSOM DEPLOYMENT GUIDE

StarWind iscsi SAN Software: Using StarWind with MS Cluster on Windows Server 2008

To set up Egnyte so employees can log in using SSO, follow the steps below to configure VMware Horizon and Egnyte to work with each other.

Symantec Enterprise Vault

Administrator s Guide ALMComplete Support Ticket Manager

WatchDox for Windows User Guide. Version 3.9.0

IIS, FTP Server and Windows

Create a Simple Website. Intel Easy Steps Intel Corporation All rights reserved.

8.7. NET SatisFAXtion Gateway Installation Guide. For NET SatisFAXtion 8.7. Contents

SilkPerformer 9.0. Browser-Driven Web Load Testing Tutorial

Configuration Manager

SmartOffice Configuration Guide for Microsoft Windows XP Service Pack 2

Maplex Tutorial. Copyright Esri All rights reserved.

Horizon Debt Collect. User s and Administrator s Guide

QUICK START. GO-Global Cloud 4.1 SETTING UP A LINUX CLOUD SERVER AND HOST INSTALL THE CLOUD SERVER ON LINUX

Kentico CMS 7.0 User s Guide. User s Guide. Kentico CMS

SAML single sign-on configuration overview

DP-313 Wireless Print Server

Bentley CONNECT Dynamic Rights Management Service

NovaBACKUP xsp Version 12.2 Upgrade Guide

Cluster to Cluster Failover Using Double-Take

User s Guide. Version 2.1

EBOX Digital Content Management System (CMS) User Guide For Site Owners & Administrators

Transcription:

Silk Test 15.0 Silk Test Classic Quick Start Tutorial for Dynamic Object Recognition

Micro Focus 575 Anton Blvd., Suite 510 Costa Mesa, CA 92626 Copyright Micro Focus 2014. All rights reserved. Portions Copyright 1992-2009 Borland Software Corporation (a Micro Focus company). MICRO FOCUS, the Micro Focus logo, and Micro Focus product names are trademarks or registered trademarks of Micro Focus IP Development Limited or its subsidiaries or affiliated companies in the United States, United Kingdom, and other countries. BORLAND, the Borland logo, and Borland product names are trademarks or registered trademarks of Borland Software Corporation or its subsidiaries or affiliated companies in the United States, United Kingdom, and other countries. All other marks are the property of their respective owners. 2014-03-13 ii

Contents Testing a Web Application with Dynamic Object Recognition... 4 Starting Silk Test Classic... 4 Creating a New Project... 4 Configuring the GMO Web Application... 4 Create a Test Case for the GMO Web Application... 5 Running the Sample Test Case for the GMO Web Application... 6 Contents 3

Testing a Web Application with Dynamic Object Recognition This tutorial provides a step-by-step introduction to using Silk Test Classic to test a Web application by using dynamic object recognition. Dynamic object recognition enables you to write test cases that use XPath queries to find and identify objects. To perform the tasks described in this tutorial, install Silk Test. The examples in the tutorial use the Green Mountain Outpost (GMO) Web application, http://demo.borland.com/gmopost/. Starting Silk Test Classic Click Start > Programs > Silk > Silk Test > Clients > Silk Test Classic. Silk Test Classic opens. Creating a New Project The type of project that you select determines the default Silk Test Agent. For Web application projects, the Open Agent is automatically set as the default agent. Silk Test Classic uses the default agent when configuring an application and recording a test case. 1. In Silk Test Classic, click File > New Project, or click Open Project > New Project on the basic workflow bar. 2. On the Create Project dialog box, type the Project Name and Description. 3. Click OK to save your project in the default location, C:\Users\<Current user>\documents \Silk Test Classic Projects. To save your project in a different location, click Browse and specify the folder in which you want to save your project. Silk Test Classic creates a <Project name> folder within this directory, saves the projectname.vtp and projectname.ini to this location and copies the extension.ini files, which are appexpex.ini, axext.ini, domex.ini, and javaex.ini, to the extend subdirectory. If you do not want to save your project in the default location, click Browse and specify the folder in which you want to save your project. Silk Test Classic then creates your project and displays nodes on the Files and Global tabs for the files and resources associated with this project. Configuring the GMO Web Application Configure the Web application that you want to test to set up the environment that Silk Test Classic will create each time you record or replay a test case. If you are testing a Web application or an application that uses a child technology domain of the xbrowser technology domain, for example an Apache Flex application, use this configuration. 1. Click Configure Application on the basic workflow bar. If you do not see Configure Application on the workflow bar, ensure that the default agent is set to the Open Agent. The Select Application dialog box opens. 2. Select the Web tab. 4 Testing a Web Application with Dynamic Object Recognition

3. Select the browser that you want to use from the list of available browsers. If you want to record a test against a Web application, select Internet Explorer or a mobile browser. You can use one of the other supported browsers to replay tests but not to record them. 4. In the Enter URL to navigate field, type http://demo.borland.com/gmopost/. 5. Optional: Check the Create Base State check box to create a base state for the application under test. By default, the Create Base State check box is checked for projects where a base state for the application under test is not defined, and unchecked for projects where a base state is defined. An application s base state is the known, stable state that you expect the application to be in before each test begins execution, and the state the application can be returned to after each test has ended execution. When you configure an application and create a base state, Silk Test Classic adds an include file based on the technology or browser type that you enable to the Use files location in the Runtime Options dialog box. 6. Click OK. If you have checked the Create Base State check box, the Choose name and folder of the new frame file page opens. Silk Test Recorder configures the recovery system and names the corresponding file frame.inc by default. If you have not checked the Create Base State check box, the dialog box closes and you can skip the remaining steps. 7. Navigate to the location in which you want to save the frame file. 8. In the File name text box, type the name for the frame file that contains the default base state and recovery system. Then, click Save. Silk Test Classic creates a base state for the application. By default, Silk Test Recorder lists the caption of the main window of the application as the locator for the base state. Then Silk Test Classic opens the Web page. 9. Record the test case whenever you are ready. Create a Test Case for the GMO Web Application You must configure the GMO Web application before performing this task. When you record a test case with the Open Agent, Silk Test Classic creates locator keywords in an INC file to create scripts that use dynamic object recognition and window declarations. This test case will click the Enter GMO OnLine button in the GMO sample application. 1. Click Record Testcase on the basic workflow bar. If the workflow bar is not visible, click Workflows > Basic to enable it. The Record Testcase dialog box opens. 2. Type EnterGMOOnLine in the Testcase name text box. Test case names are not case sensitive; they can be any length and consist of any combination of alphabetic characters, numerals, and underscore characters. 3. From the Application State list box, select DefaultBaseState to have the built-in recovery system restore the default base state before the test case begins executing. 4. Click Start Recording. Silk Test Classic performs the following actions: Closes the Record Testcase dialog box. Starts your application, if it was not already running. If you have not configured the application yet, the Select Application dialog box opens and you can select the application that you want to test. Removes the editor window from the display. Displays the Recording window. Waits for you to take further action. 5. In the GMO Web application, click the Enter GMO OnLine button. As you interact with your application, Silk Test Classic records your interactions in the Testcase Code box of the Record Testcase dialog box, which is not visible. Testing a Web Application with Dynamic Object Recognition 5

6. To review what you have recorded or to temporarily suspend recording, click Stop Recording in the Recording window. Silk Test Classic displays the Record Testcase dialog box, which contains the code that has been recorded for you. 7. To add the recorded interactions to a script, click Paste to Editor in the Record Testcase window. If you have interacted with objects in your application that have not been identified in your include files, the Update Files dialog box opens. 8. Click Paste testcase and update window declaration(s) and then click OK. Silk Test Classic creates a new untitled 4Test script in the editor and pastes the actions you have recorded into this script. 9. Choose File > Save to save the script. The Save As dialog box opens. 10.In the File Name text box, type SimpleBrowserTest and then click Save. A dialog box opens, asking you if you want to add the script file to the project. 11.Click Yes Silk Test Classic adds the file to the project scripts and updates the Files tree. Review your work to ensure your test script looks like the following: testcase Test1 () recording WebBrowser.BrowserWindow.BSubmit.Click(MB_LEFT, 51, 20) The location of the click may vary, depending on the resolution of your screen and the size of the browser window. Running the Sample Test Case for the GMO Web Application When you run a test case, Silk Test Classic interacts with the application by executing all the actions you specified in the test case and testing whether all the features of the application performed as expected. Silk Test Classic always saves the suite, script, or test plan before running it if you made any changes to it since the last time you saved it. By default, Silk Test Classic also saves all other open modified files whenever you run a script, suite, or test plan. To prevent this automatic saving of other open modified files, uncheck the Save Files Before Running check box in the General Options dialog box. 1. Make sure that the test case that you want to run is in the active window. 2. Click Run Testcase on the Basic Workflow bar. If the workflow bar is not visible, choose Workflows > Basic to enable it. Silk Test Classic displays the Run Testcase dialog box, which lists all the test cases contained in the current script. 3. In the Testcase list box, click EnterGMOOnLine. 4. Click Run. Silk Test Classic runs the test case and generates a results file. 6 Testing a Web Application with Dynamic Object Recognition