Internal Tweaks
Some Internal Tweaks tonight.
Update RunGenericTest to offer the option of not using On Error Resume Next
Update RunGenericTest to allow for parameters to be passed (arrParameters array?)
You Eye
For the first time, I'm going to add a little logic to the test page itself. First, I'll update the GenericTest function to allow for errors to be treated as fatal. Then I'll update the page to expose this option (link, I suppose). This is akin to turning off "Show Friendly Errors" in IE.
Tonight's coding is accompanied by Tears for Fears: the hurting.
Hmm... First time that I can recall actually trying to introduce runtime errors into my code. If I fail at producing buggy code what have I really done? (:
Ok, I can now toggle easily between error-catching and error-ignoring. I also didn't really need to use the Execute command.
Update RunGenericTest to allow for parameters to be passed
This will be another UI feature - allow the user to enter parameters for the tests. Am I breaking some sort of natural law here? It seems I might get carried away and no longer use the tests as they were intended. Oh well, full steam ahead.
Of course, I'll need to spend some code to validate the inputs, which might not be code under test.
Good, good, all is working. I should have included some more ambitious goals, but I knew I only had a short amount of time. I'll play around a bit with the output, maybe in a table format.
Ok, it looks pretty good now. That's enough for tonight.
Update RunGenericTest to offer the option of not using On Error Resume Next
Update RunGenericTest to allow for parameters to be passed (arrParameters array?)
You Eye
For the first time, I'm going to add a little logic to the test page itself. First, I'll update the GenericTest function to allow for errors to be treated as fatal. Then I'll update the page to expose this option (link, I suppose). This is akin to turning off "Show Friendly Errors" in IE.
Tonight's coding is accompanied by Tears for Fears: the hurting.
Hmm... First time that I can recall actually trying to introduce runtime errors into my code. If I fail at producing buggy code what have I really done? (:
Ok, I can now toggle easily between error-catching and error-ignoring. I also didn't really need to use the Execute command.
Update RunGenericTest to allow for parameters to be passed
This will be another UI feature - allow the user to enter parameters for the tests. Am I breaking some sort of natural law here? It seems I might get carried away and no longer use the tests as they were intended. Oh well, full steam ahead.
Of course, I'll need to spend some code to validate the inputs, which might not be code under test.
Good, good, all is working. I should have included some more ambitious goals, but I knew I only had a short amount of time. I'll play around a bit with the output, maybe in a table format.
Ok, it looks pretty good now. That's enough for tonight.
0 Comments:
Post a Comment
<< Home