AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

Contribution: Run conversations as a regression test in Chat Script
 
 

I have uploaded a simple python script which could help you run a series of ‘conversations’ in regression mode. In my brief use of the script so far, I have seen greatly increased productivity.

You can find the files in http://dl.dropbox.com/u/56550238/chat conv test.zip ... read the README.txt first (of course!).

You can give a file input to the tool such as below and it will run a sequence of conversations individually (every traversible path in the tree) and report you if all ok or not.
!  how were you as a kid?
: I was happy as a kid.
.!  Hi
.: Have you been here before?
.!  no
.: I don’t know what to say.
.!  what is your name?
.: My name is Harry.
.!  did u have a good childhood?
.: Did you run away from home when you were little?
..!  no
..: You should try it some time. Travel broadens the mind.
..!  what else?
..: I ran away once, but my parents found me and dragged me back.
..!  what else?
..: What scared you as a kid?
...!  I was shit scared of the dark
...: Did you use a nightlite?
..
...!  goblins
...: I guess your parents didn’t tell you such creatures didn’t exist.
..
.
..!  not really
..: You should try it some time. Travel broadens the mind.
.
..!  yes
..: Was it fun?
.
..!  of course!
..: Was it fun?
.
!
* ^Glad you came back\.$|^Welcome back$|^Hello, again\.$|^Glad you came back\.$|^Hi\.$|^Hi, again\.$

 

 
  [ # 1 ]

I found the URL got mangled by the forum tool because the url had spaces converted to   by dropbox. I have recopied it into a URL without spaces. Perhaps this URL will work better. http://dl.dropbox.com/u/56550238/chatconvtest.zip

 

 
  login or register to react
‹‹ Change topic      Linux vs Windows issue ››