Botium scripting memory: Expected bot response not matched - testing

I am getting the following error when using Botium:
TranscriptError: Error: GetNewGetDeleteGet/Line 27: Expected bot
response (on Line 20: #me - getID ) "99 | This is a test" to match
one of "$id | This is a test"
at async.waterfall (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/Convo.js:160:25)
Convo File:
#me: getID
#bot: $id | This is a test
To start Botium I do: sudo botium-cli run mochawesome
I already fired up this command: export BOTIUM_ENABLE_MEMORY=true
Any ideas?
Botium should accept the answer of the bot and save the 99 into the variable $id, shouldn't it?
Edit: After adding SCRIPTING_ENABLE_MEMORY=true to the config file
convo.txt:
#me
get
#bot default
*Hier sind deine Erinnerungen:*
Keine Notizen, oder alles erledigt.
Error:
TranscriptError: Error: GetNewGetDeleteGet/Line 11: error waiting for bot SyntaxError: Invalid regular expression: /*Hier sind deine Erinnerungen:* Keine Notizen, oder alles erledigt./: Nothing to repeat at String.match (native) at utterances.forEach.expected (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/Convo.js:359:38) at Array.forEach (<anonymous>) at Convo._fillScriptingMemory (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/Convo.js:353:18) at scriptingEvents.onBotStart.then.then (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/Convo.js:256:22) at <anonymous>
Dialogflow shows the answer like this
My Code sends it out like that:
{'fulfillmentText': '*Hier sind deine Erinnerungen:*\n\nKeine Notizen, oder alles erledigt.'}
Edit 2:
After removing the *
Convo.txt
Edit 3:
Error Full error log
Edit 4:
Verbose Log

There are two problems:
The environment variable to set is BOTIUM_SCRIPTING_ENABLE_MEMORY
Usually, when running a command with sudo you will loose the environment variables. You can add the capability SCRIPTING_ENABLE_MEMORY to the botium.json file instead.

Related

How can I find out which package is missing for conan?

I am trying to install an environment using conan. I receive the message
opengl/system: Already installed!
ERROR: opengl/system: Error in package_info() method, line 60
pkg_config.fill_cpp_info(self.cpp_info, is_system=self.settings.os != "FreeBSD")
ConanException: pkg-config command ['pkg-config', '--print-provides', 'gl', '--print-errors'] failed with error: Command 'pkg-config --print-provides gl --print-errors' returned non-zero exit status 127.
/bin/sh: 1: pkg-config: not found
This says me a lot of information, except that which package is not yet installed.
How can I find out that?

Valgrind configure build script "Syntax Error" OSX Monterey - how to fix?

I'm trying to build Valgrind 3.19.0 on OSX monterey and when i run the configure script i get a syntax error at line 6594:
checking for diff -u... yes
./configure: line 6594: syntax error near unexpected token `newline'
./configure: line 6594: ` '''
This is the code sippet of the configure script where the error is occuring.
for as_dir in $PATH
do
IFS=$as_save_IFS
case $as_dir in #(((
''
as_dir=./ ;;
*/) ;;
*) as_dir=$as_dir/ ;;
Let me know if you need any more info.

How can I fix this bug with ScyllaDB?

I'm trying to work through the ScyllaDB tutorial series here: https://www.scylladb.com/2017/11/30/mutant-monitoring-system-day-1/
I've got a Docker container running (on Windows, using Powershell) and have cloned their repo, and run it with Docker Compose:
PS C:\repos\scylla-code-samples\mms> docker-compose up -d
mms_scylla-node3_1 is up-to-date
mms_scylla-node2_1 is up-to-date
Creating mms_scylla-node1_1 ... done
Trying to check its status with the nodetool returns a container restarting error:
PS C:\repos\scylla-code-samples\mms> docker exec -it mms_scylla-node1_1 nodetool status
>>
Error response from daemon: Container c2940e14078fcdbbcf70f60392b05eb3d5c90273a15970c8575aad46cd797a02 is restarting, wait until the container is running
The logs show these unexpected end of file errors:
2019-03-05T09:39:36.882128500Z /start.sh: line 36: syntax error: unexpected end of file
2019-03-05T09:40:38.038237500Z /start.sh: line 4: $'\r': command not found
2019-03-05T09:40:38.038383700Z /start.sh: line 36: syntax error: unexpected end of file
2019-03-05T09:41:38.922861400Z /start.sh: line 4: $'\r': command not found
2019-03-05T09:41:38.923067400Z /start.sh: line 36: syntax error: unexpected end of file
2019-03-05T09:42:39.801821900Z /start.sh: line 4: $'\r': command not found
2019-03-05T09:42:39.802078500Z /start.sh: line 36: syntax error: unexpected end of file
2019-03-05T09:43:40.696641100Z /start.sh: line 4: $'\r': command not found
2019-03-05T09:43:40.696928800Z /start.sh: line 36: syntax error: unexpected end of file
How can I fix this, preferably without writing code?
The \r is indicative of windows-style carriage returns, so maybe it is related to your Windows environment somehow. Advise is to try this on a Linux box, and in parallel open a bug with the scylla-code-samples.git project so that it can be fixed.
On windows, you can try using the Docker Toolbox which uses a Virtual Box based docker host rather than the one that's part of the new "Docker for Windows". This ensure that you are running on Linux without having a Linux box.
Even though it says "Legacy Desktop Solution" It still works well.
https://docs.docker.com/toolbox/toolbox_install_windows/

simplehtmldom - SSL operation failed with code 1. OpenSSL Error messages

I'm using http://simplehtmldom.sourceforge.net/ and file_get_contents() in my webApp. The file_get_contents() work fine on localhost. But when upload webApp on server(Windows server 2012 r2) i get this error. How to fix this error?
> Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in E:\cfnic.com\includes\class\PHP_Simple_HTML_DOM_Parser.php on line 75
Warning: file_get_contents(): Failed to enable crypto in E:\cfnic.com\includes\class\PHP_Simple_HTML_DOM_Parser.php on line 75
Warning: file_get_contents(https://www.markafoni.com/kadin/): failed to open stream: operation failed in E:\cfnic.com\includes\class\PHP_Simple_HTML_DOM_Parser.php on line 75
Fatal error: Call to a member function find() on boolean in E:\cfnic.com\includes\theme\category.php on line 159
You basically have to set the environment variable SSL_CERT_FILE to the path of the PEM file of the ssl-certificate downloaded from the following link : http://curl.haxx.se/ca/cacert.pem.
It took me a lot of time to figure this out.
For a detailed answer, you can have a look here: https://stackoverflow.com/questions/34590842/cannot-install-composer-on-mac-os-x/34617315

spell check : Tiny MCE editor

i am getting this error while i am enter some text and click on spellcheck icon in tinyMCE Editor..
Error response:
Warning: fsockopen(): php_network_getaddresses:
getaddrinfo failed: Temporary failure in name resolution in
/home/web/rattspar.se/scripts/tiny_mce/plugins/spellchecker/classes/GoogleSpell.php
on line 86 Warning: fsockopen(): unable to connect to
ssl://www.google.com:443 (php_network_getaddresses: getaddrinfo failed:
Temporary failure in name resolution) in
/home/web/rattspar.se/scripts/tiny_mce/plugins/spellchecker/classes/GoogleSpell.php
on line 86 Could not open SSL connection to google.{"id":null,"result":[],"error":null}
help me out/uday
Hi finally i got the answer. we have to Un-comment the line extension=php_curl.dll and extension=php_openssl.dll in php.ini and then restart the server.;-)