Gmk,
A reminder though.... it will not generate the extra steps required for scripts such as 'Set s 3 up and verify that nothing changes.' And on that point can you confirm that script would generate this?
Im not sure what you mean by this. I think I may have addressed this lower in this post. Sorry!
But I'm thinking that a good way to handle a step that contains, "Verify nothing changes", is to look in the new script for each Command keyword and copy each line from the bottom up. If a line is copied that has the same Control keyword as a previous copy, then skip to the next step up and finishing checking the rest. For example:
(I altered it a little to better describe my idea.)
The steps added would be:
Before I altered the script above to add in the steps that were not generated from the remaining script, I came across an issue. This may be to your point that I'm confused on. If you do not fully parse each step before a "No change" step, you could be looking for the wrong values in the final script. So, we will need to parse the remaining script of each step before moving to a new step.
You can either have one long list of each type of key word or break them down into smaller groups dependent on say the type of job or activity. You may want to give some thought to that aspect.
Most scripts will use about 80% of the final list of keywords so I could create seperate lists for each type of test and cut out 20% of the list.
The problem with code of this type is it can never better the human brain in interpretive skills. I'm being a bit cautious because of the numerous ways an 'instruction' or script can be written and you could finish up with nonsense like.....Set On 100% Switch 1. And I am assuming that is the reason for this...
That is correct. Sometimes its hard enough just to understand the written scripts. I can only imagine the difficulty a script generator could have.
Do you have decimals in scripts?
As in: 73.8 degrees F? Yes and all decimal numbers in the scripts can be cut down to one decimal place, IF any are of higher precision.
Finally.... what is your time frame on this?
Well I hope this isnt taking up too much of your time. I may need something about 80-90% final in a couple of months.
A time frame has not really been set. But I appreciate any help, when you can!
Bookmarks