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
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.
Use scripting to search for and read text from a SUT.
Run your tests using fewer images.
Using the ScreenPart Function Handler
Define the searchRectangle
based on the screen size of your SUT.
Create a script to enable triple-click with Eggplant Functional.
Use Optical Character Recognition (OCR) and images to test across multiple languages.
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
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.
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
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.
Conduct randomized tests or drive your testing from within a script instead of working with an external file.
Create robust tests using data files.
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
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.