# Eggplant Examples

**URL:** https://forums.eggplantsoftware.com/c/eggplant-examples/8.md

[Latest](https://forums.eggplantsoftware.com/latest.md) · [Categories](https://forums.eggplantsoftware.com/categories.md) · [Tags](https://forums.eggplantsoftware.com/tags.md)

---

## [Your Interests Are Our Interests!](https://forums.eggplantsoftware.com/t/your-interests-are-our-interests/14966)

<div class="topic-metadata">

**Author:** [@DaveHester](https://forums.eggplantsoftware.com/u/DaveHester)\
**Replies:** 1\
**Last updated:** [October 13, 2026, 10:25am UTC](https://forums.eggplantsoftware.com/t/your-interests-are-our-interests/14966 "2026-10-13T10:25:51Z")

</div>

Some of you may be aware that here at Eggplant we have had a series of bi-weekly discussions around interesting topics about SenseTalk. Sometimes we discuss lesser known functionality such as iterating over records pulle…

---

## [About the Eggplant Examples category](https://forums.eggplantsoftware.com/t/about-the-eggplant-examples-category/976)

<div class="topic-metadata">

**Author:** [@system](https://forums.eggplantsoftware.com/u/system)\
**Replies:** 0

</div>

Contribute and discuss code you’ve used to automate and test your application or to make your testing framework efficient and easy to use.

---

## [\[eggPlant Functional\] Useless SenseTalk Scripts](https://forums.eggplantsoftware.com/t/eggplant-functional-useless-sensetalk-scripts/2004)

<div class="topic-metadata">

**Author:** [@SenseTalkDoug](https://forums.eggplantsoftware.com/u/SenseTalkDoug)\
**Replies:** 7\
**Last updated:** [July 14, 2026, 4:45pm UTC](https://forums.eggplantsoftware.com/t/eggplant-functional-useless-sensetalk-scripts/2004 "2026-07-14T16:45:02Z")

</div>

As the title suggests, this script is entirely useless… but once in a while it’s good just to have some fun! Then again, maybe you’ll even get some good ideas from this about SenseTalk scripting… uh … no, forget that tho…

---

## [Multi-day Scripts](https://forums.eggplantsoftware.com/t/multi-day-scripts/14404)

<div class="topic-metadata">

**Author:** [@DaveHester](https://forums.eggplantsoftware.com/u/DaveHester)\
**Replies:** 3\
**Last updated:** [May 14, 2025, 3:16am UTC](https://forums.eggplantsoftware.com/t/multi-day-scripts/14404 "2025-05-14T03:16:09Z")

</div>

Are there some of you who are testing workflows that take multiple days to complete? As an example, a patient is admitted to the hospital on Monday and discharged on Tuesday. How do you accomplish passing information fr…

---

## [Code from Healthcare User Group for 4-1-2025](https://forums.eggplantsoftware.com/t/code-from-healthcare-user-group-for-4-1-2025/14389)

<div class="topic-metadata">

**Author:** [@DaveHester](https://forums.eggplantsoftware.com/u/DaveHester)\
**Replies:** 2\
**Last updated:** [April 8, 2025, 3:41pm UTC](https://forums.eggplantsoftware.com/t/code-from-healthcare-user-group-for-4-1-2025/14389 "2025-04-08T15:41:46Z")

</div>

For those of you who joined our healthcare user group meeting, here are the code samples for: The new Excel functions: GitHub - keysight-eggplant/TSU\_Excel.suite: Suite testing new Excel functionality API Coding Exampl…

---

## [How To: Protect UserIDs/Passwords in sensetalk script with CSVs](https://forums.eggplantsoftware.com/t/how-to-protect-userids-passwords-in-sensetalk-script-with-csvs/8405)

<div class="topic-metadata">

**Author:** [@Anita](https://forums.eggplantsoftware.com/u/Anita)\
**Replies:** 4\
**Last updated:** [February 24, 2025, 6:35pm UTC](https://forums.eggplantsoftware.com/t/how-to-protect-userids-passwords-in-sensetalk-script-with-csvs/8405 "2025-02-24T18:35:12Z")

</div>

Hello! I’m looking for an example of code where a user ID and password is being called from a csv file. I’d like to see the code example as well as a screenshot of the CSV if possible. Is the CSV saved on my computer or …

---

## [\[eggPlant Functional\] Create Script Documentation in HTML](https://forums.eggplantsoftware.com/t/eggplant-functional-create-script-documentation-in-html/1255)

<div class="topic-metadata">

**Author:** [@SenseTalkDoug](https://forums.eggplantsoftware.com/u/SenseTalkDoug)\
**Replies:** 5\
**Last updated:** [April 7, 2023, 4:52pm UTC](https://forums.eggplantsoftware.com/t/eggplant-functional-create-script-documentation-in-html/1255 "2023-04-07T16:52:28Z")

</div>

EggDoc Overview EggDoc (see attached files) is a tool for generating documentation in HTML format based on information contained in specially-formatted comments in the scripts within an Eggplant suite. To use it, simply…

---

## [\[eggPlant Functional\] SenseTalk Objects Tutorial -- Banking](https://forums.eggplantsoftware.com/t/eggplant-functional-sensetalk-objects-tutorial-banking/2017)

<div class="topic-metadata">

**Author:** [@SenseTalkDoug](https://forums.eggplantsoftware.com/u/SenseTalkDoug)\
**Replies:** 2\
**Last updated:** [March 27, 2023, 8:15pm UTC](https://forums.eggplantsoftware.com/t/eggplant-functional-sensetalk-objects-tutorial-banking/2017 "2023-03-27T20:15:08Z")

</div>

Due to the length of this tutorial, it is also available below as an attachment in rtf format for convenient downloading. \[Note: Updated June 2008 – originally posted May 2005\] SenseTalk Objects Tutorial � Banking To p…

---

## [What happened to "getProp"?](https://forums.eggplantsoftware.com/t/what-happened-to-getprop/7545)

<div class="topic-metadata">

**Author:** [@phillihp](https://forums.eggplantsoftware.com/u/phillihp)\
**Replies:** 3\
**Last updated:** [October 26, 2022, 8:37pm UTC](https://forums.eggplantsoftware.com/t/what-happened-to-getprop/7545 "2022-10-26T20:37:20Z")

</div>

Continuing the discussion from \[eggPlant Functional\] Useful SenseTalk Functions: Whenever I’m inspired to try using a “getProp” handler, I get the following message on save: “NSInvalidArgumentException Tried to add n…

---

## [Passing parameter to script through URL and invoke the test](https://forums.eggplantsoftware.com/t/passing-parameter-to-script-through-url-and-invoke-the-test/7556)

<div class="topic-metadata">

**Author:** [@rahsinha](https://forums.eggplantsoftware.com/u/rahsinha)\
**Replies:** 0\
**Last updated:** [May 3, 2021, 7:21am UTC](https://forums.eggplantsoftware.com/t/passing-parameter-to-script-through-url-and-invoke-the-test/7556 "2021-05-03T07:21:35Z")

</div>

Hi All, I wanted to invoke test execution from a web page after we click the button and passes the parameter to the script from the URL. I tried the option given in eggplant manager “Use the link below to trigger an ex…

---

## [\[eggPlant Functional\] Create a web based catalog of scripts](https://forums.eggplantsoftware.com/t/eggplant-functional-create-a-web-based-catalog-of-scripts/1159)

<div class="topic-metadata">

**Author:** [@bharathh](https://forums.eggplantsoftware.com/u/bharathh)\
**Replies:** 5\
**Last updated:** [October 2, 2020, 1:03pm UTC](https://forums.eggplantsoftware.com/t/eggplant-functional-create-a-web-based-catalog-of-scripts/1159 "2020-10-02T13:03:16Z")

</div>

One more script which you may/may not find useful. This script creates a web-based catalog of all the scripts available in a suite. It also looks for embedded descriptions, and pulls them out if any. The descriptions o…

---

## [\[eggPlant Functional\] Reporting Results on the Web](https://forums.eggplantsoftware.com/t/eggplant-functional-reporting-results-on-the-web/1019)

<div class="topic-metadata">

**Author:** [@SenseTalkDoug](https://forums.eggplantsoftware.com/u/SenseTalkDoug)\
**Replies:** 20\
**Last updated:** [October 2, 2020, 7:39am UTC](https://forums.eggplantsoftware.com/t/eggplant-functional-reporting-results-on-the-web/1019 "2020-10-02T07:39:28Z")

</div>

Run the HTMLReport script in this Reporting suite and it will ask you to select a suite. Select one of your existing Eggplant suites and an HTML document will be produced listing the status of the most recent run of ever…

---

## ["does not contain a dictionary" when running Eggplant script in Jenkins](https://forums.eggplantsoftware.com/t/does-not-contain-a-dictionary-when-running-eggplant-script-in-jenkins/7383)

<div class="topic-metadata">

**Author:** [@titian](https://forums.eggplantsoftware.com/u/titian)\
**Replies:** 0\
**Last updated:** [September 21, 2020, 4:19pm UTC](https://forums.eggplantsoftware.com/t/does-not-contain-a-dictionary-when-running-eggplant-script-in-jenkins/7383 "2020-09-21T16:19:46Z")

</div>

When I run Eggplant in Jenkins, I got a lot of messages “C:\\Test.suite/Images/Support/…imageinfo does not contain a dictionary”. What does this mean? Something wrong?? //This is the command I run in Jenkins: runscript.…

---

## [\[eggPlant Functional\] Scripting through a SUT restart](https://forums.eggplantsoftware.com/t/eggplant-functional-scripting-through-a-sut-restart/2269)

<div class="topic-metadata">

**Author:** [@EggplantMatt](https://forums.eggplantsoftware.com/u/EggplantMatt)\
**Replies:** 4\
**Last updated:** [July 21, 2017, 1:47pm UTC](https://forums.eggplantsoftware.com/t/eggplant-functional-scripting-through-a-sut-restart/2269 "2017-07-21T13:47:41Z")

</div>

The code below demonstrates the method for scripting through the restart of a Windows system; you’d do something similar for other operating systems. -- store the current connection information to use as the argument to…

---

## [\[eggPlant Functional\] XML Report Format](https://forums.eggplantsoftware.com/t/eggplant-functional-xml-report-format/1682)

<div class="topic-metadata">

**Author:** [@SenseTalkDoug](https://forums.eggplantsoftware.com/u/SenseTalkDoug)\
**Replies:** 7\
**Last updated:** [March 24, 2017, 2:19pm UTC](https://forums.eggplantsoftware.com/t/eggplant-functional-xml-report-format/1682 "2017-03-24T14:19:51Z")

</div>

Thanks to a recent request from a customer, here is a script that generates a file that reports the status of the most recent run of each script in a suite. The file is in XML format, using a proposed schema that has bee…

---

## [\[eggPlant Performance\] Test Level Data vs. Group Level Data](https://forums.eggplantsoftware.com/t/eggplant-performance-test-level-data-vs-group-level-data/3648)

<div class="topic-metadata">

**Author:** [@Tom\_Miseur](https://forums.eggplantsoftware.com/u/Tom_Miseur)\
**Replies:** 0\
**Last updated:** [October 12, 2015, 5:43pm UTC](https://forums.eggplantsoftware.com/t/eggplant-performance-test-level-data-vs-group-level-data/3648 "2015-10-12T17:43:20Z")

</div>

Being able to make use of appropriate test data is integral to running successful performance tests. From making sure each Virtual User has its own set of credentials to log in to your application, to providing them with…

---

## [\[eggPlant Performance\] IP Spoofing](https://forums.eggplantsoftware.com/t/eggplant-performance-ip-spoofing/3642)

<div class="topic-metadata">

**Author:** [@Tom\_Miseur](https://forums.eggplantsoftware.com/u/Tom_Miseur)\
**Replies:** 0\
**Last updated:** [September 21, 2015, 5:50pm UTC](https://forums.eggplantsoftware.com/t/eggplant-performance-ip-spoofing/3642 "2015-09-21T17:50:42Z")

</div>

IP Spoofing with eggPlant Performance In most situations, the application you are testing will use login credentials as a means of working out who is doing what on its systems. For example, say you log in to a website a…

---

## [\[eggPlant Performance\] Custom VU methods](https://forums.eggplantsoftware.com/t/eggplant-performance-custom-vu-methods/3633)

<div class="topic-metadata">

**Author:** [@Tom\_Miseur](https://forums.eggplantsoftware.com/u/Tom_Miseur)\
**Replies:** 0\
**Last updated:** [September 2, 2015, 3:15pm UTC](https://forums.eggplantsoftware.com/t/eggplant-performance-custom-vu-methods/3633 "2015-09-02T15:15:10Z")

</div>

Tips & Tricks: Custom VU Methods One of the benefits of eggPlant Performance’s object-oriented design and use of common programming languages is the resulting ability to override methods. Overriding essentially allows y…

---

## [\[eggPlant Functional\] FindUnusedImages](https://forums.eggplantsoftware.com/t/eggplant-functional-findunusedimages/1071)

<div class="topic-metadata">

**Author:** [@SenseTalkDoug](https://forums.eggplantsoftware.com/u/SenseTalkDoug)\
**Replies:** 4\
**Last updated:** [August 31, 2015, 12:40pm UTC](https://forums.eggplantsoftware.com/t/eggplant-functional-findunusedimages/1071 "2015-08-31T12:40:18Z")

</div>

This FindUnusedImages script makes use of the FileDispenser example to step through all of the images in a suite. For each image, a second FileDispenser iterates over all of the scripts in the suite to see if any of them…

---

## [\[eggPlant Functional\] Scrolling On Touch Screen Devices](https://forums.eggplantsoftware.com/t/eggplant-functional-scrolling-on-touch-screen-devices/2856)

<div class="topic-metadata">

**Author:** [@FHQWHGADS](https://forums.eggplantsoftware.com/u/FHQWHGADS)\
**Replies:** 6\
**Last updated:** [August 31, 2015, 12:02pm UTC](https://forums.eggplantsoftware.com/t/eggplant-functional-scrolling-on-touch-screen-devices/2856 "2015-08-31T12:02:10Z")

</div>

If you’ve been working with touch screen devices such as smart phones or tablets (iPhone, iPod Touch, iPad, or Android), you may be wondering how to scroll (flick) to get to content that’s off the screen. Very simply, a…

---

## [\[eggPlant Functional\] My embedded Help Text example](https://forums.eggplantsoftware.com/t/eggplant-functional-my-embedded-help-text-example/3506)

<div class="topic-metadata">

**Author:** [@brett\_x](https://forums.eggplantsoftware.com/u/brett_x)\
**Replies:** 2\
**Last updated:** [August 28, 2015, 12:53pm UTC](https://forums.eggplantsoftware.com/t/eggplant-functional-my-embedded-help-text-example/3506 "2015-08-28T12:53:05Z")

</div>

When I write scripts, it is not uncommon to forget how to use the script (usually handler scripts) or exactly what the script covers (usually regression scripts) a year or so later. I used to use comments to note the usa…

---

## [\[eggPlant Functional\] Useful SenseTalk Functions](https://forums.eggplantsoftware.com/t/eggplant-functional-useful-sensetalk-functions/1501)

<div class="topic-metadata">

**Author:** [@Todd](https://forums.eggplantsoftware.com/u/Todd)\
**Replies:** 49\
**Last updated:** [February 4, 2014, 3:15pm UTC](https://forums.eggplantsoftware.com/t/eggplant-functional-useful-sensetalk-functions/1501 "2014-02-04T15:15:55Z")

</div>

Thought some folks would like an easy to use, quick and dirty way to get field contents on a remote system (System Under Test, or SUT). Stick this into your own Toolbelt.script and start using it today. -- Set the cont…

---

## [\[eggPlant Functional\] Dynamic Search Rectangles](https://forums.eggplantsoftware.com/t/eggplant-functional-dynamic-search-rectangles/3412)

<div class="topic-metadata">

**Author:** [@eggElizabeth](https://forums.eggplantsoftware.com/u/eggElizabeth)\
**Replies:** 0\
**Last updated:** [October 4, 2013, 5:01pm UTC](https://forums.eggplantsoftware.com/t/eggplant-functional-dynamic-search-rectangles/3412 "2013-10-04T17:01:12Z")

</div>

The attached scripts provide a strategy of using dynamic search rectangles that can be used to create an efficient, reusable piece of code that opens folders according to an indicated file path. Because this strategy all…

---

## [\[eggPlant Functional\] Data-Driven Example with Weather.com](https://forums.eggplantsoftware.com/t/eggplant-functional-data-driven-example-with-weather-com/3411)

<div class="topic-metadata">

**Author:** [@eggElizabeth](https://forums.eggplantsoftware.com/u/eggElizabeth)\
**Replies:** 0\
**Last updated:** [October 3, 2013, 6:34pm UTC](https://forums.eggplantsoftware.com/t/eggplant-functional-data-driven-example-with-weather-com/3411 "2013-10-03T18:34:29Z")

</div>

The attached suite logs in to Weather.com, enters a variety of zip codes, and looks to validate that the site displays the corresponding city and state, as well as a local forecast. Please see this Knowledge Base post f…

---

## [\[eggPlant Functional\] Dynamic File with Random Content](https://forums.eggplantsoftware.com/t/eggplant-functional-dynamic-file-with-random-content/3384)

<div class="topic-metadata">

**Author:** [@eggElizabeth](https://forums.eggplantsoftware.com/u/eggElizabeth)\
**Replies:** 0\
**Last updated:** [August 20, 2013, 11:35am UTC](https://forums.eggplantsoftware.com/t/eggplant-functional-dynamic-file-with-random-content/3384 "2013-08-20T11:35:24Z")

</div>

The below script dynamically generates a file at run time with randomly generated content. The content includes random customer ID numbers, names, and email addresses. This approach can be used to create many different k…

---

## [\[eggPlant Functional\] Dynamically Creating and Naming a File](https://forums.eggplantsoftware.com/t/eggplant-functional-dynamically-creating-and-naming-a-file/3383)

<div class="topic-metadata">

**Author:** [@eggElizabeth](https://forums.eggplantsoftware.com/u/eggElizabeth)\
**Replies:** 0\
**Last updated:** [August 20, 2013, 11:30am UTC](https://forums.eggplantsoftware.com/t/eggplant-functional-dynamically-creating-and-naming-a-file/3383 "2013-08-20T11:30:27Z")

</div>

The example below is fairly simple and can be adapted to fit your needs. It uses a couple of provided ranges to randomly generate a file name at run time, and then create a file with that name. This approach is useful wh…

---

## [\[eggPlant Functional\] Reading data from Excel spreadsheets](https://forums.eggplantsoftware.com/t/eggplant-functional-reading-data-from-excel-spreadsheets/1132)

<div class="topic-metadata">

**Author:** [@SenseTalkDoug](https://forums.eggplantsoftware.com/u/SenseTalkDoug)\
**Replies:** 10\
**Last updated:** [September 26, 2012, 2:44am UTC](https://forums.eggplantsoftware.com/t/eggplant-functional-reading-data-from-excel-spreadsheets/1132 "2012-09-26T02:44:05Z")

</div>

Many users are familiar with spreadsheets, so you may find Microsoft Excel to be a convenient tool for storing and maintaining sets of values to be used for data driven testing. But how do you get the data from an Excel …

---

## [\[eggPlant Functional\] Restricting the search area](https://forums.eggplantsoftware.com/t/eggplant-functional-restricting-the-search-area/1073)

<div class="topic-metadata">

**Author:** [@EggplantMatt](https://forums.eggplantsoftware.com/u/EggplantMatt)\
**Replies:** 3\
**Last updated:** [July 10, 2012, 1:49am UTC](https://forums.eggplantsoftware.com/t/eggplant-functional-restricting-the-search-area/1073 "2012-07-10T01:49:56Z")

</div>

Sometimes the thing that you want to find on the screen shows up in more than one place – maybe there are two “okay” buttons visible, or a menu and dropdown list have the same label. In those cases, you may want to restr…

---

## [\[eggPlant Functional\] XML Data -- reading and writing](https://forums.eggplantsoftware.com/t/eggplant-functional-xml-data-reading-and-writing/1188)

<div class="topic-metadata">

**Author:** [@SenseTalkDoug](https://forums.eggplantsoftware.com/u/SenseTalkDoug)\
**Replies:** 14\
**Last updated:** [April 3, 2012, 11:04am UTC](https://forums.eggplantsoftware.com/t/eggplant-functional-xml-data-reading-and-writing/1188 "2012-04-03T11:04:21Z")

</div>

NOTE: In Eggplant for Mac beginning with version 4.1, SenseTalk includes built-in support for working with XML data (see Chapter 16 � Working with Trees and XML of the SenseTalk Reference manual for full details). The ex…

---

## [\[eggPlant Functional\] Find and Replace in Multiple Scripts](https://forums.eggplantsoftware.com/t/eggplant-functional-find-and-replace-in-multiple-scripts/1882)

<div class="topic-metadata">

**Author:** [@SenseTalkDoug](https://forums.eggplantsoftware.com/u/SenseTalkDoug)\
**Replies:** 6\
**Last updated:** [March 1, 2011, 1:56pm UTC](https://forums.eggplantsoftware.com/t/eggplant-functional-find-and-replace-in-multiple-scripts/1882 "2011-03-01T13:56:08Z")

</div>

Here are some scripts that provide at least one possible answer to a common need: finding all of the scripts in a suite that use a particular image name, global variable, command, or function; and possibly changing those…

[Next page](https://forums.eggplantsoftware.com/c/eggplant-examples/8.md?page=1)
