Hi Nicholas,
Great news. You're doing good getting these changes implemented in such a fast manner. I'm also happy to see the open source friendly license too. ;-)
BTW,
Have you looked at ProgramD's test cases that are in XML to run as part of your regression test suite? The test cases are kind of like the acid test for web browsers but for AIML bots.
The regression test goes as follows:
You load your bot with the test AIML file. Then you parse an XML file that has the input to your bot and the expected response. Finally, you compare the actual output to the expected response and spit out an error if they do not match. It's a great test suite to ensure that you have gotten white spacing done right and that your condition's, set's, get's, etc... all work out okay.
Plus, it's always easy to add new test cases when a user reports a problem to the XML file and rerun your test suite to ensure it's been fixed. Latter, when you do major modifications on your bot it's easy to ensure you didn't break something else.
Here is an example of my bot's run through on the test suite:
http://rebecca-aiml.sourceforge.net/regressionTest-0987.htmI have added a few extra test cases that aren't in ProgramD and I think Noel has added more to his since I took his (I need to merge his into mine). But you should be able to download the XML test file from my downloads section as well as ProgramD's.
I am thinking about opening up a seperate sourceforge site strictly for the maintance and release of the XML test suite. It's a very very helpful tool for developers to run their bots against.
Finally,
7. Included a very simple Web-services based example application.
Both ProgramD and Program# have web services. Do they happen to share the same WSDL file? It would be nice if there was a common yet simple getResponse WSDL file that was standardized. This would make it compatiable for client side code that accessed the Program# WSDL to also access the ProgramD WSDL.
----- Original Message ----
From: Nicholas H.Tollervey <
ntoll@...>
To: Alicebot Developer Discussion <
alicebot-developer@...>
Sent: Tuesday, December 12, 2006 7:43:16 AM
Subject: [alicebot-developer] Program# release 2.1
Hi,
I've just release version 2.1 of the Program# (AIMLbot) the .NET
implementation. Documentation has also been updated.
Changes in this release:
1. The bot used to get the wild-card matches mixed up if processing more
than one sentence. This is now fixed with the appropriate unit tests
written and the example applications updated. A new class "SubRequest"
now encapsulates a query to the Graphmaster and holds the wild-card
matches.
2. The normalization process for applying changes is now fixed so it
doesn't always return uppercase. The case of the normalized result
should match that of the user's raw input plus any replacements. This
means <star/> tags return exactly what the user inputted, rather than a
capitalized version of it.
3. There is the potential that the bot could get into an infinite loop
when processing the template tag, especially if it encountered a srai
tag that ultimately led back to itself. This hole has now been plugged
in two ways:
a) Each time an AIML tag is processed the request is checked to make
sure it hasn't timed out.
b) When the srai class calls a sub-request with the new path the new
request object has the same StartedOn value as the original request.
4. Made changes to the way the path for queries to the Graphmaster are
dealt with. It is now "backwards": (topic <topic> that <that> User input).
5. Added some new tests and code for stopping a bot from accepting user
input (something that should happen should it be changing the
graphmaster for example). Updated other projects to reflect these
changes too.
6. Changed the behaviour of the default constructor in the "Bot" class.
Removed the loading of config files from the constructor so you now have
to call the loadSettings() method to load the configuration files.
7. Included a very simple Web-services based example application.
As always, comments and suggestions are welcome.
Best wishes,
Nicholas
_______________________________________________
alicebot-developer mailing list
alicebot-developer@...
http://list.alicebot.org/mailman/listinfo/alicebot-developer
____________________________________________________________________________________
Need a quick answer? Get one in minutes from people who know.
Ask your question on www.Answers.yahoo.com
_______________________________________________
alicebot-developer mailing list
alicebot-developer@...
http://list.alicebot.org/mailman/listinfo/alicebot-developer