Silk4net User Guide Micro Focus 575 Anton Blvd., Suite 510 Costa Mesa, CA 92626
Total Page:16
File Type:pdf, Size:1020Kb
Silk Test 15.5 Silk4NET User Guide 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-06-26 ii Contents Licensing Information ........................................................................................7 Silk4NET ..............................................................................................................8 Silk Test Product Suite ........................................................................................................8 Product Notification Service ................................................................................................ 9 Contacting Micro Focus ...................................................................................................... 9 Information Needed by Micro Focus SupportLine .................................................. 10 What's New in Silk4NET ...................................................................................11 Testing Apple Safari in iOS ............................................................................................... 11 Enhanced Mobile Browser Support ...................................................................................11 Usability Enhancements ....................................................................................................11 Technology Updates ......................................................................................................... 12 Mozilla Firefox Support ...........................................................................................12 Google Chrome Support ........................................................................................ 13 API Enhancements ........................................................................................................... 13 Silk Test Open Agent ....................................................................................... 14 Starting the Silk Test Open Agent .....................................................................................14 Open Agent Port Numbers ................................................................................................14 Configuring the Port that Clients Use to Connect to the Information Service ........14 Configuring the Port that the Silk Test Client or the Test Application Uses to Connect to the Open Agent ............................................................................................................................... 15 Configuring the Port that the Silk Test Client Uses to Connect to Silk Test Recorder ............................................................................................................................... 16 Configuring the Open Agent to Run Remotely in a Network Address Translation (NAT) Environment .......................................................................................................................................... 16 Desktop Class ................................................................................................................... 16 Getting Started with Silk4NET .........................................................................17 Base State ......................................................................................................... 18 Modifying the Base State .................................................................................................. 18 Running the Base State .................................................................................................... 18 Application Configuration ............................................................................... 20 Modifying an Application Configuration .............................................................................20 Select Application Dialog Box ........................................................................................... 21 Application Configuration Errors ....................................................................................... 21 Working with Silk4NET Projects ..................................................................... 22 Creating a Silk4NET Project ............................................................................................. 22 Working with Silk4NET Tests ..........................................................................23 Adding a Silk4NET Test to a Project .................................................................................23 Recording a Silk4NET Test ...............................................................................................24 Characters Excluded from Recording and Replaying ............................................ 25 Manually Creating a Silk4NET Test .................................................................................. 25 Adding a Verification to a Script while Recording ............................................................. 25 Adding a Locator or an Object Map Item to a Test Method Using the Locator Spy .......... 26 Running Silk4NET Tests ................................................................................................... 27 Analyzing Test Results ......................................................................................................27 Visual Execution Logs with TrueLog ............................................................. 28 Enabling TrueLog ..............................................................................................................28 Why is TrueLog Not Displaying Non-ASCII Characters Correctly? ...................................29 Using Silk4NET with Team Foundation Server ............................................. 30 Executing Silk4NET Tests in TFS ..................................................................................... 30 Contents | 3 Locating TrueLog Files for Silk4NET Tests Executed with TFS ....................................... 30 Setting Script Options ..................................................................................... 32 Setting TrueLog Options ................................................................................................... 32 Setting Recording Preferences ......................................................................................... 32 Setting Browser Recording Options .................................................................................. 33 Setting Custom Attributes ................................................................................................. 34 Setting Classes to Ignore .................................................................................................. 35 Setting WPF Classes to Expose During Recording and Playback ....................................35 Setting Synchronization Options ....................................................................................... 35 Setting Replay Options ..................................................................................................... 36 Setting Advanced Options .................................................................................................37 Silk4NET Sample Tests ....................................................................................38 Object Recognition .......................................................................................... 39 Locator Basic Concepts .................................................................................................... 39 Object Type and Search Scope ............................................................................. 39 Using Attributes to Identify an Object ..................................................................... 40 Locator Syntax .................................................................................................................. 40 Using Locators .................................................................................................................. 42 Using the Find Method ...................................................................................................... 43 Using Locators to Check if an Object Exists ..................................................................... 43 Identifying Multiple Objects with One Locator ................................................................... 44 Locator Customization ...................................................................................................... 44 Stable Identifiers .....................................................................................................45 Custom Attributes ...................................................................................................47 Troubleshooting Performance Issues for XPath ............................................................... 49 Locator Spy ......................................................................................................................