Skip to main content

Advanced Scripting in Eggplant Functional

Eggplant Functional is a powerful tool for test automation. The topics referenced on this page show you how to move beyond the basics to create and run more powerful tests. You don't need to be an advanced user of Eggplant Functional to take advantage of these powerful capabilities.

Interacting with Systems Under Test

Switching SUTs During a Test

Use the connect command to switch between systems under test (SUTs) during a script run.

Scripting through a SUT Restart

Learn how to write and run a script that restarts your SUT.

Working with Text

Use scripting to search for and read text from a SUT.

Dynamic Search Rectangles

Run your tests using fewer images.

Using the ScreenPart Function Handler

Define the searchRectangle based on the screen size of your SUT.

Triple Click

Create a script to enable triple-click with Eggplant Functional.

Language Localization Testing

Use Optical Character Recognition (OCR) and images to test across multiple languages.

Error Recovery with Omega13

Omega13 is a preloaded script in Eggplant Functional that can be used to attempt recovery on your SUT.

Synchronizing Script Execution

Use scripting to run the same script against two different SUTs in parallel.

Interacting with Mobile SUTs

Typing on Soft Keyboards

In some situations, it's better to type against the soft keyboard on a mobile SUT instead of injecting the TypeText events directly into the system.

ADB Command Support

The Android Debug Bridge command line tool pulls data such as application log files, memory usage data, and push and pull applications from an Android device.

Working with Data

Validating Data Tables

Compare, retrieve, and validate records, and perform other advanced data functions.

Interacting with Rows and Columns in a Data File

Export and interact with comma-separated values (.csv) files.

Creating a Custom Keyword-Driven Framework

Keyword-driven testing with external data files is an option for both automated and manual testing.

Dynamic Data Generation

Conduct randomized tests or drive your testing from within a script instead of working with an external file.

Data-Driven Testing

Create robust tests using data files.

Using Ask and Answer

Use this family of commands to mix automated and manual testing methods. For example, you can write a script that prompts you to manually enter a password during the script run.

Increasing Test Efficiency

Reusing Code

Reuse your existing scripts and write handlers to make repetitive testing simpler.

Improving Script Execution Speed

SenseTalk has many methods to make your scripts execute more quickly.