PlanoTse Handbook for Job Search Automation/Creating a Testbed


 * Chapter 5

Creating a Testbed
A PlanoTseScript testbed is where you can code and test your source code in PlanoTseScript. When you are satisfied with your logic, you copy the source code and place it in the target springboard. The steps in this section show you how to use a data holder as a testbed for your PlanoTseScript experiments.

Data Directories
You should always know where your data is stored, especially when you create a testbed. Before you start using the software for serious purposes, you should learn how to deal with data domains and data directories in PlanoTse.

How to Create a PlanoTseScript Testbed
The first step in setting up your testbed is to create a script holder. You can do this via menu or via PlanoTseScript. Almost any menu command in PlanoTse can be carried out as a command in PlanoTseScript. Take either of the following course of action:

How to Insert Some Code in the Testbed
Do the following steps to insert some code in the testbed:
 * 1) Open the script holder for use as part of a testbed.
 * 2) Press the Steps button.
 * 3) Enter the code in the input box of the Steps window: { say Hello from my testbed!; }
 * 4) Press the button [Save & Close].
 * 5) Press the Run button and see the result.

How to Access Your Testbed Script from Anywhere
Do the following steps to turn the Go menu into a way to access your testbed script:
 * 1) Remember the number of the script holder you created for use as part of your testbed.
 * 2) Select the menu command [Automation &raquo; Go Script &raquo; Edit the Go script].
 * 3) Press the key [Ctrl+A] then press the key [Del] to delete existing content in the Go script file.
 * 4) Type in the code, { edit script 99999; }, where 99999 is the actual number of your scrip holder.
 * 5) Close the Notepad and save the Go script.
 * 6) From the main menu, click on 'Go' and see that you can open your testbed script at any time regardless of where you might be in the application.