Difference between revisions 2365039 and 3434329 on enwikibooks{{Navigate|Prev=Mixing PlanoTseScript with HTML|Next=First Lesson in PlanoTseScript}} __NOTOC__ :[[PlanoTse Handbook for Job Search Automation/PlanoTseScript|Chapter 5]] == Creating a Testbed == [[File:Passing loop progress at Dovey Junction - geograph.org.uk - 1083522.jpg|thumb]]A [http://planotse.wordpress.com/2012/06/17/planotsescript-web-search-scripting-language/ PlanoTseScript] testbed is where you can code and test your source code in [http://planotse.wordpress.com/2012/06/17/planotsescript-web-search-scripting-language/ 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 [http://planotse.wordpress.com/2012/06/17/planotsescript-web-search-scripting-language/ PlanoTseScript] experiments. {{message box|image=KNotes-Oxygen.pnOxygen480-apps-knotes.svg|backgroundcolor=Azure |heading=How to Run an Immediate Command in PlanoTseScript|message=Remember, when you're asked to run an immediate command in [http://planotse.wordpress.com/2012/06/17/planotsescript-web-search-scripting-language/ PlanoTseScript], you can bring up the [[PlanoTse Handbook for Job Search Automation/Scripting Language in PlanoTse|Code & Run springboard]], type in the command, then press the button ''Run PlanoTseScript''.}} === 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 [[PlanoTse Handbook for Job Search Automation/Domains & Directories|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: <table width="100%" > <tr> <td width="50%" valign=top align=center> {{robox|theme=3|width=80%|title=Alternative Method 1. Use the Menu}} # Select the menu command '''[File » New » Others » Script]'''. # Enter the script title: 'My First Testbed', or use any other testbed name {{Robox/Close}} </td> <td width="50%" valign=top align=center> {{robox|theme=3|width=80%|title=Alternative Method 2. Use PlanoTseScript}} # Select the menu command '''[View » Code & Run]'''. # Enter the string that includes your choice of testbed name: { new script ''My First Testbed''; } # Press the button '''[Run PlanoTseScript]'''. {{Robox/Close}} </td> </tr> </table> === How to Insert Some Code in the Testbed === Do the following steps to insert some code in the testbed: # Open the script holder for use as part of a testbed. # Press the '''Steps''' button. # Enter the code in the input box of the Steps window: { say Hello from my testbed!; } # Press the button '''[Save & Close]'''. # 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: # Remember the number of the script holder you created for use as part of your testbed. # Select the menu command '''[Automation » Go Script » Edit the Go script]'''. # Press the key [Ctrl+A] then press the key [Del] to delete existing content in the Go script file. # Type in the code, ''{ edit script 99999; }'', where 99999 is the actual number of your scrip holder. # Close the Notepad and save the Go script. # 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. {{PlanoTse Handbook for Job Search Automation/shortestroute}} {{Navigate|Prev=Mixing PlanoTseScript with HTML|Next=First Lesson in PlanoTseScript}} All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://en.wikibooks.org/w/index.php?diff=prev&oldid=3434329.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|