Working with functional test scripts (Windows-only) This section describes the process of creating functional test scripts to test your applications. Simplified scriptingSimplified test scripts are functional test scripts in the form of simple English statements that are easy to understand and edit. This feature is enabled by default in the IBM® DevOps Test UI (Test UI) Preferences window.Enabling simplified scriptingSimplified scripts are functional test scripts in the form of simple English statements that are easy to understand and edit. When you record actions on the test application using the recorder, the functional test script is generated and displayed as a simplified test script in the Script editor. Creating a simplified test scriptUse the recording feature of IBM® DevOps Test UI (Test UI), to record actions on the test applications. The actions on the test applications are generated in the form of a simplified test script when you stop recording. The generated simplified test script is displayed in the simplified Script editor in Test UI. You can also view the corresponding Java™ code of the recorded test script in the Java™ script editor.Editing a simplified scriptYou can edit a test line in the script editor and also modify the test line properties, such as the control actions in the Properties View. Inserting conditional statementsYou can insert conditional statements to verify the values of the variables in the script and perform actions in the application.Specifying the playback options for a simplified scriptYou can set the wait time for a control to be displayed or pause an execution of a test line for a simplified script.Handling exceptions during script playbackIf an exception occurs during script playback, you can specify how IBM® DevOps Test UI (Test UI) handles these exceptions.Specifying the log details for a test scriptYou can specify the message to be displayed in the log for a test line that has run. You can also specify the type of screen capture that must be taken during playback and displayed in the log so that you can view the state of the control or the screen in the test application.Deleting a test lineYou can delete a test line from a script in the script editor. The application visual that is captured and displayed while recording the test script is not deleted from the Application view.Working with application visualsApplication visuals are snapshots of the controls or screens of the test application that are captured while recording scripts. The visuals of the test application are captured only if both the simplified scripting and the application visuals feature preferences are enabled.Switching to Java scriptingYou can switch to Java scripting to insert Java code to perform additional operations such as extending an API or functions that cannot be performed directly in the simplified script editor. To use both the simplified script and Java scripting, you must use the Insert Java Code Snippet or Insert Java Method feature that is available in the simplified script editor and switch to Java scripting. If you modify the Java script directly without using these features, the Java script changes are lost and the simplified script runs during playback.Exporting a simplified scriptYou can export the simplified scripts in a .txt, .xml or .html format so that the script can be viewed outside IBM® DevOps Test UI (Test UI).Java scriptingWhen you record a functional test script to test an application, simplified scripts are generated and displayed in the Script editor. The corresponding Java test script is displayed in the Java editor. Recording a Java test scriptJava™ scripts are generated when you work with the simplified scripts. You can switch to Java™ scripting using the Insert Java™ snippet and Insert Java™ module features in the simplified script editor. Creating a new test script without recordingAs an alternative to recording, you can create a script to enter Java™ code manually.Creating a test script without recording in the Visual Studio IDEAs an alternative to recording, you can create a script to enter VB.NET code manually.Recording scripts in an existing scriptYou can record new scripts in an existing script to start an application under test (AUT), insert verification points, and add script support functions.Recording scripts for an AUT with different user credentialsWhen an application under test (AUT) is configured with a different user credential by using a batch file on the Windows operating system, you can record scripts for the AUT.Recording scripts to test HTML applicationsRecord scripts to test HTML applications on a single browser as you record any functional test script.Recording cross-browser and cross-platform scriptsThis topic provides an overview of the procedures to set up your environment to record cross-browser scripts.Displaying test object informationYou use the Test Object Inspector to examine graphical components visible in the running application and display information about those objects, such as parent hierarchy, inheritance hierarchy, test object properties, non value properties, and method information.Getting a property valueYou can get a single property value for the selected object while you are recording. It puts a getProperty into your script and returns the value during playback.Setting a wait state for an objectThis feature is used to set a wait state for an object during playback to check for its existence. This is useful when waiting for an object right after starting your application, or after other actions that may take a long time.Recording and playing back double byte characters on Chinese systemsThe following information pertains to record and playback of DBCS on Chinese systems.Changing the default script helper superclassBy default, all Functional Test scripts extend the RationalTestScript class, and thereby inherit a number of methods (such as callScript). Advanced users may want to create their own helper superclass which extends RationalTestScript and can add additional methods or override the methods from RationalTestScript.Script support functionsWhen you record or edit a functional test script, you can insert codes to add features into the test script by using the tabs in the Script Support Functions dialog. The following table lists the tab names and the features associated with each of the tabs:Starting your test applicationsWhen recording tests on your application, it is best to have IBM® DevOps Test UI (Test UI) start the application during recording. This makes playing back the tests more reliable because the application configuration information is used. Test UI can open specified Java applications, HTML pages in your browser, or run executable applications.Renaming a test assetYou can rename simplified test scripts, Java test scripts, test object maps, or other files in a project.Saving test scripts and filesYou can save a functional test script or file in several ways: save the current test script or file, save all test scripts and files, save a functional test script or file with another name in a different location.Deleting a functional test scriptYou can delete a functional test script from the Projects view or the Solution Explorer. Deleting a script cannot be undone.Tips for recording functional testsFollowing are some tips on ways around some potential recording issues.Recording a scriptTo start recording scripts against your applications, you must first configure your test environments, configure your applications, and create a project. Under certain conditions, you can start recording scripts without preparing your functional test environment.Working with functional test object maps in the Visual Studio IDEThis section describes how you can use test object maps to facilitate your functional testing effort. The test object map is a static view that describes the known test objects in the application-under-test.Parent topic: Tests in the Functional Test perspective