Ok, well i think i was one of the first people to nag for a scripting guide, then it appears and i got bogged down in ironing out niggles with existing platforms, so its about time i started to contribute some platforms!
1st though i have a few questions i would like to ask to help me better understand the scripting engine.
1. What variables must go in certain sections.
Looking through varies ini files, some have these variables in the [setup] section:
Whereas others have them 1st appear in the register step. Is this important, or can they be defined any point up to and including the actual [step*] they are needed in? This goes for other variables as well.
To further illustrate my question, lets look at the new moodle.ini, because i have it open (and not because i am being in any way critical of it)
This contains 'find link' (and its other methods to do the same)
Then 'just download' is set.
This means to find the url and download the page, then move to next step (according to the pdf).
Then however there are submit success/fail settings and a bunch of form filling variables in the same step - why are they here and not in the step that actually uses them? Is it just personal preference?
This finds a form that doesnt take user input, and submits it.
It does however have a 'page must have' variable in this step as well - what is its purpose? Does it check the page before or after the submit? If after, it is actually checking the next page correct?
Also, there are no submit success/failed variables set here, so i guess a form can be submitted without checking for submit/failure?
This finds a form on the next page (which suggests that GSA automatically loads the next page after a submit).
This appears to fill the form using the form filling variables from register step 1.
There are also no success/failed variables set here either, but it looks like it is using those ones set in register step one.
This particularly confused me - if it reads the last set variables, how come register step 2 didnt use those, and then get stuck waiting for an email that never came???
Maybe because this was the only time [your email] variable was used?
I hope that all makes sense. I have been maping out some platforms in sudo code, but i still need to understand the scripting order/logic a little better before diving in.
Thanks for any help