Botium Scripts from updated Crawler userFeedback.json not generating

90 views Asked by At

When I attempt to re-run an updated userFeedback.json, with the script folder empty, I am not getting new scripts (that would include any changes made to the userFeedback.json file)

Do you have any suggestions on trouble shooting or settings/config changes?

Thanks!

1

There are 1 answers

1
Szabolcs Gergye On BEST ANSWER

So if I understand correctly when you re-run the crawler you get the same scripts as previous you updated the userFeedback.json, right?

I need some info:

  • How does your command (or config) look like, which you use to run the crawler?
  • What did you modified in userFeedback.json?

Tip: If you use DEBUG=botium-crawler* environment variable, you can get a more detailed log. E.g: DEBUG=botium-crawler* botium-cli crawler-run ...


Updated

(I got some new info from the comments)

I tried it with docker as well (It's important to run it with '-it' because you will have terminal interactions):

docker run --rm -v $(pwd):/app/workdir -it botium/botium-cli crawler-run 

With the command above I got this result:

crawler-result

Then I removed the scripts folder from the crawler-result, and I edit the userFeedback.json with a "test" answer on "hello" path:

[
  {
    "path": "hello",
    "script": "hello\n\n#me\nhello\n\n#bot\nYou said: hello\n",
    "answers": ["test"]
  },
  {
    "path": "help",
    "script": "help\n\n#me\nhelp\n\n#bot\nRecognized commands: help, fail, add to cart, show cart, clear cart, weak intent, duplicate intent, buttons, show me buttons, show me some buttons, give me buttons, picture, show me a picture, give me a picture, card, show me a card, give me a card, attachment, audio attachment, video, video attachment, Fruits, Apple, Pear, Red, Yellow, Green, Dummy button, Fruits, Apple, Pear, Red, Yellow, Green, Dummy button\n",
    "answers": []
  }
]

I re-run the above written docker command again, and the result is:

enter image description here

I hope it helped.