Silk Test 17.5
Total Page:16
File Type:pdf, Size:1020Kb
Silk Test 17.5 Silk4J User Guide Micro Focus The Lawn 22-30 Old Bath Road Newbury, Berkshire RG14 1QN UK http://www.microfocus.com Copyright © Micro Focus 2016. All rights reserved. MICRO FOCUS, the Micro Focus logo and Silk Test 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. All other marks are the property of their respective owners. 2016-11-03 ii Contents Welcome to Silk4J 17.5 ......................................................................................9 Licensing Information ......................................................................................10 Silk4J ................................................................................................................ 11 Do I Need Administrator Privileges to Run Silk4J? ........................................................... 11 Best Practices for Using Silk4J ........................................................................................ 11 Automation Under Special Conditions (Missing Peripherals) ............................................12 Silk Test Product Suite ...................................................................................................... 13 What's New in Silk4J ........................................................................................15 Mobile Device Live View ................................................................................................... 15 Testing Hybrid Mobile Applications ................................................................................... 15 Enhanced Cross-Browser Testing .....................................................................................15 Using Devices and Browsers that are Managed by Silk Central ....................................... 15 Usability Enhancements ....................................................................................................15 API Enhancements ........................................................................................................... 16 Technology Updates ..........................................................................................................16 Microsoft Windows 10 Anniversary Update ............................................................16 New Mozilla Firefox Versions ..................................................................................17 Google Chrome Support ........................................................................................ 17 Android Support ..................................................................................................... 17 Eclipse Support ...................................................................................................... 17 Java SWT Support ................................................................................................. 17 Silk4J Quick Start Tutorial ...............................................................................18 Creating a Silk4J Project ...................................................................................................18 Recording a Test for the Insurance Company Web Application ........................................ 19 Replaying the Test for the Insurance Company Web Application ......................................20 Working with Silk4J Projects .......................................................................... 21 Creating a Silk4J Project ...................................................................................................21 Importing a Silk4J Project ................................................................................................. 22 Creating Tests ...................................................................................................23 Creating a Test for a Web Application ............................................................................... 23 Creating a Test for a Standard Application ........................................................................23 Creating a Test for a Mobile Web Application ................................................................... 24 Creating a Test for a Mobile Native Application .................................................................25 Recording a Test on Microsoft Edge ................................................................................. 25 Recording a Test on Mozilla Firefox .................................................................................. 26 Recording a Test on Google Chrome ................................................................................27 Creating a Test Case Manually ......................................................................................... 28 Best Practices for Creating Test Scripts ............................................................................28 Actions Available During Recording .................................................................................. 29 Adding a Verification to a Script while Recording ..............................................................29 Adding a Locator or an Object Map Item to a Test Method Using the Locator Spy ...........29 Including Custom Attributes in a Test ................................................................................30 Characters Excluded from Recording and Replaying ....................................................... 31 Replaying Tests ................................................................................................ 32 Replaying Tests from Eclipse ............................................................................................ 32 Replaying a Test from the Command Line ........................................................................ 32 Replaying Tests with Apache Ant ......................................................................................33 Troubleshooting when Replaying Tests with Ant .................................................... 34 Replaying Tests from a Continuous Integration Server ..................................................... 35 Replaying Silk4J Tests from Silk Central ...........................................................................35 Contents | 3 Triggering Tests on Silk Central from a Continuous Integration Server .............................36 Replaying Tests in a Specific Order .................................................................................. 36 Running Tests in Parallel ...................................................................................................37 How Does Silk4J Synchronize Tests? ...............................................................................38 Enabling the Playback Status Dialog Box ......................................................................... 39 Visual Execution Logs with TrueLog ................................................................................. 40 Enabling TrueLog ................................................................................................... 40 Changing the Location of the TrueLog ................................................................... 40 Why is TrueLog Not Displaying Non-ASCII Characters Correctly? ........................ 41 Silk Test Open Agent ....................................................................................... 42 Starting the Silk Test Open Agent ..................................................................................... 42 Stopping the Open Agent After Test Execution .................................................................42 Agent Options ................................................................................................................... 42 Open Agent Port Numbers ................................................................................................49 Configuring the Port to Connect to the Information Service ..................................50 Configuring the Port to Connect to the Open Agent ...............................................50 Configuring the Port to Connect to Silk Test Recorder ...........................................51 Remote Testing with the Open Agent ................................................................................51 Testing with a Remote Open Agent ........................................................................51 Configuring the Open Agent to Run Remotely in a NAT Environment .............................. 52 Base State ......................................................................................................... 53 Modifying the Base State .................................................................................................. 53 Running the Base State .................................................................................................... 54 Application Configuration ............................................................................... 55 Modifying an Application Configuration .............................................................................55 Select Application Dialog Box ........................................................................................... 56 Editing Remote Locations ................................................................................................. 57 Application Configuration Errors ....................................................................................... 58 Troubleshooting Application Configurations