codeforequity-at / botium-core

The Selenium for Chatbots - Bots Testing Bots
https://www.botium.ai
MIT License
229 stars 64 forks source link

Unable to run botium-connector-webdriverio whatsapp script with docker-android #618

Closed btlucas closed 3 years ago

btlucas commented 3 years ago

Describe the bug I'm trying to use the whatsapp script from botium-connector-webdriverio but it's just not working. Followed both https://github.com/budtmo/docker-android/blob/master/docker-compose.yml and https://botium.atlassian.net/wiki/spaces/BOTIUM/pages/32145510/Run+Selenium+Grid+and+Connect+to+Botium+Box, could get the selenium grid, appium and the android emulator with whatsapp installed and registered, all running but when I try to run the sample test I get the following error

botium-cli run

Botium Test-Suite 1) "before each" hook for "hi"

0 passing (617ms) 1 failing

1) Botium Test-Suite "before each" hook for "hi": Error: WebDriver error on startup: Failed to create session. Unable to connect to "127.0.0.1:4723", make sure browser driver is running on that address. If you use services like chromedriver see initialiseServices logs above or in wdio.log file. at BotiumConnectorWebdriverIO.Start (/usr/local/lib/node_modules/botium-connector-webdriverio/dist/botium-connector-webdriverio-cjs.js:672:13) at processTicksAndRejections (internal/process/task_queues.js:97:5)

To Reproduce Use the following docker-compose configuration:

version: "2.2"

services: selenium_hub: image: selenium/hub:latest ports:

  • 4444:4444

    real_device: image: appium/appium depends_on:

  • selenium_hub network_mode: "service:selenium_hub" privileged: true volumes:
  • /dev/bus/usb:/dev/bus/usb
  • ~/.android:/root/.android
  • $PWD/example/sample_apk:/root/tmp environment:
  • CONNECT_TO_GRID=true
  • SELENIUM_HOST=selenium_hub

    nexus_7.1.1: image: btlucas/testebackup:v1 privileged: true scale: 1 depends_on:

  • selenium_hub
  • real_device ports:
  • 6080:6080 volumes:
  • $PWD/example/sample_apk:/root/tmp/whatsapp_apk
  • ./video-nexus_7.1.1:/tmp/video environment:
  • DEVICE=Nexus 5
  • CONNECT_TO_GRID=true
  • APPIUM=true
  • SELENIUM_HOST=selenium_hub
  • AUTO_RECORD=false

The btlucas/testebackup:v1 image is a image I made locally from a container running budtmo/docker-android-x86-8.0 with whatsapp installed and registered.

Expected behavior I should be able to run the sample test, given that I've changed both WEBDRIVERIO_CONTACT and WEBDRIVERIO_LANGUAGE to match my case.

Screenshots and Log files

Screenshots:

image

image

Log:

botium-cli run --verbose botium-cli Using Botium configuration file ./botium.json +0ms botium-cli-run command options: { botium-cli-run _: [ 'run' ], botium-cli-run verbose: true, botium-cli-run v: true, botium-cli-run convos: [ '.' ], botium-cli-run C: [ '.' ], botium-cli-run config: './botium.json', botium-cli-run c: './botium.json', botium-cli-run output: 'spec', botium-cli-run testsuitename: 'Botium Test-Suite', botium-cli-run n: 'Botium Test-Suite', botium-cli-run expandutterances: false, botium-cli-run expandscriptingmemory: false, botium-cli-run timeout: 60, botium-cli-run '$0': '/usr/local/bin/botium-cli' botium-cli-run } +0ms botium-cli-run Mocha Reporter "spec", options: undefined +0ms botium-core-BotDriver Loaded Botium configuration files /home/btlucas/github/Testes/botium-connector-webdriverio/samples/whatsapp/botium.json +0ms botium-core-ScriptingProvider ReadConvosFromDirectory(.) found filenames: botium.json,package.json,spec/convo/hi.convo.txt +0ms botium-core-ScriptingProvider ReadConvosFromDirectory(.) found convos: botium-core-ScriptingProvider 1 hi ({ convoDir: '.', filename: 'spec/convo/hi.convo.txt' }): Line 3: #me - hi | Line 6: #bot - Welcome to the World Health Organization +4ms botium-core-ScriptingProvider ReadConvosFromDirectory(.) found utterances: botium-core-ScriptingProvider none +0ms botium-core-ScriptingProvider ReadConvosFromDirectory(.) found partial convos: botium-core-ScriptingProvider none +0ms botium-core-ScriptingProvider ReadConvosFromDirectory(.) scripting memories: botium-core-ScriptingProvider none +0ms botium-cli-run ready reading convos (1), expanding convos ... +257ms botium-core-ScriptingProvider ExpandConvos - Using utterances expansion mode: all +0ms botium-cli-run ready expanding convos and utterances, number of test cases: (1). +13ms botium-cli-run adding test case hi (from: { convoDir: '.', filename: 'spec/convo/hi.convo.txt' }) +2ms

Botium Test-Suite botium-core-BotDriver Build - Botium Core Version: 1.11.1 +278ms botium-core-BotDriver Build - Capabilites: { botium-core-BotDriver PROJECTNAME: 'WebdriverIO Whatsapp Sample', botium-core-BotDriver TESTSESSIONNAME: 'Botium Test Session', botium-core-BotDriver TESTCASENAME: 'Botium Test Case', botium-core-BotDriver TEMPDIR: 'botiumwork', botium-core-BotDriver CLEANUPTEMPDIR: false, botium-core-BotDriver WAITFORBOTTIMEOUT: 10000, botium-core-BotDriver SIMULATE_WRITING_SPEED: false, botium-core-BotDriver SIMPLEREST_PING_RETRIES: 6, botium-core-BotDriver SIMPLEREST_PING_TIMEOUT: 10000, botium-core-BotDriver SIMPLEREST_PING_VERB: 'GET', botium-core-BotDriver SIMPLEREST_PING_UPDATE_CONTEXT: true, botium-core-BotDriver SIMPLEREST_STOP_RETRIES: 6, botium-core-BotDriver SIMPLEREST_STOP_TIMEOUT: 10000, botium-core-BotDriver SIMPLEREST_STOP_VERB: 'GET', botium-core-BotDriver SIMPLEREST_START_RETRIES: 6, botium-core-BotDriver SIMPLEREST_START_TIMEOUT: 10000, botium-core-BotDriver SIMPLEREST_START_VERB: 'GET', botium-core-BotDriver SIMPLEREST_POLL_VERB: 'GET', botium-core-BotDriver SIMPLEREST_POLL_INTERVAL: 1000, botium-core-BotDriver SIMPLEREST_POLL_UPDATE_CONTEXT: true, botium-core-BotDriver SIMPLEREST_METHOD: 'GET', botium-core-BotDriver SIMPLEREST_IGNORE_EMPTY: true, botium-core-BotDriver SIMPLEREST_TIMEOUT: 10000, botium-core-BotDriver SIMPLEREST_EXTRA_OPTIONS: {}, botium-core-BotDriver SIMPLEREST_STRICT_SSL: true, botium-core-BotDriver SIMPLEREST_INBOUND_UPDATE_CONTEXT: true, botium-core-BotDriver SIMPLEREST_CONTEXT_MERGE_OR_REPLACE: 'MERGE', botium-core-BotDriver SCRIPTING_TXT_EOL: '\n', botium-core-BotDriver SCRIPTING_XLSX_EOL_WRITE: '\r\n', botium-core-BotDriver SCRIPTING_XLSX_HASHEADERS: true, botium-core-BotDriver SCRIPTING_CSV_SKIP_HEADER: true, botium-core-BotDriver SCRIPTING_CSV_QUOTE: '"', botium-core-BotDriver SCRIPTING_CSV_ESCAPE: '"', botium-core-BotDriver SCRIPTING_NORMALIZE_TEXT: true, botium-core-BotDriver SCRIPTING_ENABLE_MEMORY: false, botium-core-BotDriver SCRIPTING_ENABLE_MULTIPLE_ASSERT_ERRORS: false, botium-core-BotDriver SCRIPTING_MATCHING_MODE: 'wildcardIgnoreCase', botium-core-BotDriver SCRIPTING_UTTEXPANSION_MODE: 'all', botium-core-BotDriver SCRIPTING_UTTEXPANSION_RANDOM_COUNT: 1, botium-core-BotDriver SCRIPTING_UTTEXPANSION_NAMING_MODE: 'justLineTag', botium-core-BotDriver SCRIPTING_UTTEXPANSION_NAMING_UTTERANCE_MAX: '16', botium-core-BotDriver SCRIPTING_MEMORYEXPANSION_KEEP_ORIG: false, botium-core-BotDriver ASSERTERS: [], botium-core-BotDriver LOGIC_HOOKS: [], botium-core-BotDriver USER_INPUTS: [], botium-core-BotDriver SECURITY_ALLOW_UNSAFE: true, botium-core-BotDriver CONTAINERMODE: 'webdriverio', botium-core-BotDriver WEBDRIVERIO_OPTIONS: { botium-core-BotDriver capabilities: { platformName: 'Android' }, botium-core-BotDriver port: 4723, botium-core-BotDriver path: '/wd/hub' botium-core-BotDriver }, botium-core-BotDriver WEBDRIVERIO_PROFILE: 'whatsapp', botium-core-BotDriver WEBDRIVERIO_CONTACT: 'Contact', botium-core-BotDriver WEBDRIVERIO_LANGUAGE: 'en', botium-core-BotDriver WEBDRIVERIO_OUTPUT_ELEMENT_DEBUG_HTML: false, botium-core-BotDriver CONFIG: './botium.json' botium-core-BotDriver } +1ms botium-core-BotDriver Build - Sources : { LOCALPATH: '.', GITPATH: 'git', GITBRANCH: 'master', GITDIR: '.' } +0ms botium-core-BotDriver Build - Envs : { IS_BOTIUM_CONTAINER: true } +0ms botium-connector-PluginConnectorContainer-helper Botium plugin botium-connector-webdriverio loaded. Plugin version is 0.3.9 +0ms botium-connector-webdriverio Validate called +0ms botium-connector-webdriverio Build called +1ms botium-connector-webdriverio Start called +3ms botium-connector-webdriverio Webdriver Options: {"capabilities":{"platformName":"Android","appPackage":"com.whatsapp","appActivity":"com.whatsapp.HomeActivity","noReset":true,"automationName":"UiAutomator2"},"port":4723,"path":"/wd/hub","logLevel":"silent"} +1ms botium-connector-webdriverio WebDriver error on startup: Failed to create session. botium-connector-webdriverio Unable to connect to "127.0.0.1:4723", make sure browser driver is running on that address. botium-connector-webdriverio If you use services like chromedriver see initialiseServices logs above or in wdio.log file. +16ms botium-connector-webdriverio Failed to take debug screenshot - browser already closed +0ms 1) "before each" hook for "hi" botium-connector-webdriverio Stop called +3ms botium-connector-webdriverio Clean called +1ms

0 passing (644ms) 1 failing

1) Botium Test-Suite "before each" hook for "hi": Error: WebDriver error on startup: Failed to create session. Unable to connect to "127.0.0.1:4723", make sure browser driver is running on that address. If you use services like chromedriver see initialiseServices logs above or in wdio.log file. at BotiumConnectorWebdriverIO.Start (/usr/local/lib/node_modules/botium-connector-webdriverio/dist/botium-connector-webdriverio-cjs.js:672:13) at processTicksAndRejections (internal/process/task_queues.js:97:5)

Botium Flavour:

Botium Version Botium Core Version: 1.11.1 Botium CLI Version: 1.0.7

codeforequity-at commented 3 years ago

Try to expose port 4723 from the Android docker container

See https://github.com/codeforequity-at/botium-connector-webdriverio/blob/master/samples/appium/docker-compose.yml

btlucas commented 3 years ago

My bad, I was using docker run before so the "4723:4723" was always on the command line. Thanks for the help! Just one more question, if you don't mind. Now that the script is running I'm having an issue where the assertion fails because my bot sends me 3 messages at once and the assertion tries to find the first message reading the second one. To fix that I would have to improve the "whatsapp.js" profile, right?

Screenshots: image image

My convo file looks like this:

acesso

me

Oi

bot

Olá, bem-vindo ao bot de testes de QA do altu. O que deseja testar hoje?

me

acesso

bot

Caso você esteja lendo isto, o bot está respondendo corretamente.

bot

Seu input foi: acesso

bot

Continuar?

me

Sim

bot

Encerrando...

Made following this: https://floriantreml.medium.com/handling-cases-where-a-bot-replies-with-multiple-sentences-is-very-common-864c8b870cbd

codeforequity-at commented 3 years ago

Can you let it run with the --verbose switch and attach the log output here please

btlucas commented 3 years ago

Sure! Here it is:

botium-cli run --verbose botium-cli Using Botium configuration file ./botium.json +0ms botium-cli-run command options: { botium-cli-run _: [ 'run' ], botium-cli-run verbose: true, botium-cli-run v: true, botium-cli-run convos: [ '.' ], botium-cli-run C: [ '.' ], botium-cli-run config: './botium.json', botium-cli-run c: './botium.json', botium-cli-run output: 'spec', botium-cli-run testsuitename: 'Botium Test-Suite', botium-cli-run n: 'Botium Test-Suite', botium-cli-run expandutterances: false, botium-cli-run expandscriptingmemory: false, botium-cli-run timeout: 60, botium-cli-run '$0': '/usr/local/bin/botium-cli' botium-cli-run } +0ms botium-cli-run Mocha Reporter "spec", options: undefined +1ms botium-core-BotDriver Loaded Botium configuration files /home/btlucas/github/Testes/botium/botium.json +0ms botium-core-ScriptingProvider ReadConvosFromDirectory(.) found filenames: acesso.convo.txt,botium.json,package.json +0ms botium-core-ScriptingProvider ReadConvosFromDirectory(.) found convos: botium-core-ScriptingProvider 1 acesso ({ convoDir: '.', filename: 'acesso.convo.txt' }): Line 3: #me - Oi | Line 6: #bot - Olá, bem-vindo ao bot de testes de QA do altu. O que deseja testar hoje? | Line 9: #me - acesso | Line 12: #bot - Caso você esteja lendo isto, o bot está respondendo corretamente. | Line 15: #bot - Seu input foi: acesso | Line 18: #bot - Continuar? | Line 21: #me - Sim | Line 24: #bot - Encerrando... +4ms botium-core-ScriptingProvider ReadConvosFromDirectory(.) found utterances: botium-core-ScriptingProvider none +1ms botium-core-ScriptingProvider ReadConvosFromDirectory(.) found partial convos: botium-core-ScriptingProvider none +0ms botium-core-ScriptingProvider ReadConvosFromDirectory(.) scripting memories: botium-core-ScriptingProvider none +0ms botium-cli-run ready reading convos (1), expanding convos ... +376ms botium-core-ScriptingProvider ExpandConvos - Using utterances expansion mode: all +0ms botium-cli-run ready expanding convos and utterances, number of test cases: (1). +16ms botium-cli-run adding test case acesso (from: { convoDir: '.', filename: 'acesso.convo.txt' }) +2ms

Botium Test-Suite botium-core-BotDriver Build - Botium Core Version: 1.11.1 +400ms botium-core-BotDriver Build - Capabilites: { botium-core-BotDriver PROJECTNAME: 'WebdriverIO Whatsapp Sample', botium-core-BotDriver TESTSESSIONNAME: 'Botium Test Session', botium-core-BotDriver TESTCASENAME: 'Botium Test Case', botium-core-BotDriver TEMPDIR: 'botiumwork', botium-core-BotDriver CLEANUPTEMPDIR: false, botium-core-BotDriver WAITFORBOTTIMEOUT: 10000, botium-core-BotDriver SIMULATE_WRITING_SPEED: false, botium-core-BotDriver SIMPLEREST_PING_RETRIES: 6, botium-core-BotDriver SIMPLEREST_PING_TIMEOUT: 10000, botium-core-BotDriver SIMPLEREST_PING_VERB: 'GET', botium-core-BotDriver SIMPLEREST_PING_UPDATE_CONTEXT: true, botium-core-BotDriver SIMPLEREST_STOP_RETRIES: 6, botium-core-BotDriver SIMPLEREST_STOP_TIMEOUT: 10000, botium-core-BotDriver SIMPLEREST_STOP_VERB: 'GET', botium-core-BotDriver SIMPLEREST_START_RETRIES: 6, botium-core-BotDriver SIMPLEREST_START_TIMEOUT: 10000, botium-core-BotDriver SIMPLEREST_START_VERB: 'GET', botium-core-BotDriver SIMPLEREST_POLL_VERB: 'GET', botium-core-BotDriver SIMPLEREST_POLL_INTERVAL: 1000, botium-core-BotDriver SIMPLEREST_POLL_UPDATE_CONTEXT: true, botium-core-BotDriver SIMPLEREST_METHOD: 'GET', botium-core-BotDriver SIMPLEREST_IGNORE_EMPTY: true, botium-core-BotDriver SIMPLEREST_TIMEOUT: 10000, botium-core-BotDriver SIMPLEREST_EXTRA_OPTIONS: {}, botium-core-BotDriver SIMPLEREST_STRICT_SSL: true, botium-core-BotDriver SIMPLEREST_INBOUND_UPDATE_CONTEXT: true, botium-core-BotDriver SIMPLEREST_CONTEXT_MERGE_OR_REPLACE: 'MERGE', botium-core-BotDriver SCRIPTING_TXT_EOL: '\n', botium-core-BotDriver SCRIPTING_XLSX_EOL_WRITE: '\r\n', botium-core-BotDriver SCRIPTING_XLSX_HASHEADERS: true, botium-core-BotDriver SCRIPTING_CSV_SKIP_HEADER: true, botium-core-BotDriver SCRIPTING_CSV_QUOTE: '"', botium-core-BotDriver SCRIPTING_CSV_ESCAPE: '"', botium-core-BotDriver SCRIPTING_NORMALIZE_TEXT: true, botium-core-BotDriver SCRIPTING_ENABLE_MEMORY: false, botium-core-BotDriver SCRIPTING_ENABLE_MULTIPLE_ASSERT_ERRORS: false, botium-core-BotDriver SCRIPTING_MATCHING_MODE: 'wildcardIgnoreCase', botium-core-BotDriver SCRIPTING_UTTEXPANSION_MODE: 'all', botium-core-BotDriver SCRIPTING_UTTEXPANSION_RANDOM_COUNT: 1, botium-core-BotDriver SCRIPTING_UTTEXPANSION_NAMING_MODE: 'justLineTag', botium-core-BotDriver SCRIPTING_UTTEXPANSION_NAMING_UTTERANCE_MAX: '16', botium-core-BotDriver SCRIPTING_MEMORYEXPANSION_KEEP_ORIG: false, botium-core-BotDriver ASSERTERS: [], botium-core-BotDriver LOGIC_HOOKS: [], botium-core-BotDriver USER_INPUTS: [], botium-core-BotDriver SECURITY_ALLOW_UNSAFE: true, botium-core-BotDriver CONTAINERMODE: 'webdriverio', botium-core-BotDriver WEBDRIVERIO_OPTIONS: { botium-core-BotDriver capabilities: { platformName: 'Android' }, botium-core-BotDriver port: 4723, botium-core-BotDriver path: '/wd/hub' botium-core-BotDriver }, botium-core-BotDriver WEBDRIVERIO_PROFILE: 'whatsapp', botium-core-BotDriver WEBDRIVERIO_CONTACT: 'Contact', botium-core-BotDriver WEBDRIVERIO_LANGUAGE: 'en', botium-core-BotDriver WEBDRIVERIO_OUTPUT_ELEMENT_DEBUG_HTML: false, botium-core-BotDriver CONFIG: './botium.json' botium-core-BotDriver } +0ms botium-core-BotDriver Build - Sources : { LOCALPATH: '.', GITPATH: 'git', GITBRANCH: 'master', GITDIR: '.' } +1ms botium-core-BotDriver Build - Envs : { IS_BOTIUM_CONTAINER: true } +1ms botium-connector-PluginConnectorContainer-helper Botium plugin botium-connector-webdriverio loaded. Plugin version is 0.3.9 +0ms botium-connector-webdriverio Validate called +0ms botium-connector-webdriverio Build called +2ms botium-connector-webdriverio Start called +4ms botium-connector-webdriverio Webdriver Options: {"capabilities":{"platformName":"Android","appPackage":"com.whatsapp","appActivity":"com.whatsapp.HomeActivity","noReset":true,"automationName":"UiAutomator2"},"port":4723,"path":"/wd/hub","logLevel":"silent"} +0ms botium-connector-webdriverio-whatsapp Finding contact Contact: //[@resource-id="com.whatsapp:id/conversations_row_contact_name" and @text="Contact"] +0ms botium-connector-webdriverio-whatsapp Cleaning up chat history for Contact ... +1s botium-connector-webdriverio-whatsapp Cleaning up chat history for Contact ready +6s botium-connector-webdriverio Saved debugging screenshot to /home/btlucas/github/Testes/botium/botiumwork/WebdriverIO Whatsapp Sample 20210413 124746 V46YU/onstart1.png +16s botium-cli-run running testcase acesso +17s botium-core-Convo acesso/Line 3: user says (cleaned by binary and base64 data and sourceData) { botium-core-Convo "sender": "me", botium-core-Convo "channel": null, botium-core-Convo "not": false, botium-core-Convo "optional": false, botium-core-Convo "messageText": "Oi", botium-core-Convo "media": null, botium-core-Convo "buttons": null, botium-core-Convo "cards": null, botium-core-Convo "forms": null, botium-core-Convo "attachments": null, botium-core-Convo "asserters": [], botium-core-Convo "userInputs": [], botium-core-Convo "logicHooks": [] botium-core-Convo } +0ms botium-connector-webdriverio UserSays called "Oi" +4ms botium-connector-webdriverio input element //[@resource-id="com.whatsapp:id/entry"] is visible, simulating input: "Oi" +99ms botium-connector-webdriverio input element //[@resource-id="com.whatsapp:id/entry"] is visible, simulating input: "Oi" (with Send button //[@resource-id="com.whatsapp:id/send"]) +0ms botium-connector-webdriverio input button //*[@resource-id="com.whatsapp:id/send"] is visible, simulating click +2s botium-connector-webdriverio Saved debugging screenshot to /home/btlucas/github/Testes/botium/botiumwork/WebdriverIO Whatsapp Sample 20210413 124746 V46YU/usersays1.png +837ms botium-core-Convo acesso wait for bot +2s botium-connector-webdriverio Found new bot response element, id a2af477f-8c8a-45e4-925c-cb7bb3f3ba99, hashKey 0 +2s botium-connector-webdriverio getBotMessageDefault receiving text for element a2af477f-8c8a-45e4-925c-cb7bb3f3ba99 +2ms botium-connector-webdriverio BotSays called { botium-connector-webdriverio sender: 'bot', botium-connector-webdriverio sourceData: { botium-connector-webdriverio elementId: 'a2af477f-8c8a-45e4-925c-cb7bb3f3ba99', botium-connector-webdriverio html: "<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>\r\n" + botium-connector-webdriverio '\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.RelativeLayout>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </androidx.appcompat.widget.LinearLayoutCompat>\r\n' + botium-connector-webdriverio ' </android.view.ViewGroup>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.view.ViewGroup>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.view.ViewGroup>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.view.ViewGroup>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.view.ViewGroup>\r\n' + botium-connector-webdriverio ' </android.widget.ListView>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.RelativeLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.RelativeLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio '' botium-connector-webdriverio }, botium-connector-webdriverio messageText: 'Olá, bem-vindo ao bot de testes de QA do altu. O que deseja testar hoje?' botium-connector-webdriverio } +138ms botium-connector-webdriverio Saved debugging screenshot to /home/btlucas/github/Testes/botium/botiumwork/WebdriverIO Whatsapp Sample 20210413 124746 V46YU/onbotsays1.png +490ms botium-core-Convo acesso: bot says (cleaned by binary and base64 data and sourceData) { botium-core-Convo "sender": "bot", botium-core-Convo "messageText": "Olá, bem-vindo ao bot de testes de QA do altu. O que deseja testar hoje?", botium-core-Convo "channel": "default" botium-core-Convo } +3s botium-core-ScriptingMemory fill start: {} +0ms botium-core-ScriptingProvider assertBotResponse acesso/Line 6 (Line 3: #me - Oi) BOT: Olá, bem-vindo ao bot de testes de QA do altu. O que deseja testar hoje? = Olá, bem-vindo ao bot de testes de QA do altu. O que deseja testar hoje? ... +22s botium-core-Convo acesso/Line 9: user says (cleaned by binary and base64 data and sourceData) { botium-core-Convo "sender": "me", botium-core-Convo "channel": null, botium-core-Convo "not": false, botium-core-Convo "optional": false, botium-core-Convo "messageText": "acesso", botium-core-Convo "media": null, botium-core-Convo "buttons": null, botium-core-Convo "cards": null, botium-core-Convo "forms": null, botium-core-Convo "attachments": null, botium-core-Convo "asserters": [], botium-core-Convo "userInputs": [], botium-core-Convo "logicHooks": [] botium-core-Convo } +1ms botium-connector-webdriverio UserSays called "acesso" +3ms botium-connector-webdriverio input element //[@resource-id="com.whatsapp:id/entry"] is visible, simulating input: "acesso" +67ms botium-connector-webdriverio input element //[@resource-id="com.whatsapp:id/entry"] is visible, simulating input: "acesso" (with Send button //[@resource-id="com.whatsapp:id/send"]) +0ms botium-connector-webdriverio input button //[@resource-id="com.whatsapp:id/send"] is visible, simulating click +2s botium-connector-webdriverio Saved debugging screenshot to /home/btlucas/github/Testes/botium/botiumwork/WebdriverIO Whatsapp Sample 20210413 124746 V46YU/usersays2.png +775ms botium-core-Convo acesso wait for bot +3s botium-connector-webdriverio Found new bot response element, id e74d09e2-cde8-4836-a63c-967b63417785, hashKey 1 +3s botium-connector-webdriverio getBotMessageDefault receiving text for element e74d09e2-cde8-4836-a63c-967b63417785 +1ms botium-connector-webdriverio BotSays called { botium-connector-webdriverio sender: 'bot', botium-connector-webdriverio sourceData: { botium-connector-webdriverio elementId: 'e74d09e2-cde8-4836-a63c-967b63417785', botium-connector-webdriverio html: "<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>\r\n" + botium-connector-webdriverio '\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.RelativeLayout>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </androidx.appcompat.widget.LinearLayoutCompat>\r\n' + botium-connector-webdriverio ' </android.view.ViewGroup>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.view.ViewGroup>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.view.ViewGroup>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.view.ViewGroup>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.view.ViewGroup>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.view.ViewGroup>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.view.ViewGroup>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.view.ViewGroup>\r\n' + botium-connector-webdriverio ' </android.widget.ListView>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.RelativeLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.RelativeLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio '' botium-connector-webdriverio }, botium-connector-webdriverio messageText: 'Seu input foi: acesso' botium-connector-webdriverio } +93ms botium-connector-webdriverio Saved debugging screenshot to /home/btlucas/github/Testes/botium/botiumwork/WebdriverIO Whatsapp Sample 20210413 124746 V46YU/onbotsays2.png +587ms botium-core-Convo acesso: bot says (cleaned by binary and base64 data and sourceData) { botium-core-Convo "sender": "bot", botium-core-Convo "messageText": "Seu input foi: acesso", botium-core-Convo "channel": "default" botium-core-Convo } +3s botium-core-ScriptingMemory fill start: {} +6s botium-core-ScriptingProvider assertBotResponse acesso/Line 12 (Line 9: #me - acesso) BOT: Seu input foi: acesso = Caso você esteja lendo isto, o bot está respondendo corretamente. ... +6s botium-cli-run acesso failed: TranscriptError: acesso/Line 12: Bot response (on Line 9: #me - acesso) "Seu input foi: acesso" expected to match "Caso você esteja lendo isto, o bot está respondendo corretamente." botium-cli-run at Convo.Run (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/Convo.js:266:15) botium-cli-run at processTicksAndRejections (internal/process/task_queues.js:97:5) { botium-cli-run transcript: Transcript { botium-cli-run steps: [ botium-cli-run [TranscriptStep], botium-cli-run [TranscriptStep], botium-cli-run [TranscriptStep], botium-cli-run [TranscriptStep] botium-cli-run ], botium-cli-run attachments: [], botium-cli-run scriptingMemory: {}, botium-cli-run convoBegin: 2021-04-13T15:48:03.114Z, botium-cli-run convoEnd: 2021-04-13T15:48:14.723Z, botium-cli-run err: BotiumError: acesso/Line 12: Bot response (on Line 9: #me - acesso) "Seu input foi: acesso" expected to match "Caso você esteja lendo isto, o bot está respondendo corretamente." botium-cli-run at ScriptingProvider.assertBotResponse (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/ScriptingProvider.js:154:17) botium-cli-run at Convo.runConversation (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/Convo.js:447:40) botium-cli-run at processTicksAndRejections (internal/process/task_queues.js:97:5) botium-cli-run at async Convo.Run (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/Convo.js:245:7) { botium-cli-run context: [Object] botium-cli-run } botium-cli-run }, botium-cli-run cause: BotiumError: acesso/Line 12: Bot response (on Line 9: #me - acesso) "Seu input foi: acesso" expected to match "Caso você esteja lendo isto, o bot está respondendo corretamente." botium-cli-run at ScriptingProvider.assertBotResponse (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/ScriptingProvider.js:154:17) botium-cli-run at Convo.runConversation (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/Convo.js:447:40) botium-cli-run at processTicksAndRejections (internal/process/task_queues.js:97:5) botium-cli-run at async Convo.Run (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/Convo.js:245:7) { botium-cli-run context: { botium-cli-run type: 'asserter', botium-cli-run source: 'TextMatchAsserter', botium-cli-run context: [Object], botium-cli-run cause: [Object], botium-cli-run message: 'acesso/Line 12: Bot response (on Line 9: #me - acesso) "Seu input foi: acesso" expected to match "Caso você esteja lendo isto, o bot está respondendo corretamente."', botium-cli-run input: [ConvoStep], botium-cli-run transcript: [Array] botium-cli-run } botium-cli-run } botium-cli-run } +12s 1) acesso botium-connector-webdriverio Stop called +6ms botium-connector-webdriverio Clean called +2s

0 passing (31s) 1 failing

1) Botium Test-Suite acesso: Error: acesso/Line 12: Bot response (on Line 9: #me - acesso) "Seu input foi: acesso" expected to match "Caso você esteja lendo isto, o bot está respondendo corretamente." ######################################## ASSERTION FAILED in TextMatchAsserter - Expected: ["Caso você esteja lendo isto, o bot está respondendo corretamente."] - Actual: "Seu input foi: acesso" INPUT: acesso ------------ TRANSCRIPT ----------------------------

me: Oi

bot: Olá, bem-vindo ao bot de testes de QA do altu. O que deseja testar hoje?

me: acesso

bot: Seu input foi: acesso

  at wrapBotiumError (/usr/local/lib/node_modules/botium-cli/src/run/index.js:76:12)
  at finish (/usr/local/lib/node_modules/botium-cli/src/run/index.js:205:24)
  at /usr/local/lib/node_modules/botium-cli/src/run/index.js:218:11
  at processTicksAndRejections (internal/process/task_queues.js:97:5)
codeforequity-at commented 3 years ago

Thanks for your log. I am pretty sure that this is a bug in our Selenium selectors. I will get back to you on this.

codeforequity-at commented 3 years ago

Can I use the Whatsapp Bot from your tests for working on this ? Or is it not available for public ?

btlucas commented 3 years ago

Sorry, It's not available for the public :/

codeforequity-at commented 3 years ago

Did some work on this to reduce flakiness. You can try now with the latest commit from the connector repository: https://github.com/codeforequity-at/botium-connector-webdriverio

btlucas commented 3 years ago

Hi Florian, sorry for the delay. I've tried using the new version but I'm still getting the same error.

Here is the log:

btlucas in botium-connector-webdriverio/samples/whatsapp on  master [$✘!] took 27s ❯ botium-cli run --verbose botium-cli Using Botium configuration file ./botium.json +0ms botium-cli-run command options: { botium-cli-run _: [ 'run' ], botium-cli-run verbose: true, botium-cli-run v: true, botium-cli-run convos: [ '.' ], botium-cli-run C: [ '.' ], botium-cli-run config: './botium.json', botium-cli-run c: './botium.json', botium-cli-run output: 'spec', botium-cli-run testsuitename: 'Botium Test-Suite', botium-cli-run n: 'Botium Test-Suite', botium-cli-run expandutterances: false, botium-cli-run expandscriptingmemory: false, botium-cli-run timeout: 60, botium-cli-run '$0': '/usr/local/bin/botium-cli' botium-cli-run } +0ms botium-cli-run Mocha Reporter "spec", options: undefined +0ms botium-core-BotDriver Loaded Botium configuration files /home/btlucas/github/Testes/botium-connector-webdriverio/samples/whatsapp/botium.json +0ms botium-core-ScriptingProvider ReadConvosFromDirectory(.) found filenames: botium.json,package.json,spec/convo/hi.convo.txt +0ms botium-core-ScriptingProvider ReadConvosFromDirectory(.) found convos: botium-core-ScriptingProvider 1 hi ({ convoDir: '.', filename: 'spec/convo/hi.convo.txt' }): Line 3: #me - Oi | Line 6: #bot - Olá, bem-vindo ao bot de testes de QA do altu. O que deseja testar hoje? | Line 9: #me - acesso | Line 12: #bot - Caso você esteja lendo isto, o bot está respondendo corretamente. | Line 15: #bot - Seu input foi: acesso | Line 18: #bot - Continuar? | Line 21: #me - Sim | Line 24: #bot - Encerrando... +4ms botium-core-ScriptingProvider ReadConvosFromDirectory(.) found utterances: botium-core-ScriptingProvider none +0ms botium-core-ScriptingProvider ReadConvosFromDirectory(.) found partial convos: botium-core-ScriptingProvider none +0ms botium-core-ScriptingProvider ReadConvosFromDirectory(.) scripting memories: botium-core-ScriptingProvider none +0ms botium-cli-run ready reading convos (1), expanding convos ... +251ms botium-core-ScriptingProvider ExpandConvos - Using utterances expansion mode: all +0ms botium-cli-run ready expanding convos and utterances, number of test cases: (1). +14ms botium-cli-run adding test case hi (from: { convoDir: '.', filename: 'spec/convo/hi.convo.txt' }) +2ms

Botium Test-Suite botium-core-BotDriver Build - Botium Core Version: 1.11.1 +273ms botium-core-BotDriver Build - Capabilites: { botium-core-BotDriver PROJECTNAME: 'WebdriverIO Whatsapp Sample', botium-core-BotDriver TESTSESSIONNAME: 'Botium Test Session', botium-core-BotDriver TESTCASENAME: 'Botium Test Case', botium-core-BotDriver TEMPDIR: 'botiumwork', botium-core-BotDriver CLEANUPTEMPDIR: false, botium-core-BotDriver WAITFORBOTTIMEOUT: 10000, botium-core-BotDriver SIMULATE_WRITING_SPEED: false, botium-core-BotDriver SIMPLEREST_PING_RETRIES: 6, botium-core-BotDriver SIMPLEREST_PING_TIMEOUT: 10000, botium-core-BotDriver SIMPLEREST_PING_VERB: 'GET', botium-core-BotDriver SIMPLEREST_PING_UPDATE_CONTEXT: true, botium-core-BotDriver SIMPLEREST_STOP_RETRIES: 6, botium-core-BotDriver SIMPLEREST_STOP_TIMEOUT: 10000, botium-core-BotDriver SIMPLEREST_STOP_VERB: 'GET', botium-core-BotDriver SIMPLEREST_START_RETRIES: 6, botium-core-BotDriver SIMPLEREST_START_TIMEOUT: 10000, botium-core-BotDriver SIMPLEREST_START_VERB: 'GET', botium-core-BotDriver SIMPLEREST_POLL_VERB: 'GET', botium-core-BotDriver SIMPLEREST_POLL_INTERVAL: 1000, botium-core-BotDriver SIMPLEREST_POLL_UPDATE_CONTEXT: true, botium-core-BotDriver SIMPLEREST_METHOD: 'GET', botium-core-BotDriver SIMPLEREST_IGNORE_EMPTY: true, botium-core-BotDriver SIMPLEREST_TIMEOUT: 10000, botium-core-BotDriver SIMPLEREST_EXTRA_OPTIONS: {}, botium-core-BotDriver SIMPLEREST_STRICT_SSL: true, botium-core-BotDriver SIMPLEREST_INBOUND_UPDATE_CONTEXT: true, botium-core-BotDriver SIMPLEREST_CONTEXT_MERGE_OR_REPLACE: 'MERGE', botium-core-BotDriver SCRIPTING_TXT_EOL: '\n', botium-core-BotDriver SCRIPTING_XLSX_EOL_WRITE: '\r\n', botium-core-BotDriver SCRIPTING_XLSX_HASHEADERS: true, botium-core-BotDriver SCRIPTING_CSV_SKIP_HEADER: true, botium-core-BotDriver SCRIPTING_CSV_QUOTE: '"', botium-core-BotDriver SCRIPTING_CSV_ESCAPE: '"', botium-core-BotDriver SCRIPTING_NORMALIZE_TEXT: true, botium-core-BotDriver SCRIPTING_ENABLE_MEMORY: false, botium-core-BotDriver SCRIPTING_ENABLE_MULTIPLE_ASSERT_ERRORS: false, botium-core-BotDriver SCRIPTING_MATCHING_MODE: 'wildcardIgnoreCase', botium-core-BotDriver SCRIPTING_UTTEXPANSION_MODE: 'all', botium-core-BotDriver SCRIPTING_UTTEXPANSION_RANDOM_COUNT: 1, botium-core-BotDriver SCRIPTING_UTTEXPANSION_NAMING_MODE: 'justLineTag', botium-core-BotDriver SCRIPTING_UTTEXPANSION_NAMING_UTTERANCE_MAX: '16', botium-core-BotDriver SCRIPTING_MEMORYEXPANSION_KEEP_ORIG: false, botium-core-BotDriver ASSERTERS: [], botium-core-BotDriver LOGIC_HOOKS: [], botium-core-BotDriver USER_INPUTS: [], botium-core-BotDriver SECURITY_ALLOW_UNSAFE: true, botium-core-BotDriver CONTAINERMODE: 'webdriverio', botium-core-BotDriver WEBDRIVERIO_OPTIONS: { botium-core-BotDriver capabilities: { platformName: 'Android' }, botium-core-BotDriver port: 4723, botium-core-BotDriver path: '/wd/hub' botium-core-BotDriver }, botium-core-BotDriver WEBDRIVERIO_PROFILE: 'whatsapp', botium-core-BotDriver WEBDRIVERIO_CONTACT: 'Contact', botium-core-BotDriver WEBDRIVERIO_LANGUAGE: 'en', botium-core-BotDriver WEBDRIVERIO_OUTPUT_ELEMENT_DEBUG_HTML: false, botium-core-BotDriver WEBDRIVERIO_SELENIUM_DEBUG: false, botium-core-BotDriver CONFIG: './botium.json' botium-core-BotDriver } +0ms botium-core-BotDriver Build - Sources : { LOCALPATH: '.', GITPATH: 'git', GITBRANCH: 'master', GITDIR: '.' } +1ms botium-core-BotDriver Build - Envs : { IS_BOTIUM_CONTAINER: true } +0ms botium-connector-PluginConnectorContainer-helper Botium plugin botium-connector-webdriverio loaded. Plugin version is 0.3.9 +0ms botium-connector-webdriverio Validate called +0ms botium-connector-webdriverio Build called +1ms botium-connector-webdriverio Start called +5ms botium-connector-webdriverio Webdriver Options: {"capabilities":{"platformName":"Android","appPackage":"com.whatsapp","appActivity":"com.whatsapp.HomeActivity","noReset":true,"automationName":"UiAutomator2"},"port":4723,"path":"/wd/hub","logLevel":"silent"} +0ms botium-connector-webdriverio-whatsapp Finding contact Contact: //[@resource-id="com.whatsapp:id/conversations_row_contact_name" and @text="Contact"] +0ms botium-connector-webdriverio-whatsapp Cleaning up chat history for Contact ... +1s botium-connector-webdriverio-whatsapp Cleaning up chat history for Contact ready +6s botium-connector-webdriverio Saved debugging screenshot to /home/btlucas/github/Testes/botium-connector-webdriverio/samples/whatsapp/botiumwork/WebdriverIO Whatsapp Sample 20210423 141125 3hv3Y/onstart1.png +17s botium-cli-run running testcase hi +18s botium-core-Convo hi/Line 3: user says (cleaned by binary and base64 data and sourceData) { botium-core-Convo "sender": "me", botium-core-Convo "channel": null, botium-core-Convo "not": false, botium-core-Convo "optional": false, botium-core-Convo "messageText": "Oi", botium-core-Convo "media": null, botium-core-Convo "buttons": null, botium-core-Convo "cards": null, botium-core-Convo "forms": null, botium-core-Convo "attachments": null, botium-core-Convo "asserters": [], botium-core-Convo "userInputs": [], botium-core-Convo "logicHooks": [] botium-core-Convo } +0ms botium-connector-webdriverio UserSays called "Oi" +5ms botium-connector-webdriverio input element //[@resource-id="com.whatsapp:id/entry"] is visible, simulating input: "Oi" +370ms botium-connector-webdriverio input element //[@resource-id="com.whatsapp:id/entry"] is visible, simulating input: "Oi" (with Send button //[@resource-id="com.whatsapp:id/send"]) +0ms botium-connector-webdriverio input button //*[@resource-id="com.whatsapp:id/send"] is visible, simulating click +2s botium-connector-webdriverio Saved debugging screenshot to /home/btlucas/github/Testes/botium-connector-webdriverio/samples/whatsapp/botiumwork/WebdriverIO Whatsapp Sample 20210423 141125 3hv3Y/usersays1.png +976ms botium-core-Convo hi wait for bot +3s botium-connector-webdriverio Found new bot response element, id 15302007-ed40-42ba-a377-13cf875da9be, hashKey 0 +2s botium-connector-webdriverio getBotMessageDefault receiving text for element 15302007-ed40-42ba-a377-13cf875da9be +2ms botium-connector-webdriverio BotSays called { botium-connector-webdriverio sender: 'bot', botium-connector-webdriverio sourceData: { botium-connector-webdriverio elementId: '15302007-ed40-42ba-a377-13cf875da9be', botium-connector-webdriverio html: "<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>\r\n" + botium-connector-webdriverio '\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.RelativeLayout>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </androidx.appcompat.widget.LinearLayoutCompat>\r\n' + botium-connector-webdriverio ' </android.view.ViewGroup>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.view.ViewGroup>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.view.ViewGroup>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.view.ViewGroup>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.view.ViewGroup>\r\n' + botium-connector-webdriverio ' </android.widget.ListView>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.RelativeLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.RelativeLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio '' botium-connector-webdriverio }, botium-connector-webdriverio messageText: 'Olá, bem-vindo ao bot de testes de QA do altu. O que deseja testar hoje?' botium-connector-webdriverio } +85ms botium-connector-webdriverio Saved debugging screenshot to /home/btlucas/github/Testes/botium-connector-webdriverio/samples/whatsapp/botiumwork/WebdriverIO Whatsapp Sample 20210423 141125 3hv3Y/onbotsays1.png +527ms botium-core-Convo hi: bot says (cleaned by binary and base64 data and sourceData) { botium-core-Convo "sender": "bot", botium-core-Convo "messageText": "Olá, bem-vindo ao bot de testes de QA do altu. O que deseja testar hoje?", botium-core-Convo "channel": "default" botium-core-Convo } +3s botium-core-ScriptingMemory fill start: {} +0ms botium-core-ScriptingProvider assertBotResponse hi/Line 6 (Line 3: #me - Oi) BOT: Olá, bem-vindo ao bot de testes de QA do altu. O que deseja testar hoje? = Olá, bem-vindo ao bot de testes de QA do altu. O que deseja testar hoje? ... +23s botium-core-Convo hi/Line 9: user says (cleaned by binary and base64 data and sourceData) { botium-core-Convo "sender": "me", botium-core-Convo "channel": null, botium-core-Convo "not": false, botium-core-Convo "optional": false, botium-core-Convo "messageText": "acesso", botium-core-Convo "media": null, botium-core-Convo "buttons": null, botium-core-Convo "cards": null, botium-core-Convo "forms": null, botium-core-Convo "attachments": null, botium-core-Convo "asserters": [], botium-core-Convo "userInputs": [], botium-core-Convo "logicHooks": [] botium-core-Convo } +2ms botium-connector-webdriverio UserSays called "acesso" +3ms botium-connector-webdriverio input element //[@resource-id="com.whatsapp:id/entry"] is visible, simulating input: "acesso" +68ms botium-connector-webdriverio input element //[@resource-id="com.whatsapp:id/entry"] is visible, simulating input: "acesso" (with Send button //[@resource-id="com.whatsapp:id/send"]) +1ms botium-connector-webdriverio input button //[@resource-id="com.whatsapp:id/send"] is visible, simulating click +2s botium-connector-webdriverio Saved debugging screenshot to /home/btlucas/github/Testes/botium-connector-webdriverio/samples/whatsapp/botiumwork/WebdriverIO Whatsapp Sample 20210423 141125 3hv3Y/usersays2.png +970ms botium-core-Convo hi wait for bot +3s botium-connector-webdriverio Found new bot response element, id 73a13d1b-c8e3-43eb-8688-0c1a56e1bbec, hashKey 1 +2s botium-connector-webdriverio getBotMessageDefault receiving text for element 73a13d1b-c8e3-43eb-8688-0c1a56e1bbec +2ms botium-connector-webdriverio BotSays called { botium-connector-webdriverio sender: 'bot', botium-connector-webdriverio sourceData: { botium-connector-webdriverio elementId: '73a13d1b-c8e3-43eb-8688-0c1a56e1bbec', botium-connector-webdriverio html: "<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>\r\n" + botium-connector-webdriverio '\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.RelativeLayout>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </androidx.appcompat.widget.LinearLayoutCompat>\r\n' + botium-connector-webdriverio ' </android.view.ViewGroup>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.view.ViewGroup>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.view.ViewGroup>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.view.ViewGroup>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.view.ViewGroup>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.view.ViewGroup>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.view.ViewGroup>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.view.ViewGroup>\r\n' + botium-connector-webdriverio ' </android.widget.ListView>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' \r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.RelativeLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.RelativeLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio ' </android.widget.LinearLayout>\r\n' + botium-connector-webdriverio ' </android.widget.FrameLayout>\r\n' + botium-connector-webdriverio '' botium-connector-webdriverio }, botium-connector-webdriverio messageText: 'Seu input foi: acesso' botium-connector-webdriverio } +85ms botium-connector-webdriverio Saved debugging screenshot to /home/btlucas/github/Testes/botium-connector-webdriverio/samples/whatsapp/botiumwork/WebdriverIO Whatsapp Sample 20210423 141125 3hv3Y/onbotsays2.png +590ms botium-core-Convo hi: bot says (cleaned by binary and base64 data and sourceData) { botium-core-Convo "sender": "bot", botium-core-Convo "messageText": "Seu input foi: acesso", botium-core-Convo "channel": "default" botium-core-Convo } +3s botium-core-ScriptingMemory fill start: {} +6s botium-core-ScriptingProvider assertBotResponse hi/Line 12 (Line 9: #me - acesso) BOT: Seu input foi: acesso = Caso você esteja lendo isto, o bot está respondendo corretamente. ... +6s botium-cli-run hi failed: TranscriptError: hi/Line 12: Bot response (on Line 9: #me - acesso) "Seu input foi: acesso" expected to match "Caso você esteja lendo isto, o bot está respondendo corretamente." botium-cli-run at Convo.Run (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/Convo.js:266:15) botium-cli-run at processTicksAndRejections (internal/process/task_queues.js:97:5) { botium-cli-run transcript: Transcript { botium-cli-run steps: [ botium-cli-run [TranscriptStep], botium-cli-run [TranscriptStep], botium-cli-run [TranscriptStep], botium-cli-run [TranscriptStep] botium-cli-run ], botium-cli-run attachments: [], botium-cli-run scriptingMemory: {}, botium-cli-run convoBegin: 2021-04-23T17:11:43.207Z, botium-cli-run convoEnd: 2021-04-23T17:11:54.405Z, botium-cli-run err: BotiumError: hi/Line 12: Bot response (on Line 9: #me - acesso) "Seu input foi: acesso" expected to match "Caso você esteja lendo isto, o bot está respondendo corretamente." botium-cli-run at ScriptingProvider.assertBotResponse (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/ScriptingProvider.js:154:17) botium-cli-run at Convo.runConversation (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/Convo.js:447:40) botium-cli-run at processTicksAndRejections (internal/process/task_queues.js:97:5) botium-cli-run at async Convo.Run (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/Convo.js:245:7) { botium-cli-run context: [Object] botium-cli-run } botium-cli-run }, botium-cli-run cause: BotiumError: hi/Line 12: Bot response (on Line 9: #me - acesso) "Seu input foi: acesso" expected to match "Caso você esteja lendo isto, o bot está respondendo corretamente." botium-cli-run at ScriptingProvider.assertBotResponse (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/ScriptingProvider.js:154:17) botium-cli-run at Convo.runConversation (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/Convo.js:447:40) botium-cli-run at processTicksAndRejections (internal/process/task_queues.js:97:5) botium-cli-run at async Convo.Run (/usr/local/lib/node_modules/botium-cli/node_modules/botium-core/src/scripting/Convo.js:245:7) { botium-cli-run context: { botium-cli-run type: 'asserter', botium-cli-run source: 'TextMatchAsserter', botium-cli-run context: [Object], botium-cli-run cause: [Object], botium-cli-run message: 'hi/Line 12: Bot response (on Line 9: #me - acesso) "Seu input foi: acesso" expected to match "Caso você esteja lendo isto, o bot está respondendo corretamente."', botium-cli-run input: [ConvoStep], botium-cli-run transcript: [Array] botium-cli-run } botium-cli-run } botium-cli-run } +11s 1) hi botium-connector-webdriverio Stop called +5ms botium-connector-webdriverio Clean called +2s

0 passing (31s) 1 failing

1) Botium Test-Suite hi: Error: hi/Line 12: Bot response (on Line 9: #me - acesso) "Seu input foi: acesso" expected to match "Caso você esteja lendo isto, o bot está respondendo corretamente." ######################################## ASSERTION FAILED in TextMatchAsserter - Expected: ["Caso você esteja lendo isto, o bot está respondendo corretamente."] - Actual: "Seu input foi: acesso" INPUT: acesso ------------ TRANSCRIPT ----------------------------

me: Oi

bot: Olá, bem-vindo ao bot de testes de QA do altu. O que deseja testar hoje?

me: acesso

bot: Seu input foi: acesso

  at wrapBotiumError (/usr/local/lib/node_modules/botium-cli/src/run/index.js:76:12)
  at finish (/usr/local/lib/node_modules/botium-cli/src/run/index.js:205:24)
  at /usr/local/lib/node_modules/botium-cli/src/run/index.js:218:11
  at processTicksAndRejections (internal/process/task_queues.js:97:5)
codeforequity-at commented 3 years ago

Looking through the log output, I am pretty sure that there are not the latest changes to the Github repository included. How did you launch it ?

btlucas commented 3 years ago

I've used git pull on the connector repository, changed the convo and config files on the whatsapp example folder to match my case and used botium-cli run

codeforequity-at commented 3 years ago

There are several options why Botium-CLI doesn't make us of the latest Github checkout - are you sure that it is using the code from the repository, and not another version in the global npm cache or in the local node_modules folder ?

btlucas commented 3 years ago

From what I can see, my cli is trying to run the global package even if I uninstall it. How can I force the botium-cli to run the code from the repository?

codeforequity-at commented 3 years ago

This is an NPM module loading issue. Botium CLI is most likely located in the global NPM cache, therefore it is loading all modules from the global NPM cache as well. Maybe installing Botium CLI to the samples/whatsapp folder can help

btlucas commented 3 years ago

I think I got everything running correctly from the folder but the bug persists. My step-by-step: Created a new folder and installed botium-cli with npm install botium-cli and botium-connector-webdriverio directly from git with npm install --save https://github.com/codeforequity-at/botium-connector-webdriverio.git Used the same convo and config from before and run everything with npx botium-cli run --verbose

The log was:

npx botium-cli run --verbose botium-cli Using Botium configuration file ./botium.json +0ms botium-cli-run command options: { botium-cli-run _: [ 'run' ], botium-cli-run verbose: true, botium-cli-run v: true, botium-cli-run convos: [ '.' ], botium-cli-run C: [ '.' ], botium-cli-run config: './botium.json', botium-cli-run c: './botium.json', botium-cli-run output: 'spec', botium-cli-run testsuitename: 'Botium Test-Suite', botium-cli-run n: 'Botium Test-Suite', botium-cli-run expandutterances: false, botium-cli-run expandscriptingmemory: false, botium-cli-run timeout: 60, botium-cli-run '$0': 'node_modules/.bin/botium-cli' botium-cli-run } +0ms botium-cli-run Mocha Reporter "spec", options: undefined +0ms botium-core-BotDriver Loaded Botium configuration files /home/btlucas/github/Testes/demo-botium/botium.json +0ms botium-core-ScriptingProvider ReadConvosFromDirectory(.) found filenames: acesso.convo.txt,botium.json,package.json +0ms botium-core-ScriptingProvider ReadConvosFromDirectory(.) found convos: botium-core-ScriptingProvider 1 acesso ({ convoDir: '.', filename: 'acesso.convo.txt' }): Line 3: #me - Oi | Line 6: #bot - Olá, bem-vindo ao bot de testes de QA do altu. O que deseja testar hoje? | Line 9: #me - acesso | Line 12: #bot - Caso você esteja lendo isto, o bot está respondendo corretamente. | Line 15: #bot - Seu input foi: acesso | Line 18: #bot - Continuar? | Line 21: #me - Sim | Line 24: #bot - Encerrando... +7ms botium-core-ScriptingProvider ReadConvosFromDirectory(.) found utterances: botium-core-ScriptingProvider none +0ms botium-core-ScriptingProvider ReadConvosFromDirectory(.) found partial convos: botium-core-ScriptingProvider none +0ms botium-core-ScriptingProvider ReadConvosFromDirectory(.) scripting memories: botium-core-ScriptingProvider none +0ms botium-cli-run ready reading convos (1), expanding convos ... +571ms botium-core-ScriptingProvider ExpandConvos - Using utterances expansion mode: all +0ms botium-cli-run ready expanding convos and utterances, number of test cases: (1). +29ms botium-cli-run adding test case acesso (from: { convoDir: '.', filename: 'acesso.convo.txt' }) +8ms

Botium Test-Suite botium-core-BotDriver Build - Botium Core Version: 1.11.2 +622ms botium-core-BotDriver Build - Capabilites: { botium-core-BotDriver PROJECTNAME: 'WebdriverIO Whatsapp Sample', botium-core-BotDriver TESTSESSIONNAME: 'Botium Test Session', botium-core-BotDriver TESTCASENAME: 'Botium Test Case', botium-core-BotDriver TEMPDIR: 'botiumwork', botium-core-BotDriver CLEANUPTEMPDIR: false, botium-core-BotDriver WAITFORBOTTIMEOUT: 10000, botium-core-BotDriver SIMULATE_WRITING_SPEED: false, botium-core-BotDriver SIMPLEREST_PING_RETRIES: 6, botium-core-BotDriver SIMPLEREST_PING_TIMEOUT: 10000, botium-core-BotDriver SIMPLEREST_PING_VERB: 'GET', botium-core-BotDriver SIMPLEREST_PING_UPDATE_CONTEXT: true, botium-core-BotDriver SIMPLEREST_STOP_RETRIES: 6, botium-core-BotDriver SIMPLEREST_STOP_TIMEOUT: 10000, botium-core-BotDriver SIMPLEREST_STOP_VERB: 'GET', botium-core-BotDriver SIMPLEREST_START_RETRIES: 6, botium-core-BotDriver SIMPLEREST_START_TIMEOUT: 10000, botium-core-BotDriver SIMPLEREST_START_VERB: 'GET', botium-core-BotDriver SIMPLEREST_POLL_VERB: 'GET', botium-core-BotDriver SIMPLEREST_POLL_INTERVAL: 1000, botium-core-BotDriver SIMPLEREST_POLL_UPDATE_CONTEXT: true, botium-core-BotDriver SIMPLEREST_METHOD: 'GET', botium-core-BotDriver SIMPLEREST_IGNORE_EMPTY: true, botium-core-BotDriver SIMPLEREST_TIMEOUT: 10000, botium-core-BotDriver SIMPLEREST_EXTRA_OPTIONS: {}, botium-core-BotDriver SIMPLEREST_STRICT_SSL: true, botium-core-BotDriver SIMPLEREST_INBOUND_UPDATE_CONTEXT: true, botium-core-BotDriver SIMPLEREST_CONTEXT_MERGE_OR_REPLACE: 'MERGE', botium-core-BotDriver SCRIPTING_TXT_EOL: '\n', botium-core-BotDriver SCRIPTING_XLSX_EOL_WRITE: '\r\n', botium-core-BotDriver SCRIPTING_XLSX_HASHEADERS: true, botium-core-BotDriver SCRIPTING_CSV_SKIP_HEADER: true, botium-core-BotDriver SCRIPTING_CSV_QUOTE: '"', botium-core-BotDriver SCRIPTING_CSV_ESCAPE: '"', botium-core-BotDriver SCRIPTING_NORMALIZE_TEXT: true, botium-core-BotDriver SCRIPTING_ENABLE_MEMORY: false, botium-core-BotDriver SCRIPTING_ENABLE_MULTIPLE_ASSERT_ERRORS: false, botium-core-BotDriver SCRIPTING_MATCHING_MODE: 'wildcardIgnoreCase', botium-core-BotDriver SCRIPTING_UTTEXPANSION_MODE: 'all', botium-core-BotDriver SCRIPTING_UTTEXPANSION_RANDOM_COUNT: 1, botium-core-BotDriver SCRIPTING_UTTEXPANSION_NAMING_MODE: 'justLineTag', botium-core-BotDriver SCRIPTING_UTTEXPANSION_NAMING_UTTERANCE_MAX: '16', botium-core-BotDriver SCRIPTING_MEMORYEXPANSION_KEEP_ORIG: false, botium-core-BotDriver ASSERTERS: [], botium-core-BotDriver LOGIC_HOOKS: [], botium-core-BotDriver USER_INPUTS: [], botium-core-BotDriver SECURITY_ALLOW_UNSAFE: true, botium-core-BotDriver CONTAINERMODE: 'webdriverio', botium-core-BotDriver WEBDRIVERIO_OPTIONS: { botium-core-BotDriver capabilities: { platformName: 'Android' }, botium-core-BotDriver port: 4723, botium-core-BotDriver path: '/wd/hub' botium-core-BotDriver }, botium-core-BotDriver WEBDRIVERIO_PROFILE: 'whatsapp', botium-core-BotDriver WEBDRIVERIO_CONTACT: 'Contact', botium-core-BotDriver WEBDRIVERIO_LANGUAGE: 'en', botium-core-BotDriver WEBDRIVERIO_OUTPUT_ELEMENT_DEBUG_HTML: false, botium-core-BotDriver WEBDRIVERIO_SELENIUM_DEBUG: false, botium-core-BotDriver CONFIG: './botium.json' botium-core-BotDriver } +1ms botium-core-BotDriver Build - Sources : { LOCALPATH: '.', GITPATH: 'git', GITBRANCH: 'master', GITDIR: '.' } +2ms botium-core-BotDriver Build - Envs : { IS_BOTIUM_CONTAINER: true } +0ms 1) acesso

0 passing (45s) 1 failing

1) Botium Test-Suite acesso: Error: acesso/Line 12: Bot response (on Line 9: #me - acesso) "Seu input foi: acesso" expected to match "Caso você esteja lendo isto, o bot está respondendo corretamente." ######################################## ASSERTION FAILED in TextMatchAsserter - Expected: ["Caso você esteja lendo isto, o bot está respondendo corretamente."] - Actual: "Seu input foi: acesso" INPUT: acesso ------------ TRANSCRIPT ----------------------------

me: Oi

bot: Olá, bem-vindo ao bot de testes de QA do altu. O que deseja testar hoje?

me: acesso

bot: Seu input foi: acesso

  at wrapBotiumError (node_modules/botium-cli/src/run/index.js:76:12)
  at finish (node_modules/botium-cli/src/run/index.js:205:24)
  at /home/btlucas/github/Testes/demo-botium/node_modules/botium-cli/src/run/index.js:218:11
  at processTicksAndRejections (internal/process/task_queues.js:97:5)
codeforequity-at commented 3 years ago

Yes, this approach should work. Can you enable the WEBDRIVERIO_SELENIUM_DEBUG capability in botium.json and post the output here.

btlucas commented 3 years ago

Botium Test-Suite 2021-04-26T21:01:53.400Z INFO webdriver: Initiate new session using the WebDriver protocol 2021-04-26T21:01:53.402Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session 2021-04-26T21:01:53.402Z INFO webdriver: DATA { capabilities: { alwaysMatch: { platformName: 'Android', appPackage: 'com.whatsapp', appActivity: 'com.whatsapp.HomeActivity', noReset: true, automationName: 'UiAutomator2' }, firstMatch: [ {} ] }, desiredCapabilities: { platformName: 'Android', appPackage: 'com.whatsapp', appActivity: 'com.whatsapp.HomeActivity', noReset: true, automationName: 'UiAutomator2' } } 2021-04-26T21:01:59.022Z INFO webdriver: COMMAND findElement("xpath", "//[@resource-id="com.whatsapp:id/menuitem_search"]") 2021-04-26T21:01:59.022Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element 2021-04-26T21:01:59.022Z INFO webdriver: DATA { using: 'xpath', value: '//[@resource-id="com.whatsapp:id/menuitem_search"]' } 2021-04-26T21:02:00.166Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': '17509e28-dcc7-4c48-a333-86da5e00af7e', ELEMENT: '17509e28-dcc7-4c48-a333-86da5e00af7e' } 2021-04-26T21:02:00.178Z INFO webdriver: COMMAND elementClick("17509e28-dcc7-4c48-a333-86da5e00af7e") 2021-04-26T21:02:00.178Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/17509e28-dcc7-4c48-a333-86da5e00af7e/click 2021-04-26T21:02:00.525Z INFO webdriver: COMMAND findElement("xpath", "//[@resource-id="com.whatsapp:id/search_input"]") 2021-04-26T21:02:00.526Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element 2021-04-26T21:02:00.527Z INFO webdriver: DATA { using: 'xpath', value: '//[@resource-id="com.whatsapp:id/search_input"]' } 2021-04-26T21:02:02.890Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': '32550d6f-6355-48bf-9e05-15c9f1544efd', ELEMENT: '32550d6f-6355-48bf-9e05-15c9f1544efd' } 2021-04-26T21:02:02.895Z INFO webdriver: COMMAND elementClear("32550d6f-6355-48bf-9e05-15c9f1544efd") 2021-04-26T21:02:02.896Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/32550d6f-6355-48bf-9e05-15c9f1544efd/clear 2021-04-26T21:02:02.927Z INFO webdriver: COMMAND elementSendKeys("32550d6f-6355-48bf-9e05-15c9f1544efd", "Contact") 2021-04-26T21:02:02.927Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/32550d6f-6355-48bf-9e05-15c9f1544efd/value 2021-04-26T21:02:02.927Z INFO webdriver: DATA { text: 'Contact' } 2021-04-26T21:02:04.482Z INFO webdriver: COMMAND findElement("xpath", "//[@resource-id="com.whatsapp:id/result_list"]//[@resource-id="com.whatsapp:id/conversations_row_contact_name" and @text="Contact"]") 2021-04-26T21:02:04.482Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element 2021-04-26T21:02:04.482Z INFO webdriver: DATA { using: 'xpath', value: '//[@resource-id="com.whatsapp:id/result_list"]//[@resource-id="com.whatsapp:id/conversations_row_contact_name" and @text="Contact"]' } 2021-04-26T21:02:06.306Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': 'f854815b-b626-4706-83ca-a0e0c06cb1bf', ELEMENT: 'f854815b-b626-4706-83ca-a0e0c06cb1bf' } 2021-04-26T21:02:06.312Z INFO webdriver: COMMAND elementClick("f854815b-b626-4706-83ca-a0e0c06cb1bf") 2021-04-26T21:02:06.313Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/f854815b-b626-4706-83ca-a0e0c06cb1bf/click 2021-04-26T21:02:06.332Z INFO webdriver: COMMAND findElement("xpath", "//[@content-desc="More options"]") 2021-04-26T21:02:06.333Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element 2021-04-26T21:02:06.333Z INFO webdriver: DATA { using: 'xpath', value: '//[@content-desc="More options"]' } 2021-04-26T21:02:07.953Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': '8a3131e0-c61d-454b-bb59-8c6ebed7d2eb', ELEMENT: '8a3131e0-c61d-454b-bb59-8c6ebed7d2eb' } 2021-04-26T21:02:07.965Z INFO webdriver: COMMAND elementClick("8a3131e0-c61d-454b-bb59-8c6ebed7d2eb") 2021-04-26T21:02:07.965Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/8a3131e0-c61d-454b-bb59-8c6ebed7d2eb/click 2021-04-26T21:02:08.250Z INFO webdriver: COMMAND findElement("xpath", "//[@resource-id="com.whatsapp:id/submenuarrow"]") 2021-04-26T21:02:08.250Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element 2021-04-26T21:02:08.250Z INFO webdriver: DATA { using: 'xpath', value: '//[@resource-id="com.whatsapp:id/submenuarrow"]' } 2021-04-26T21:02:08.434Z INFO webdriver: RESULT { error: 'no such element', message: 'An element could not be located on the page using the given search parameters.', stacktrace: 'NoSuchElementError: An element could not be located on the page using the given search parameters.\n' + ' at AndroidUiautomator2Driver.findElOrEls (/usr/lib/node_modules/appium/node_modules/appium-android-driver/lib/commands/find.js:75:11)\n' + ' at runMicrotasks ()\n' + ' at processTicksAndRejections (internal/process/task_queues.js:97:5)' } 2021-04-26T21:02:08.446Z INFO webdriver: COMMAND findElements("xpath", "//[@resource-id="com.whatsapp:id/submenuarrow"]") 2021-04-26T21:02:08.446Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/elements 2021-04-26T21:02:08.446Z INFO webdriver: DATA { using: 'xpath', value: '//[@resource-id="com.whatsapp:id/submenuarrow"]' } 2021-04-26T21:02:09.410Z INFO webdriver: RESULT [ { 'element-6066-11e4-a52e-4f735466cecf': '7bcdbf5a-c136-4aea-a15a-36ed693c9014', ELEMENT: '7bcdbf5a-c136-4aea-a15a-36ed693c9014' } ] 2021-04-26T21:02:09.416Z INFO webdriver: COMMAND findElement("xpath", "//[@resource-id="com.whatsapp:id/submenuarrow"]") 2021-04-26T21:02:09.418Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element 2021-04-26T21:02:09.418Z INFO webdriver: DATA { using: 'xpath', value: '//[@resource-id="com.whatsapp:id/submenuarrow"]' } 2021-04-26T21:02:09.521Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': '96dd6c4a-26aa-48f0-afac-2782242523b7', ELEMENT: '96dd6c4a-26aa-48f0-afac-2782242523b7' } 2021-04-26T21:02:09.536Z INFO webdriver: COMMAND elementClick("96dd6c4a-26aa-48f0-afac-2782242523b7") 2021-04-26T21:02:09.536Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/96dd6c4a-26aa-48f0-afac-2782242523b7/click 2021-04-26T21:02:09.569Z INFO webdriver: COMMAND findElement("xpath", "//[@resource-id="com.whatsapp:id/title" and @text="Clear chat"]") 2021-04-26T21:02:09.569Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element 2021-04-26T21:02:09.570Z INFO webdriver: DATA { using: 'xpath', value: '//[@resource-id="com.whatsapp:id/title" and @text="Clear chat"]' } 2021-04-26T21:02:10.810Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': '98e22690-b108-456f-ac00-a780ea535f1b', ELEMENT: '98e22690-b108-456f-ac00-a780ea535f1b' } 2021-04-26T21:02:10.816Z INFO webdriver: COMMAND elementClick("98e22690-b108-456f-ac00-a780ea535f1b") 2021-04-26T21:02:10.816Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/98e22690-b108-456f-ac00-a780ea535f1b/click 2021-04-26T21:02:12.088Z INFO webdriver: COMMAND findElement("xpath", "//[@resource-id="android:id/button1" and @text="CLEAR"]") 2021-04-26T21:02:12.089Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element 2021-04-26T21:02:12.089Z INFO webdriver: DATA { using: 'xpath', value: '//[@resource-id="android:id/button1" and @text="CLEAR"]' } 2021-04-26T21:02:12.159Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': 'a6185c88-1356-4adf-a781-b19ae87cd9ef', ELEMENT: 'a6185c88-1356-4adf-a781-b19ae87cd9ef' } 2021-04-26T21:02:12.165Z INFO webdriver: COMMAND elementClick("a6185c88-1356-4adf-a781-b19ae87cd9ef") 2021-04-26T21:02:12.166Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/a6185c88-1356-4adf-a781-b19ae87cd9ef/click 2021-04-26T21:02:12.186Z INFO webdriver: COMMAND findElement("xpath", "//[@resource-id="com.whatsapp:id/entry"]") 2021-04-26T21:02:12.186Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element 2021-04-26T21:02:12.186Z INFO webdriver: DATA { using: 'xpath', value: '//[@resource-id="com.whatsapp:id/entry"]' } 2021-04-26T21:02:13.570Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': '316c928d-50a5-4bd0-bc55-9ae38c3b53e5', ELEMENT: '316c928d-50a5-4bd0-bc55-9ae38c3b53e5' } 2021-04-26T21:02:13.576Z INFO webdriver: COMMAND isElementDisplayed("316c928d-50a5-4bd0-bc55-9ae38c3b53e5") 2021-04-26T21:02:13.577Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/316c928d-50a5-4bd0-bc55-9ae38c3b53e5/displayed 2021-04-26T21:02:13.591Z INFO webdriver: RESULT true 2021-04-26T21:02:13.596Z INFO webdriver: COMMAND findElements("xpath", "//[(@resource-id="com.whatsapp:id/conversation_text_row" or @resource-id="com.whatsapp:id/text_and_date") and not(descendant::[@resource-id="com.whatsapp:id/status"])]") 2021-04-26T21:02:13.596Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/elements 2021-04-26T21:02:13.596Z INFO webdriver: DATA { using: 'xpath', value: '//[(@resource-id="com.whatsapp:id/conversation_text_row" or @resource-id="com.whatsapp:id/text_and_date") and not(descendant::[@resource-id="com.whatsapp:id/status"])]' } 2021-04-26T21:02:13.658Z INFO webdriver: RESULT [] 2021-04-26T21:02:13.667Z INFO webdriver: COMMAND takeScreenshot() 2021-04-26T21:02:13.667Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/screenshot 2021-04-26T21:02:14.227Z INFO webdriver: RESULT iVBORw0KGgoAAAANSUhEUgAABDgAAAeACAYAAAArYecKAAAABHNCSVQICAgIf... 2021-04-26T21:02:14.237Z INFO webdriver: COMMAND findElement("xpath", "//[@resource-id="com.whatsapp:id/entry"]") 2021-04-26T21:02:14.237Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element 2021-04-26T21:02:14.238Z INFO webdriver: DATA { using: 'xpath', value: '//[@resource-id="com.whatsapp:id/entry"]' } 2021-04-26T21:02:14.287Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': '10c10fb1-5ad9-45b6-8278-86858bbe4e0b', ELEMENT: '10c10fb1-5ad9-45b6-8278-86858bbe4e0b' } 2021-04-26T21:02:14.290Z INFO webdriver: COMMAND isElementEnabled("10c10fb1-5ad9-45b6-8278-86858bbe4e0b") 2021-04-26T21:02:14.290Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/10c10fb1-5ad9-45b6-8278-86858bbe4e0b/enabled 2021-04-26T21:02:14.307Z INFO webdriver: RESULT true 2021-04-26T21:02:14.307Z INFO webdriver: COMMAND elementClear("10c10fb1-5ad9-45b6-8278-86858bbe4e0b") 2021-04-26T21:02:14.307Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/10c10fb1-5ad9-45b6-8278-86858bbe4e0b/clear 2021-04-26T21:02:14.327Z INFO webdriver: COMMAND elementSendKeys("10c10fb1-5ad9-45b6-8278-86858bbe4e0b", "Oi") 2021-04-26T21:02:14.328Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/10c10fb1-5ad9-45b6-8278-86858bbe4e0b/value 2021-04-26T21:02:14.328Z INFO webdriver: DATA { text: 'Oi' } 2021-04-26T21:02:15.381Z INFO webdriver: COMMAND findElement("xpath", "//[@resource-id="com.whatsapp:id/send"]") 2021-04-26T21:02:15.381Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element 2021-04-26T21:02:15.381Z INFO webdriver: DATA { using: 'xpath', value: '//[@resource-id="com.whatsapp:id/send"]' } 2021-04-26T21:02:15.490Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': 'd60604b3-c2b7-4de4-88b9-c89ce3860e65', ELEMENT: 'd60604b3-c2b7-4de4-88b9-c89ce3860e65' } 2021-04-26T21:02:15.497Z INFO webdriver: COMMAND isElementEnabled("d60604b3-c2b7-4de4-88b9-c89ce3860e65") 2021-04-26T21:02:15.497Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/d60604b3-c2b7-4de4-88b9-c89ce3860e65/enabled 2021-04-26T21:02:16.311Z INFO webdriver: RESULT true 2021-04-26T21:02:16.312Z INFO webdriver: COMMAND elementClick("d60604b3-c2b7-4de4-88b9-c89ce3860e65") 2021-04-26T21:02:16.313Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/d60604b3-c2b7-4de4-88b9-c89ce3860e65/click 2021-04-26T21:02:16.349Z INFO webdriver: COMMAND takeScreenshot() 2021-04-26T21:02:16.349Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/screenshot 2021-04-26T21:02:17.142Z INFO webdriver: RESULT iVBORw0KGgoAAAANSUhEUgAABDgAAAeACAYAAAArYecKAAAABHNCSVQICAgIf... 2021-04-26T21:02:19.150Z INFO webdriver: COMMAND findElements("xpath", "//[(@resource-id="com.whatsapp:id/conversation_text_row" or @resource-id="com.whatsapp:id/text_and_date") and not(descendant::[@resource-id="com.whatsapp:id/status"])]") 2021-04-26T21:02:19.151Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/elements 2021-04-26T21:02:19.151Z INFO webdriver: DATA { using: 'xpath', value: '//[(@resource-id="com.whatsapp:id/conversation_text_row" or @resource-id="com.whatsapp:id/text_and_date") and not(descendant::[@resource-id="com.whatsapp:id/status"])]' } 2021-04-26T21:02:19.230Z INFO webdriver: RESULT [ { 'element-6066-11e4-a52e-4f735466cecf': 'a8b062b0-17c9-4586-a477-abb597507b88', ELEMENT: 'a8b062b0-17c9-4586-a477-abb597507b88' } ] 2021-04-26T21:02:19.233Z INFO webdriver: COMMAND executeScript(, ) 2021-04-26T21:02:19.234Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/execute/sync 2021-04-26T21:02:19.235Z INFO webdriver: DATA { script: 'return (function getHTML(element, includeSelectorTag) {\n' + " return element[includeSelectorTag ? 'outerHTML' : 'innerHTML'];\n" + '}).apply(null, arguments)', args: [ { 'element-6066-11e4-a52e-4f735466cecf': 'a8b062b0-17c9-4586-a477-abb597507b88', ELEMENT: 'a8b062b0-17c9-4586-a477-abb597507b88' }, true ] } 2021-04-26T21:02:19.243Z INFO webdriver: Retrying 1/3 2021-04-26T21:02:19.243Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/execute/sync 2021-04-26T21:02:19.243Z INFO webdriver: DATA { script: 'return (function getHTML(element, includeSelectorTag) {\n' + " return element[includeSelectorTag ? 'outerHTML' : 'innerHTML'];\n" + '}).apply(null, arguments)', args: [ { 'element-6066-11e4-a52e-4f735466cecf': 'a8b062b0-17c9-4586-a477-abb597507b88', ELEMENT: 'a8b062b0-17c9-4586-a477-abb597507b88' }, true ] } 2021-04-26T21:02:19.250Z INFO webdriver: Retrying 2/3 2021-04-26T21:02:19.250Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/execute/sync 2021-04-26T21:02:19.250Z INFO webdriver: DATA { script: 'return (function getHTML(element, includeSelectorTag) {\n' + " return element[includeSelectorTag ? 'outerHTML' : 'innerHTML'];\n" + '}).apply(null, arguments)', args: [ { 'element-6066-11e4-a52e-4f735466cecf': 'a8b062b0-17c9-4586-a477-abb597507b88', ELEMENT: 'a8b062b0-17c9-4586-a477-abb597507b88' }, true ] } 2021-04-26T21:02:19.257Z INFO webdriver: Retrying 3/3 2021-04-26T21:02:19.257Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/execute/sync 2021-04-26T21:02:19.257Z INFO webdriver: DATA { script: 'return (function getHTML(element, includeSelectorTag) {\n' + " return element[includeSelectorTag ? 'outerHTML' : 'innerHTML'];\n" + '}).apply(null, arguments)', args: [ { 'element-6066-11e4-a52e-4f735466cecf': 'a8b062b0-17c9-4586-a477-abb597507b88', ELEMENT: 'a8b062b0-17c9-4586-a477-abb597507b88' }, true ] } 2021-04-26T21:02:19.264Z INFO webdriver: COMMAND getPageSource() 2021-04-26T21:02:19.265Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/source 2021-04-26T21:02:19.363Z INFO webdriver: RESULT <?xml version='1.0' encoding='UTF-8' standalone='yes' ?>

2021-04-26T21:02:19.363Z INFO webdriver: COMMAND findElementFromElement("a8b062b0-17c9-4586-a477-abb597507b88", "xpath", ".//[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]") 2021-04-26T21:02:19.364Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/a8b062b0-17c9-4586-a477-abb597507b88/element 2021-04-26T21:02:19.364Z INFO webdriver: DATA { using: 'xpath', value: './/[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]' } 2021-04-26T21:02:19.387Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': 'c2f5ee32-88bb-4c5e-8cd8-5b27f9b70305', ELEMENT: 'c2f5ee32-88bb-4c5e-8cd8-5b27f9b70305' } 2021-04-26T21:02:19.391Z INFO webdriver: COMMAND getElementText("c2f5ee32-88bb-4c5e-8cd8-5b27f9b70305") 2021-04-26T21:02:19.392Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/c2f5ee32-88bb-4c5e-8cd8-5b27f9b70305/text 2021-04-26T21:02:19.404Z INFO webdriver: RESULT Olá, bem-vindo ao bot de testes de QA do altu. O que deseja testar hoje? 2021-04-26T21:02:19.407Z INFO webdriver: COMMAND findElementFromElement("a8b062b0-17c9-4586-a477-abb597507b88", "xpath", ".//[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]") 2021-04-26T21:02:19.407Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/a8b062b0-17c9-4586-a477-abb597507b88/element 2021-04-26T21:02:19.407Z INFO webdriver: DATA { using: 'xpath', value: './/[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]' } 2021-04-26T21:02:19.444Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': 'fb2ef80b-e4eb-4e65-9c63-ff6b323fa808', ELEMENT: 'fb2ef80b-e4eb-4e65-9c63-ff6b323fa808' } 2021-04-26T21:02:19.453Z INFO webdriver: COMMAND getElementText("fb2ef80b-e4eb-4e65-9c63-ff6b323fa808") 2021-04-26T21:02:19.453Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/fb2ef80b-e4eb-4e65-9c63-ff6b323fa808/text 2021-04-26T21:02:19.468Z INFO webdriver: RESULT Olá, bem-vindo ao bot de testes de QA do altu. O que deseja testar hoje? 2021-04-26T21:02:19.468Z INFO webdriver: COMMAND findElementsFromElement("a8b062b0-17c9-4586-a477-abb597507b88", "xpath", ".//button | .//a[@href]") 2021-04-26T21:02:19.469Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/a8b062b0-17c9-4586-a477-abb597507b88/elements 2021-04-26T21:02:19.469Z INFO webdriver: DATA { using: 'xpath', value: './/button | .//a[@href]' } 2021-04-26T21:02:19.529Z INFO webdriver: RESULT [] 2021-04-26T21:02:19.532Z INFO webdriver: COMMAND findElementsFromElement("a8b062b0-17c9-4586-a477-abb597507b88", "xpath", ".//img | .//video | .//audio") 2021-04-26T21:02:19.533Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/a8b062b0-17c9-4586-a477-abb597507b88/elements 2021-04-26T21:02:19.533Z INFO webdriver: DATA { using: 'xpath', value: './/img | .//video | .//audio' } 2021-04-26T21:02:19.559Z INFO webdriver: RESULT [] 2021-04-26T21:02:19.562Z INFO webdriver: COMMAND takeScreenshot() 2021-04-26T21:02:19.562Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/screenshot 2021-04-26T21:02:20.057Z INFO webdriver: RESULT iVBORw0KGgoAAAANSUhEUgAABDgAAAeACAYAAAArYecKAAAABHNCSVQICAgIf... 2021-04-26T21:02:20.063Z INFO webdriver: COMMAND findElement("xpath", "//[@resource-id="com.whatsapp:id/entry"]") 2021-04-26T21:02:20.064Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element 2021-04-26T21:02:20.064Z INFO webdriver: DATA { using: 'xpath', value: '//[@resource-id="com.whatsapp:id/entry"]' } 2021-04-26T21:02:20.313Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': 'c0cad331-8646-4273-aed4-2fa4d7384b6f', ELEMENT: 'c0cad331-8646-4273-aed4-2fa4d7384b6f' } 2021-04-26T21:02:20.318Z INFO webdriver: COMMAND isElementEnabled("c0cad331-8646-4273-aed4-2fa4d7384b6f") 2021-04-26T21:02:20.318Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/c0cad331-8646-4273-aed4-2fa4d7384b6f/enabled 2021-04-26T21:02:20.393Z INFO webdriver: RESULT true 2021-04-26T21:02:20.394Z INFO webdriver: COMMAND elementClear("c0cad331-8646-4273-aed4-2fa4d7384b6f") 2021-04-26T21:02:20.394Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/c0cad331-8646-4273-aed4-2fa4d7384b6f/clear 2021-04-26T21:02:20.449Z INFO webdriver: COMMAND elementSendKeys("c0cad331-8646-4273-aed4-2fa4d7384b6f", "acesso") 2021-04-26T21:02:20.449Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/c0cad331-8646-4273-aed4-2fa4d7384b6f/value 2021-04-26T21:02:20.449Z INFO webdriver: DATA { text: 'acesso' } 2021-04-26T21:02:21.515Z INFO webdriver: COMMAND findElement("xpath", "//[@resource-id="com.whatsapp:id/send"]") 2021-04-26T21:02:21.516Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element 2021-04-26T21:02:21.517Z INFO webdriver: DATA { using: 'xpath', value: '//[@resource-id="com.whatsapp:id/send"]' } 2021-04-26T21:02:22.318Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': 'e9449ec9-276f-4576-9667-d8bca933ed08', ELEMENT: 'e9449ec9-276f-4576-9667-d8bca933ed08' } 2021-04-26T21:02:22.323Z INFO webdriver: COMMAND isElementEnabled("e9449ec9-276f-4576-9667-d8bca933ed08") 2021-04-26T21:02:22.323Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/e9449ec9-276f-4576-9667-d8bca933ed08/enabled 2021-04-26T21:02:22.335Z INFO webdriver: RESULT true 2021-04-26T21:02:22.335Z INFO webdriver: COMMAND elementClick("e9449ec9-276f-4576-9667-d8bca933ed08") 2021-04-26T21:02:22.336Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/e9449ec9-276f-4576-9667-d8bca933ed08/click 2021-04-26T21:02:22.351Z INFO webdriver: COMMAND takeScreenshot() 2021-04-26T21:02:22.351Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/screenshot 2021-04-26T21:02:23.193Z INFO webdriver: RESULT iVBORw0KGgoAAAANSUhEUgAABDgAAAeACAYAAAArYecKAAAABHNCSVQICAgIf... 2021-04-26T21:02:25.200Z INFO webdriver: COMMAND findElements("xpath", "//[(@resource-id="com.whatsapp:id/conversation_text_row" or @resource-id="com.whatsapp:id/text_and_date") and not(descendant::[@resource-id="com.whatsapp:id/status"])]") 2021-04-26T21:02:25.202Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/elements 2021-04-26T21:02:25.203Z INFO webdriver: DATA { using: 'xpath', value: '//[(@resource-id="com.whatsapp:id/conversation_text_row" or @resource-id="com.whatsapp:id/text_and_date") and not(descendant::[@resource-id="com.whatsapp:id/status"])]' } 2021-04-26T21:02:25.813Z INFO webdriver: RESULT [ { 'element-6066-11e4-a52e-4f735466cecf': '315a6aca-b882-442b-8038-a6d4d8023eb4', ELEMENT: '315a6aca-b882-442b-8038-a6d4d8023eb4' }, { 'element-6066-11e4-a52e-4f735466cecf': 'dbcb95ae-f5fb-4b53-a655-61adb212e48f', ELEMENT: 'dbcb95ae-f5fb-4b53-a655-61adb212e48f' }, { 'element-6066-11e4-a52e-4f735466cecf': '85c78edc-e94b-4a1f-97d2-6dcdb83632ab', ELEMENT: '85c78edc-e94b-4a1f-97d2-6dcdb83632ab' } ] 2021-04-26T21:02:25.819Z INFO webdriver: COMMAND executeScript(, ) 2021-04-26T21:02:25.819Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/execute/sync 2021-04-26T21:02:25.819Z INFO webdriver: DATA { script: 'return (function getHTML(element, includeSelectorTag) {\n' + " return element[includeSelectorTag ? 'outerHTML' : 'innerHTML'];\n" + '}).apply(null, arguments)', args: [ { 'element-6066-11e4-a52e-4f735466cecf': '315a6aca-b882-442b-8038-a6d4d8023eb4', ELEMENT: '315a6aca-b882-442b-8038-a6d4d8023eb4' }, true ] } 2021-04-26T21:02:25.823Z INFO webdriver: Retrying 1/3 2021-04-26T21:02:25.824Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/execute/sync 2021-04-26T21:02:25.824Z INFO webdriver: DATA { script: 'return (function getHTML(element, includeSelectorTag) {\n' + " return element[includeSelectorTag ? 'outerHTML' : 'innerHTML'];\n" + '}).apply(null, arguments)', args: [ { 'element-6066-11e4-a52e-4f735466cecf': '315a6aca-b882-442b-8038-a6d4d8023eb4', ELEMENT: '315a6aca-b882-442b-8038-a6d4d8023eb4' }, true ] } 2021-04-26T21:02:25.829Z INFO webdriver: Retrying 2/3 2021-04-26T21:02:25.829Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/execute/sync 2021-04-26T21:02:25.829Z INFO webdriver: DATA { script: 'return (function getHTML(element, includeSelectorTag) {\n' + " return element[includeSelectorTag ? 'outerHTML' : 'innerHTML'];\n" + '}).apply(null, arguments)', args: [ { 'element-6066-11e4-a52e-4f735466cecf': '315a6aca-b882-442b-8038-a6d4d8023eb4', ELEMENT: '315a6aca-b882-442b-8038-a6d4d8023eb4' }, true ] } 2021-04-26T21:02:25.834Z INFO webdriver: Retrying 3/3 2021-04-26T21:02:25.834Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/execute/sync 2021-04-26T21:02:25.834Z INFO webdriver: DATA { script: 'return (function getHTML(element, includeSelectorTag) {\n' + " return element[includeSelectorTag ? 'outerHTML' : 'innerHTML'];\n" + '}).apply(null, arguments)', args: [ { 'element-6066-11e4-a52e-4f735466cecf': '315a6aca-b882-442b-8038-a6d4d8023eb4', ELEMENT: '315a6aca-b882-442b-8038-a6d4d8023eb4' }, true ] } 2021-04-26T21:02:25.841Z INFO webdriver: COMMAND getPageSource() 2021-04-26T21:02:25.841Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/source 2021-04-26T21:02:26.016Z INFO webdriver: RESULT <?xml version='1.0' encoding='UTF-8' standalone='yes' ?>

2021-04-26T21:02:26.016Z INFO webdriver: COMMAND findElementFromElement("315a6aca-b882-442b-8038-a6d4d8023eb4", "xpath", ".//[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]") 2021-04-26T21:02:26.016Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/315a6aca-b882-442b-8038-a6d4d8023eb4/element 2021-04-26T21:02:26.016Z INFO webdriver: DATA { using: 'xpath', value: './/[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]' } 2021-04-26T21:02:26.034Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': '30b636e2-5960-4dec-bf11-c276a2b2abf0', ELEMENT: '30b636e2-5960-4dec-bf11-c276a2b2abf0' } 2021-04-26T21:02:26.037Z INFO webdriver: COMMAND getElementText("30b636e2-5960-4dec-bf11-c276a2b2abf0") 2021-04-26T21:02:26.038Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/30b636e2-5960-4dec-bf11-c276a2b2abf0/text 2021-04-26T21:02:26.048Z INFO webdriver: RESULT Olá, bem-vindo ao bot de testes de QA do altu. O que deseja testar hoje? 2021-04-26T21:02:26.048Z INFO webdriver: COMMAND executeScript(, ) 2021-04-26T21:02:26.049Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/execute/sync 2021-04-26T21:02:26.049Z INFO webdriver: DATA { script: 'return (function getHTML(element, includeSelectorTag) {\n' + " return element[includeSelectorTag ? 'outerHTML' : 'innerHTML'];\n" + '}).apply(null, arguments)', args: [ { 'element-6066-11e4-a52e-4f735466cecf': 'dbcb95ae-f5fb-4b53-a655-61adb212e48f', ELEMENT: 'dbcb95ae-f5fb-4b53-a655-61adb212e48f' }, true ] } 2021-04-26T21:02:26.057Z INFO webdriver: Retrying 1/3 2021-04-26T21:02:26.057Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/execute/sync 2021-04-26T21:02:26.057Z INFO webdriver: DATA { script: 'return (function getHTML(element, includeSelectorTag) {\n' + " return element[includeSelectorTag ? 'outerHTML' : 'innerHTML'];\n" + '}).apply(null, arguments)', args: [ { 'element-6066-11e4-a52e-4f735466cecf': 'dbcb95ae-f5fb-4b53-a655-61adb212e48f', ELEMENT: 'dbcb95ae-f5fb-4b53-a655-61adb212e48f' }, true ] } 2021-04-26T21:02:26.065Z INFO webdriver: Retrying 2/3 2021-04-26T21:02:26.066Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/execute/sync 2021-04-26T21:02:26.066Z INFO webdriver: DATA { script: 'return (function getHTML(element, includeSelectorTag) {\n' + " return element[includeSelectorTag ? 'outerHTML' : 'innerHTML'];\n" + '}).apply(null, arguments)', args: [ { 'element-6066-11e4-a52e-4f735466cecf': 'dbcb95ae-f5fb-4b53-a655-61adb212e48f', ELEMENT: 'dbcb95ae-f5fb-4b53-a655-61adb212e48f' }, true ] } 2021-04-26T21:02:26.074Z INFO webdriver: Retrying 3/3 2021-04-26T21:02:26.074Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/execute/sync 2021-04-26T21:02:26.074Z INFO webdriver: DATA { script: 'return (function getHTML(element, includeSelectorTag) {\n' + " return element[includeSelectorTag ? 'outerHTML' : 'innerHTML'];\n" + '}).apply(null, arguments)', args: [ { 'element-6066-11e4-a52e-4f735466cecf': 'dbcb95ae-f5fb-4b53-a655-61adb212e48f', ELEMENT: 'dbcb95ae-f5fb-4b53-a655-61adb212e48f' }, true ] } 2021-04-26T21:02:26.080Z INFO webdriver: COMMAND getPageSource() 2021-04-26T21:02:26.080Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/source 2021-04-26T21:02:26.301Z INFO webdriver: RESULT <?xml version='1.0' encoding='UTF-8' standalone='yes' ?>

2021-04-26T21:02:26.301Z INFO webdriver: COMMAND findElementFromElement("dbcb95ae-f5fb-4b53-a655-61adb212e48f", "xpath", ".//[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]") 2021-04-26T21:02:26.302Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/dbcb95ae-f5fb-4b53-a655-61adb212e48f/element 2021-04-26T21:02:26.302Z INFO webdriver: DATA { using: 'xpath', value: './/[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]' } 2021-04-26T21:02:26.799Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': 'fcf214f4-f6dd-41df-bed5-91f401436cbc', ELEMENT: 'fcf214f4-f6dd-41df-bed5-91f401436cbc' } 2021-04-26T21:02:26.804Z INFO webdriver: COMMAND getElementText("fcf214f4-f6dd-41df-bed5-91f401436cbc") 2021-04-26T21:02:26.805Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/fcf214f4-f6dd-41df-bed5-91f401436cbc/text 2021-04-26T21:02:26.817Z INFO webdriver: RESULT Seu input foi: acesso 2021-04-26T21:02:26.817Z INFO webdriver: COMMAND executeScript(, ) 2021-04-26T21:02:26.817Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/execute/sync 2021-04-26T21:02:26.817Z INFO webdriver: DATA { script: 'return (function getHTML(element, includeSelectorTag) {\n' + " return element[includeSelectorTag ? 'outerHTML' : 'innerHTML'];\n" + '}).apply(null, arguments)', args: [ { 'element-6066-11e4-a52e-4f735466cecf': '85c78edc-e94b-4a1f-97d2-6dcdb83632ab', ELEMENT: '85c78edc-e94b-4a1f-97d2-6dcdb83632ab' }, true ] } 2021-04-26T21:02:26.823Z INFO webdriver: Retrying 1/3 2021-04-26T21:02:26.823Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/execute/sync 2021-04-26T21:02:26.823Z INFO webdriver: DATA { script: 'return (function getHTML(element, includeSelectorTag) {\n' + " return element[includeSelectorTag ? 'outerHTML' : 'innerHTML'];\n" + '}).apply(null, arguments)', args: [ { 'element-6066-11e4-a52e-4f735466cecf': '85c78edc-e94b-4a1f-97d2-6dcdb83632ab', ELEMENT: '85c78edc-e94b-4a1f-97d2-6dcdb83632ab' }, true ] } 2021-04-26T21:02:26.829Z INFO webdriver: Retrying 2/3 2021-04-26T21:02:26.829Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/execute/sync 2021-04-26T21:02:26.829Z INFO webdriver: DATA { script: 'return (function getHTML(element, includeSelectorTag) {\n' + " return element[includeSelectorTag ? 'outerHTML' : 'innerHTML'];\n" + '}).apply(null, arguments)', args: [ { 'element-6066-11e4-a52e-4f735466cecf': '85c78edc-e94b-4a1f-97d2-6dcdb83632ab', ELEMENT: '85c78edc-e94b-4a1f-97d2-6dcdb83632ab' }, true ] } 2021-04-26T21:02:26.834Z INFO webdriver: Retrying 3/3 2021-04-26T21:02:26.834Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/execute/sync 2021-04-26T21:02:26.834Z INFO webdriver: DATA { script: 'return (function getHTML(element, includeSelectorTag) {\n' + " return element[includeSelectorTag ? 'outerHTML' : 'innerHTML'];\n" + '}).apply(null, arguments)', args: [ { 'element-6066-11e4-a52e-4f735466cecf': '85c78edc-e94b-4a1f-97d2-6dcdb83632ab', ELEMENT: '85c78edc-e94b-4a1f-97d2-6dcdb83632ab' }, true ] } 2021-04-26T21:02:26.840Z INFO webdriver: COMMAND getPageSource() 2021-04-26T21:02:26.840Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/source 2021-04-26T21:02:26.996Z INFO webdriver: RESULT <?xml version='1.0' encoding='UTF-8' standalone='yes' ?>

2021-04-26T21:02:26.996Z INFO webdriver: COMMAND findElementFromElement("85c78edc-e94b-4a1f-97d2-6dcdb83632ab", "xpath", ".//[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]") 2021-04-26T21:02:26.996Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/85c78edc-e94b-4a1f-97d2-6dcdb83632ab/element 2021-04-26T21:02:26.996Z INFO webdriver: DATA { using: 'xpath', value: './/[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]' } 2021-04-26T21:02:27.011Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': 'bdc89f40-7669-46d1-a140-a120faf28ef7', ELEMENT: 'bdc89f40-7669-46d1-a140-a120faf28ef7' } 2021-04-26T21:02:27.015Z INFO webdriver: COMMAND getElementText("bdc89f40-7669-46d1-a140-a120faf28ef7") 2021-04-26T21:02:27.015Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/bdc89f40-7669-46d1-a140-a120faf28ef7/text 2021-04-26T21:02:27.024Z INFO webdriver: RESULT Continuar? 2021-04-26T21:02:27.025Z INFO webdriver: COMMAND findElementFromElement("dbcb95ae-f5fb-4b53-a655-61adb212e48f", "xpath", ".//[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]") 2021-04-26T21:02:27.025Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/dbcb95ae-f5fb-4b53-a655-61adb212e48f/element 2021-04-26T21:02:27.025Z INFO webdriver: DATA { using: 'xpath', value: './/[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]' } 2021-04-26T21:02:27.042Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': '86be27aa-2f06-4eeb-a6d8-e9216cdc777d', ELEMENT: '86be27aa-2f06-4eeb-a6d8-e9216cdc777d' } 2021-04-26T21:02:27.047Z INFO webdriver: COMMAND getElementText("86be27aa-2f06-4eeb-a6d8-e9216cdc777d") 2021-04-26T21:02:27.047Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/86be27aa-2f06-4eeb-a6d8-e9216cdc777d/text 2021-04-26T21:02:27.063Z INFO webdriver: RESULT Seu input foi: acesso 2021-04-26T21:02:27.063Z INFO webdriver: COMMAND findElementsFromElement("dbcb95ae-f5fb-4b53-a655-61adb212e48f", "xpath", ".//button | .//a[@href]") 2021-04-26T21:02:27.064Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/dbcb95ae-f5fb-4b53-a655-61adb212e48f/elements 2021-04-26T21:02:27.064Z INFO webdriver: DATA { using: 'xpath', value: './/button | .//a[@href]' } 2021-04-26T21:02:27.089Z INFO webdriver: RESULT [] 2021-04-26T21:02:27.095Z INFO webdriver: COMMAND findElementsFromElement("dbcb95ae-f5fb-4b53-a655-61adb212e48f", "xpath", ".//img | .//video | .//audio") 2021-04-26T21:02:27.095Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/dbcb95ae-f5fb-4b53-a655-61adb212e48f/elements 2021-04-26T21:02:27.095Z INFO webdriver: DATA { using: 'xpath', value: './/img | .//video | .//audio' } 2021-04-26T21:02:27.121Z INFO webdriver: RESULT [] 2021-04-26T21:02:27.129Z INFO webdriver: COMMAND takeScreenshot() 2021-04-26T21:02:27.129Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/screenshot 2021-04-26T21:02:27.607Z INFO webdriver: RESULT iVBORw0KGgoAAAANSUhEUgAABDgAAAeACAYAAAArYecKAAAABHNCSVQICAgIf... 1) acesso 2021-04-26T21:02:27.616Z INFO webdriver: COMMAND findElementFromElement("85c78edc-e94b-4a1f-97d2-6dcdb83632ab", "xpath", ".//[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]") 2021-04-26T21:02:27.617Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/85c78edc-e94b-4a1f-97d2-6dcdb83632ab/element 2021-04-26T21:02:27.617Z INFO webdriver: DATA { using: 'xpath', value: './/[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]' } 2021-04-26T21:02:27.649Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': '2737648c-df85-4baf-96c7-566583fed33a', ELEMENT: '2737648c-df85-4baf-96c7-566583fed33a' } 2021-04-26T21:02:27.655Z INFO webdriver: COMMAND getElementText("2737648c-df85-4baf-96c7-566583fed33a") 2021-04-26T21:02:27.655Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/2737648c-df85-4baf-96c7-566583fed33a/text 2021-04-26T21:02:27.671Z INFO webdriver: RESULT Continuar? 2021-04-26T21:02:27.671Z INFO webdriver: COMMAND findElementsFromElement("85c78edc-e94b-4a1f-97d2-6dcdb83632ab", "xpath", ".//button | .//a[@href]") 2021-04-26T21:02:27.671Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/85c78edc-e94b-4a1f-97d2-6dcdb83632ab/elements 2021-04-26T21:02:27.671Z INFO webdriver: DATA { using: 'xpath', value: './/button | .//a[@href]' } 2021-04-26T21:02:27.694Z INFO webdriver: RESULT [] 2021-04-26T21:02:27.698Z INFO webdriver: COMMAND findElementsFromElement("85c78edc-e94b-4a1f-97d2-6dcdb83632ab", "xpath", ".//img | .//video | .//audio") 2021-04-26T21:02:27.698Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/element/85c78edc-e94b-4a1f-97d2-6dcdb83632ab/elements 2021-04-26T21:02:27.698Z INFO webdriver: DATA { using: 'xpath', value: './/img | .//video | .//audio' } 2021-04-26T21:02:27.721Z INFO webdriver: RESULT [] 2021-04-26T21:02:27.724Z INFO webdriver: COMMAND takeScreenshot() 2021-04-26T21:02:27.724Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b/screenshot 2021-04-26T21:02:28.336Z INFO webdriver: RESULT iVBORw0KGgoAAAANSUhEUgAABDgAAAeACAYAAAArYecKAAAABHNCSVQICAgIf... 2021-04-26T21:02:28.342Z INFO webdriver: COMMAND deleteSession() 2021-04-26T21:02:28.342Z INFO webdriver: [DELETE] http://127.0.0.1:4723/wd/hub/session/1b5b787b-4e70-4eac-80ea-dfacc6a97b9b

0 passing (37s) 1 failing

1) Botium Test-Suite acesso: Error: acesso/Line 12: Bot response (on Line 9: #me - acesso) "Seu input foi: acesso" expected to match "Caso você esteja lendo isto, o bot está respondendo corretamente." ######################################## ASSERTION FAILED in TextMatchAsserter - Expected: ["Caso você esteja lendo isto, o bot está respondendo corretamente."] - Actual: "Seu input foi: acesso" INPUT: acesso ------------ TRANSCRIPT ----------------------------

me: Oi

bot: Olá, bem-vindo ao bot de testes de QA do altu. O que deseja testar hoje?

me: acesso

bot: Seu input foi: acesso

  at wrapBotiumError (node_modules/botium-cli/src/run/index.js:76:12)
  at finish (node_modules/botium-cli/src/run/index.js:205:24)
  at /home/btlucas/github/Testes/demo-botium/node_modules/botium-cli/src/run/index.js:218:11
  at processTicksAndRejections (internal/process/task_queues.js:97:5)
codeforequity-at commented 3 years ago

OK, I confirm that everything is in place. It seems as if the order of the elements detected by Appium is out of sync with the order on screen. I will work on this.

codeforequity-at commented 3 years ago

So after trying around I am stuck, sorry. I have no idea why this is happening. Maybe because of the special character (você), maybe because of other things. I can continue to work on this if you give me access to the test bot channel (florian.treml at botium.at)

codeforequity-at commented 3 years ago

I slimmed the Appium code down a bit in the Git repository of the connector. I think it is worth a try, maybe it was in your case a timing issue due to too many unnecessary Appium calls by the connector.

btlucas commented 3 years ago

It's ok, I appreciate the help. I'll give a try on the slimmed version and post the results here. If the bug persists, I will just change the bot to send one message instead of three and later study Appium so I can try to tackle the issue myself and hopefully make a PR with the fix.

btlucas commented 3 years ago

Interesting, now appium does recognize more than one message but it's losing the middle one.

Botium Test-Suite 2021-04-27T13:43:17.343Z INFO webdriver: Initiate new session using the WebDriver protocol 2021-04-27T13:43:17.345Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session 2021-04-27T13:43:17.345Z INFO webdriver: DATA { capabilities: { alwaysMatch: { platformName: 'Android', appPackage: 'com.whatsapp', appActivity: 'com.whatsapp.HomeActivity', noReset: true, automationName: 'UiAutomator2' }, firstMatch: [ {} ] }, desiredCapabilities: { platformName: 'Android', appPackage: 'com.whatsapp', appActivity: 'com.whatsapp.HomeActivity', noReset: true, automationName: 'UiAutomator2' } } 2021-04-27T13:43:23.524Z INFO webdriver: COMMAND findElement("xpath", "//[@resource-id="com.whatsapp:id/menuitem_search"]") 2021-04-27T13:43:23.525Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element 2021-04-27T13:43:23.525Z INFO webdriver: DATA { using: 'xpath', value: '//[@resource-id="com.whatsapp:id/menuitem_search"]' } 2021-04-27T13:43:24.575Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': '6a638666-a0d5-4eaf-b46c-83350e509943', ELEMENT: '6a638666-a0d5-4eaf-b46c-83350e509943' } 2021-04-27T13:43:24.584Z INFO webdriver: COMMAND elementClick("6a638666-a0d5-4eaf-b46c-83350e509943") 2021-04-27T13:43:24.584Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/6a638666-a0d5-4eaf-b46c-83350e509943/click 2021-04-27T13:43:24.973Z INFO webdriver: COMMAND findElement("xpath", "//[@resource-id="com.whatsapp:id/search_input"]") 2021-04-27T13:43:24.973Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element 2021-04-27T13:43:24.974Z INFO webdriver: DATA { using: 'xpath', value: '//[@resource-id="com.whatsapp:id/search_input"]' } 2021-04-27T13:43:26.091Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': 'bab2d715-86ad-4787-9fb5-df6cc1719953', ELEMENT: 'bab2d715-86ad-4787-9fb5-df6cc1719953' } 2021-04-27T13:43:26.099Z INFO webdriver: COMMAND elementClear("bab2d715-86ad-4787-9fb5-df6cc1719953") 2021-04-27T13:43:26.101Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/bab2d715-86ad-4787-9fb5-df6cc1719953/clear 2021-04-27T13:43:27.267Z INFO webdriver: COMMAND elementSendKeys("bab2d715-86ad-4787-9fb5-df6cc1719953", "Contact") 2021-04-27T13:43:27.268Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/bab2d715-86ad-4787-9fb5-df6cc1719953/value 2021-04-27T13:43:27.268Z INFO webdriver: DATA { text: 'Contact' } 2021-04-27T13:43:28.906Z INFO webdriver: COMMAND findElement("xpath", "//[@resource-id="com.whatsapp:id/result_list"]//[@resource-id="com.whatsapp:id/conversations_row_contact_name" and @text="Contact"]") 2021-04-27T13:43:28.906Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element 2021-04-27T13:43:28.907Z INFO webdriver: DATA { using: 'xpath', value: '//[@resource-id="com.whatsapp:id/result_list"]//[@resource-id="com.whatsapp:id/conversations_row_contact_name" and @text="Contact"]' } 2021-04-27T13:43:30.913Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': '00635cd8-1f34-492b-a40c-605f2af8b39c', ELEMENT: '00635cd8-1f34-492b-a40c-605f2af8b39c' } 2021-04-27T13:43:30.917Z INFO webdriver: COMMAND elementClick("00635cd8-1f34-492b-a40c-605f2af8b39c") 2021-04-27T13:43:30.917Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/00635cd8-1f34-492b-a40c-605f2af8b39c/click 2021-04-27T13:43:30.933Z INFO webdriver: COMMAND findElement("xpath", "//[@content-desc="More options"]") 2021-04-27T13:43:30.933Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element 2021-04-27T13:43:30.933Z INFO webdriver: DATA { using: 'xpath', value: '//[@content-desc="More options"]' } 2021-04-27T13:43:31.193Z INFO webdriver: RESULT { error: 'no such element', message: 'An element could not be located on the page using the given search parameters.', stacktrace: 'NoSuchElementError: An element could not be located on the page using the given search parameters.\n' + ' at AndroidUiautomator2Driver.findElOrEls (/usr/lib/node_modules/appium/node_modules/appium-android-driver/lib/commands/find.js:75:11)\n' + ' at runMicrotasks ()\n' + ' at processTicksAndRejections (internal/process/task_queues.js:97:5)' } 2021-04-27T13:43:31.201Z INFO webdriver: COMMAND findElements("xpath", "//[@content-desc="More options"]") 2021-04-27T13:43:31.201Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/elements 2021-04-27T13:43:31.202Z INFO webdriver: DATA { using: 'xpath', value: '//[@content-desc="More options"]' } 2021-04-27T13:43:32.908Z INFO webdriver: RESULT [ { 'element-6066-11e4-a52e-4f735466cecf': '2ca00f37-f917-4521-b4cd-c8b213364e83', ELEMENT: '2ca00f37-f917-4521-b4cd-c8b213364e83' } ] 2021-04-27T13:43:32.913Z INFO webdriver: COMMAND findElement("xpath", "//[@content-desc="More options"]") 2021-04-27T13:43:32.914Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element 2021-04-27T13:43:32.914Z INFO webdriver: DATA { using: 'xpath', value: '//[@content-desc="More options"]' } 2021-04-27T13:43:33.009Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': '7d971443-913c-4a46-9507-6c7efdbb0ea9', ELEMENT: '7d971443-913c-4a46-9507-6c7efdbb0ea9' } 2021-04-27T13:43:33.016Z INFO webdriver: COMMAND elementClick("7d971443-913c-4a46-9507-6c7efdbb0ea9") 2021-04-27T13:43:33.017Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/7d971443-913c-4a46-9507-6c7efdbb0ea9/click 2021-04-27T13:43:33.038Z INFO webdriver: COMMAND findElement("xpath", "//[@resource-id="com.whatsapp:id/submenuarrow"]") 2021-04-27T13:43:33.038Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element 2021-04-27T13:43:33.038Z INFO webdriver: DATA { using: 'xpath', value: '//[@resource-id="com.whatsapp:id/submenuarrow"]' } 2021-04-27T13:43:33.258Z INFO webdriver: RESULT { error: 'no such element', message: 'An element could not be located on the page using the given search parameters.', stacktrace: 'NoSuchElementError: An element could not be located on the page using the given search parameters.\n' + ' at AndroidUiautomator2Driver.findElOrEls (/usr/lib/node_modules/appium/node_modules/appium-android-driver/lib/commands/find.js:75:11)\n' + ' at runMicrotasks ()\n' + ' at processTicksAndRejections (internal/process/task_queues.js:97:5)' } 2021-04-27T13:43:33.267Z INFO webdriver: COMMAND findElements("xpath", "//[@resource-id="com.whatsapp:id/submenuarrow"]") 2021-04-27T13:43:33.267Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/elements 2021-04-27T13:43:33.267Z INFO webdriver: DATA { using: 'xpath', value: '//[@resource-id="com.whatsapp:id/submenuarrow"]' } 2021-04-27T13:43:34.154Z INFO webdriver: RESULT [ { 'element-6066-11e4-a52e-4f735466cecf': '29defaca-ec55-4698-aebf-9e9387d16952', ELEMENT: '29defaca-ec55-4698-aebf-9e9387d16952' } ] 2021-04-27T13:43:34.162Z INFO webdriver: COMMAND findElement("xpath", "//[@resource-id="com.whatsapp:id/submenuarrow"]") 2021-04-27T13:43:34.162Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element 2021-04-27T13:43:34.162Z INFO webdriver: DATA { using: 'xpath', value: '//[@resource-id="com.whatsapp:id/submenuarrow"]' } 2021-04-27T13:43:34.231Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': '2d0d0914-017b-45ac-b03a-6cd6c75ec0d1', ELEMENT: '2d0d0914-017b-45ac-b03a-6cd6c75ec0d1' } 2021-04-27T13:43:34.239Z INFO webdriver: COMMAND elementClick("2d0d0914-017b-45ac-b03a-6cd6c75ec0d1") 2021-04-27T13:43:34.240Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/2d0d0914-017b-45ac-b03a-6cd6c75ec0d1/click 2021-04-27T13:43:35.516Z INFO webdriver: COMMAND findElement("xpath", "//[@resource-id="com.whatsapp:id/title" and @text="Clear chat"]") 2021-04-27T13:43:35.517Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element 2021-04-27T13:43:35.517Z INFO webdriver: DATA { using: 'xpath', value: '//[@resource-id="com.whatsapp:id/title" and @text="Clear chat"]' } 2021-04-27T13:43:35.642Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': '4a09205c-f22f-4432-9d11-61e52662f990', ELEMENT: '4a09205c-f22f-4432-9d11-61e52662f990' } 2021-04-27T13:43:35.655Z INFO webdriver: COMMAND elementClick("4a09205c-f22f-4432-9d11-61e52662f990") 2021-04-27T13:43:35.656Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/4a09205c-f22f-4432-9d11-61e52662f990/click 2021-04-27T13:43:37.261Z INFO webdriver: COMMAND findElement("xpath", "//[@resource-id="android:id/button1" and @text="CLEAR"]") 2021-04-27T13:43:37.261Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element 2021-04-27T13:43:37.261Z INFO webdriver: DATA { using: 'xpath', value: '//[@resource-id="android:id/button1" and @text="CLEAR"]' } 2021-04-27T13:43:37.321Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': 'eeaba082-5c92-481d-b91a-584e393c0517', ELEMENT: 'eeaba082-5c92-481d-b91a-584e393c0517' } 2021-04-27T13:43:37.330Z INFO webdriver: COMMAND elementClick("eeaba082-5c92-481d-b91a-584e393c0517") 2021-04-27T13:43:37.330Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/eeaba082-5c92-481d-b91a-584e393c0517/click 2021-04-27T13:43:37.362Z INFO webdriver: COMMAND findElement("xpath", "//[@resource-id="com.whatsapp:id/entry"]") 2021-04-27T13:43:37.362Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element 2021-04-27T13:43:37.362Z INFO webdriver: DATA { using: 'xpath', value: '//[@resource-id="com.whatsapp:id/entry"]' } 2021-04-27T13:43:37.986Z INFO webdriver: RESULT { error: 'no such element', message: 'An element could not be located on the page using the given search parameters.', stacktrace: 'NoSuchElementError: An element could not be located on the page using the given search parameters.\n' + ' at AndroidUiautomator2Driver.findElOrEls (/usr/lib/node_modules/appium/node_modules/appium-android-driver/lib/commands/find.js:75:11)\n' + ' at runMicrotasks ()\n' + ' at processTicksAndRejections (internal/process/task_queues.js:97:5)' } 2021-04-27T13:43:37.997Z INFO webdriver: COMMAND findElement("xpath", "//[@resource-id="com.whatsapp:id/entry"]") 2021-04-27T13:43:37.998Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element 2021-04-27T13:43:37.999Z INFO webdriver: DATA { using: 'xpath', value: '//[@resource-id="com.whatsapp:id/entry"]' } 2021-04-27T13:43:38.620Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': '2bb64938-315f-4e59-8940-b8c0d3e433c7', ELEMENT: '2bb64938-315f-4e59-8940-b8c0d3e433c7' } 2021-04-27T13:43:38.631Z INFO webdriver: COMMAND isElementDisplayed("2bb64938-315f-4e59-8940-b8c0d3e433c7") 2021-04-27T13:43:38.632Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/2bb64938-315f-4e59-8940-b8c0d3e433c7/displayed 2021-04-27T13:43:38.653Z INFO webdriver: RESULT true 2021-04-27T13:43:38.667Z INFO webdriver: COMMAND findElements("xpath", "//[(@resource-id="com.whatsapp:id/conversation_text_row" or @resource-id="com.whatsapp:id/text_and_date") and not(descendant::[@resource-id="com.whatsapp:id/status"])]") 2021-04-27T13:43:38.667Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/elements 2021-04-27T13:43:38.667Z INFO webdriver: DATA { using: 'xpath', value: '//[(@resource-id="com.whatsapp:id/conversation_text_row" or @resource-id="com.whatsapp:id/text_and_date") and not(descendant::[@resource-id="com.whatsapp:id/status"])]' } 2021-04-27T13:43:38.725Z INFO webdriver: RESULT [] 2021-04-27T13:43:38.733Z INFO webdriver: COMMAND findElement("xpath", "//[@resource-id="com.whatsapp:id/entry"]") 2021-04-27T13:43:38.733Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element 2021-04-27T13:43:38.733Z INFO webdriver: DATA { using: 'xpath', value: '//[@resource-id="com.whatsapp:id/entry"]' } 2021-04-27T13:43:38.784Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': '5c6f2195-80f0-4463-a002-35d02b80a39f', ELEMENT: '5c6f2195-80f0-4463-a002-35d02b80a39f' } 2021-04-27T13:43:38.788Z INFO webdriver: COMMAND isElementEnabled("5c6f2195-80f0-4463-a002-35d02b80a39f") 2021-04-27T13:43:38.788Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/5c6f2195-80f0-4463-a002-35d02b80a39f/enabled 2021-04-27T13:43:38.806Z INFO webdriver: RESULT true 2021-04-27T13:43:38.807Z INFO webdriver: COMMAND elementClear("5c6f2195-80f0-4463-a002-35d02b80a39f") 2021-04-27T13:43:38.807Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/5c6f2195-80f0-4463-a002-35d02b80a39f/clear 2021-04-27T13:43:38.835Z INFO webdriver: COMMAND elementSendKeys("5c6f2195-80f0-4463-a002-35d02b80a39f", "Oi") 2021-04-27T13:43:38.836Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/5c6f2195-80f0-4463-a002-35d02b80a39f/value 2021-04-27T13:43:38.836Z INFO webdriver: DATA { text: 'Oi' } 2021-04-27T13:43:39.960Z INFO webdriver: COMMAND findElement("xpath", "//[@resource-id="com.whatsapp:id/send"]") 2021-04-27T13:43:39.960Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element 2021-04-27T13:43:39.960Z INFO webdriver: DATA { using: 'xpath', value: '//[@resource-id="com.whatsapp:id/send"]' } 2021-04-27T13:43:41.056Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': 'a70962d7-b359-440a-aa97-97398a52ada3', ELEMENT: 'a70962d7-b359-440a-aa97-97398a52ada3' } 2021-04-27T13:43:41.061Z INFO webdriver: COMMAND isElementEnabled("a70962d7-b359-440a-aa97-97398a52ada3") 2021-04-27T13:43:41.062Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/a70962d7-b359-440a-aa97-97398a52ada3/enabled 2021-04-27T13:43:41.078Z INFO webdriver: RESULT true 2021-04-27T13:43:41.078Z INFO webdriver: COMMAND elementClick("a70962d7-b359-440a-aa97-97398a52ada3") 2021-04-27T13:43:41.078Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/a70962d7-b359-440a-aa97-97398a52ada3/click 2021-04-27T13:43:43.106Z INFO webdriver: COMMAND findElements("xpath", "//[(@resource-id="com.whatsapp:id/conversation_text_row" or @resource-id="com.whatsapp:id/text_and_date") and not(descendant::[@resource-id="com.whatsapp:id/status"])]") 2021-04-27T13:43:43.106Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/elements 2021-04-27T13:43:43.107Z INFO webdriver: DATA { using: 'xpath', value: '//[(@resource-id="com.whatsapp:id/conversation_text_row" or @resource-id="com.whatsapp:id/text_and_date") and not(descendant::[@resource-id="com.whatsapp:id/status"])]' } 2021-04-27T13:43:43.184Z INFO webdriver: RESULT [] 2021-04-27T13:43:44.189Z INFO webdriver: COMMAND findElements("xpath", "//[(@resource-id="com.whatsapp:id/conversation_text_row" or @resource-id="com.whatsapp:id/text_and_date") and not(descendant::[@resource-id="com.whatsapp:id/status"])]") 2021-04-27T13:43:44.189Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/elements 2021-04-27T13:43:44.190Z INFO webdriver: DATA { using: 'xpath', value: '//[(@resource-id="com.whatsapp:id/conversation_text_row" or @resource-id="com.whatsapp:id/text_and_date") and not(descendant::[@resource-id="com.whatsapp:id/status"])]' } 2021-04-27T13:43:44.696Z INFO webdriver: RESULT [ { 'element-6066-11e4-a52e-4f735466cecf': '07e05b8c-b476-4767-a5d3-129e741dae8a', ELEMENT: '07e05b8c-b476-4767-a5d3-129e741dae8a' } ] 2021-04-27T13:43:44.700Z INFO webdriver: COMMAND findElementFromElement("07e05b8c-b476-4767-a5d3-129e741dae8a", "xpath", ".//[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]") 2021-04-27T13:43:44.701Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/07e05b8c-b476-4767-a5d3-129e741dae8a/element 2021-04-27T13:43:44.701Z INFO webdriver: DATA { using: 'xpath', value: './/[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]' } 2021-04-27T13:43:44.727Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': '548e3a9e-af16-45de-97b2-42a61f8db6d0', ELEMENT: '548e3a9e-af16-45de-97b2-42a61f8db6d0' } 2021-04-27T13:43:44.733Z INFO webdriver: COMMAND getElementText("548e3a9e-af16-45de-97b2-42a61f8db6d0") 2021-04-27T13:43:44.733Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/548e3a9e-af16-45de-97b2-42a61f8db6d0/text 2021-04-27T13:43:44.752Z INFO webdriver: RESULT Olá, bem-vindo ao bot de testes de QA do altu. O que deseja testar hoje? 2021-04-27T13:43:44.754Z INFO webdriver: COMMAND findElementFromElement("07e05b8c-b476-4767-a5d3-129e741dae8a", "xpath", ".//[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]") 2021-04-27T13:43:44.754Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/07e05b8c-b476-4767-a5d3-129e741dae8a/element 2021-04-27T13:43:44.754Z INFO webdriver: DATA { using: 'xpath', value: './/[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]' } 2021-04-27T13:43:44.799Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': '6ced65ef-13cd-4c80-bdc3-eee3f9ffe344', ELEMENT: '6ced65ef-13cd-4c80-bdc3-eee3f9ffe344' } 2021-04-27T13:43:44.807Z INFO webdriver: COMMAND getElementText("6ced65ef-13cd-4c80-bdc3-eee3f9ffe344") 2021-04-27T13:43:44.808Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/6ced65ef-13cd-4c80-bdc3-eee3f9ffe344/text 2021-04-27T13:43:44.837Z INFO webdriver: RESULT Olá, bem-vindo ao bot de testes de QA do altu. O que deseja testar hoje? 2021-04-27T13:43:44.847Z INFO webdriver: COMMAND findElement("xpath", "//[@resource-id="com.whatsapp:id/entry"]") 2021-04-27T13:43:44.849Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element 2021-04-27T13:43:44.849Z INFO webdriver: DATA { using: 'xpath', value: '//[@resource-id="com.whatsapp:id/entry"]' } 2021-04-27T13:43:44.914Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': '4e530121-83e1-49f2-87d1-d9e1afaaf8fa', ELEMENT: '4e530121-83e1-49f2-87d1-d9e1afaaf8fa' } 2021-04-27T13:43:44.918Z INFO webdriver: COMMAND isElementEnabled("4e530121-83e1-49f2-87d1-d9e1afaaf8fa") 2021-04-27T13:43:44.919Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/4e530121-83e1-49f2-87d1-d9e1afaaf8fa/enabled 2021-04-27T13:43:44.931Z INFO webdriver: RESULT true 2021-04-27T13:43:44.932Z INFO webdriver: COMMAND elementClear("4e530121-83e1-49f2-87d1-d9e1afaaf8fa") 2021-04-27T13:43:44.932Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/4e530121-83e1-49f2-87d1-d9e1afaaf8fa/clear 2021-04-27T13:43:44.949Z INFO webdriver: COMMAND elementSendKeys("4e530121-83e1-49f2-87d1-d9e1afaaf8fa", "acesso") 2021-04-27T13:43:44.949Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/4e530121-83e1-49f2-87d1-d9e1afaaf8fa/value 2021-04-27T13:43:44.949Z INFO webdriver: DATA { text: 'acesso' } 2021-04-27T13:43:46.013Z INFO webdriver: COMMAND findElement("xpath", "//[@resource-id="com.whatsapp:id/send"]") 2021-04-27T13:43:46.013Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element 2021-04-27T13:43:46.014Z INFO webdriver: DATA { using: 'xpath', value: '//[@resource-id="com.whatsapp:id/send"]' } 2021-04-27T13:43:46.346Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': '9b62eb8d-3dfc-4631-ad83-c1d8e19d5878', ELEMENT: '9b62eb8d-3dfc-4631-ad83-c1d8e19d5878' } 2021-04-27T13:43:46.349Z INFO webdriver: COMMAND isElementEnabled("9b62eb8d-3dfc-4631-ad83-c1d8e19d5878") 2021-04-27T13:43:46.349Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/9b62eb8d-3dfc-4631-ad83-c1d8e19d5878/enabled 2021-04-27T13:43:46.827Z INFO webdriver: RESULT true 2021-04-27T13:43:46.828Z INFO webdriver: COMMAND elementClick("9b62eb8d-3dfc-4631-ad83-c1d8e19d5878") 2021-04-27T13:43:46.829Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/9b62eb8d-3dfc-4631-ad83-c1d8e19d5878/click 2021-04-27T13:43:48.911Z INFO webdriver: COMMAND findElements("xpath", "//[(@resource-id="com.whatsapp:id/conversation_text_row" or @resource-id="com.whatsapp:id/text_and_date") and not(descendant::[@resource-id="com.whatsapp:id/status"])]") 2021-04-27T13:43:48.912Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/elements 2021-04-27T13:43:48.916Z INFO webdriver: DATA { using: 'xpath', value: '//[(@resource-id="com.whatsapp:id/conversation_text_row" or @resource-id="com.whatsapp:id/text_and_date") and not(descendant::[@resource-id="com.whatsapp:id/status"])]' } 2021-04-27T13:43:49.360Z INFO webdriver: RESULT [ { 'element-6066-11e4-a52e-4f735466cecf': '1cdf5676-55a9-4a59-8d2e-0607bf9a9b37', ELEMENT: '1cdf5676-55a9-4a59-8d2e-0607bf9a9b37' }, { 'element-6066-11e4-a52e-4f735466cecf': 'c68749e5-ebb5-4047-9a3f-7d86796def07', ELEMENT: 'c68749e5-ebb5-4047-9a3f-7d86796def07' } ] 2021-04-27T13:43:49.366Z INFO webdriver: COMMAND findElementFromElement("1cdf5676-55a9-4a59-8d2e-0607bf9a9b37", "xpath", ".//[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]") 2021-04-27T13:43:49.367Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/1cdf5676-55a9-4a59-8d2e-0607bf9a9b37/element 2021-04-27T13:43:49.367Z INFO webdriver: DATA { using: 'xpath', value: './/[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]' } 2021-04-27T13:43:49.386Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': 'ebf73d41-ef03-4e59-8016-a3614b1a9747', ELEMENT: 'ebf73d41-ef03-4e59-8016-a3614b1a9747' } 2021-04-27T13:43:49.390Z INFO webdriver: COMMAND getElementText("ebf73d41-ef03-4e59-8016-a3614b1a9747") 2021-04-27T13:43:49.390Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/ebf73d41-ef03-4e59-8016-a3614b1a9747/text 2021-04-27T13:43:49.401Z INFO webdriver: RESULT Olá, bem-vindo ao bot de testes de QA do altu. O que deseja testar hoje? 2021-04-27T13:43:49.402Z INFO webdriver: COMMAND findElementFromElement("c68749e5-ebb5-4047-9a3f-7d86796def07", "xpath", ".//[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]") 2021-04-27T13:43:49.402Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/c68749e5-ebb5-4047-9a3f-7d86796def07/element 2021-04-27T13:43:49.402Z INFO webdriver: DATA { using: 'xpath', value: './/[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]' } 2021-04-27T13:43:49.421Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': '820272c0-00b3-44fd-8425-c3afafa7abf4', ELEMENT: '820272c0-00b3-44fd-8425-c3afafa7abf4' } 2021-04-27T13:43:49.426Z INFO webdriver: COMMAND getElementText("820272c0-00b3-44fd-8425-c3afafa7abf4") 2021-04-27T13:43:49.426Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/820272c0-00b3-44fd-8425-c3afafa7abf4/text 2021-04-27T13:43:49.446Z INFO webdriver: RESULT Caso você esteja lendo isto, o bot está respondendo corretamente. 2021-04-27T13:43:49.446Z INFO webdriver: COMMAND findElementFromElement("c68749e5-ebb5-4047-9a3f-7d86796def07", "xpath", ".//[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]") 2021-04-27T13:43:49.447Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/c68749e5-ebb5-4047-9a3f-7d86796def07/element 2021-04-27T13:43:49.447Z INFO webdriver: DATA { using: 'xpath', value: './/[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]' } 2021-04-27T13:43:49.468Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': '3f3ea354-d3cd-4034-b61c-cf7852bb8e05', ELEMENT: '3f3ea354-d3cd-4034-b61c-cf7852bb8e05' } 2021-04-27T13:43:49.474Z INFO webdriver: COMMAND getElementText("3f3ea354-d3cd-4034-b61c-cf7852bb8e05") 2021-04-27T13:43:49.474Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/3f3ea354-d3cd-4034-b61c-cf7852bb8e05/text 2021-04-27T13:43:49.487Z INFO webdriver: RESULT Caso você esteja lendo isto, o bot está respondendo corretamente. 2021-04-27T13:43:50.491Z INFO webdriver: COMMAND findElements("xpath", "//[(@resource-id="com.whatsapp:id/conversation_text_row" or @resource-id="com.whatsapp:id/text_and_date") and not(descendant::[@resource-id="com.whatsapp:id/status"])]") 2021-04-27T13:43:50.491Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/elements 2021-04-27T13:43:50.491Z INFO webdriver: DATA { using: 'xpath', value: '//[(@resource-id="com.whatsapp:id/conversation_text_row" or @resource-id="com.whatsapp:id/text_and_date") and not(descendant::[@resource-id="com.whatsapp:id/status"])]' } 2021-04-27T13:43:50.553Z INFO webdriver: RESULT [ { 'element-6066-11e4-a52e-4f735466cecf': '5a0a331f-feb7-4fee-8b4d-a998a9581353', ELEMENT: '5a0a331f-feb7-4fee-8b4d-a998a9581353' }, { 'element-6066-11e4-a52e-4f735466cecf': '81109303-188a-4f98-b43a-a38b02da2d92', ELEMENT: '81109303-188a-4f98-b43a-a38b02da2d92' }, { 'element-6066-11e4-a52e-4f735466cecf': '27c76852-dd32-4624-9b7a-46322d5fbbdd', ELEMENT: '27c76852-dd32-4624-9b7a-46322d5fbbdd' } ] 2021-04-27T13:43:50.562Z INFO webdriver: COMMAND findElementFromElement("5a0a331f-feb7-4fee-8b4d-a998a9581353", "xpath", ".//[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]") 2021-04-27T13:43:50.562Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/5a0a331f-feb7-4fee-8b4d-a998a9581353/element 2021-04-27T13:43:50.562Z INFO webdriver: DATA { using: 'xpath', value: './/[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]' } 2021-04-27T13:43:50.585Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': 'fa9e1d7e-cf6e-4e59-80fa-d5cac2e45f82', ELEMENT: 'fa9e1d7e-cf6e-4e59-80fa-d5cac2e45f82' } 2021-04-27T13:43:50.592Z INFO webdriver: COMMAND getElementText("fa9e1d7e-cf6e-4e59-80fa-d5cac2e45f82") 2021-04-27T13:43:50.592Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/fa9e1d7e-cf6e-4e59-80fa-d5cac2e45f82/text 2021-04-27T13:43:50.604Z INFO webdriver: RESULT Olá, bem-vindo ao bot de testes de QA do altu. O que deseja testar hoje? 2021-04-27T13:43:50.605Z INFO webdriver: COMMAND findElementFromElement("81109303-188a-4f98-b43a-a38b02da2d92", "xpath", ".//[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]") 2021-04-27T13:43:50.605Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/81109303-188a-4f98-b43a-a38b02da2d92/element 2021-04-27T13:43:50.605Z INFO webdriver: DATA { using: 'xpath', value: './/[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]' } 2021-04-27T13:43:50.629Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': '11684193-35fa-45a3-92c6-04e2b5e48b1e', ELEMENT: '11684193-35fa-45a3-92c6-04e2b5e48b1e' } 2021-04-27T13:43:50.635Z INFO webdriver: COMMAND getElementText("11684193-35fa-45a3-92c6-04e2b5e48b1e") 2021-04-27T13:43:50.635Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/11684193-35fa-45a3-92c6-04e2b5e48b1e/text 2021-04-27T13:43:50.649Z INFO webdriver: RESULT Caso você esteja lendo isto, o bot está respondendo corretamente. 2021-04-27T13:43:50.649Z INFO webdriver: COMMAND findElementFromElement("27c76852-dd32-4624-9b7a-46322d5fbbdd", "xpath", ".//[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]") 2021-04-27T13:43:50.649Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/27c76852-dd32-4624-9b7a-46322d5fbbdd/element 2021-04-27T13:43:50.649Z INFO webdriver: DATA { using: 'xpath', value: './/[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]' } 2021-04-27T13:43:50.670Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': '0deef326-3a2b-4089-96c8-8bb777a70372', ELEMENT: '0deef326-3a2b-4089-96c8-8bb777a70372' } 2021-04-27T13:43:50.677Z INFO webdriver: COMMAND getElementText("0deef326-3a2b-4089-96c8-8bb777a70372") 2021-04-27T13:43:50.677Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/0deef326-3a2b-4089-96c8-8bb777a70372/text 2021-04-27T13:43:50.699Z INFO webdriver: RESULT Seu input foi: acesso 2021-04-27T13:43:50.699Z INFO webdriver: COMMAND findElementFromElement("27c76852-dd32-4624-9b7a-46322d5fbbdd", "xpath", ".//[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]") 2021-04-27T13:43:50.700Z INFO webdriver: [POST] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/27c76852-dd32-4624-9b7a-46322d5fbbdd/element 2021-04-27T13:43:50.700Z INFO webdriver: DATA { using: 'xpath', value: './/[(@resource-id="com.whatsapp:id/message_text" or @resource-id="com.whatsapp:id/caption")]' } 2021-04-27T13:43:51.375Z INFO webdriver: RESULT { 'element-6066-11e4-a52e-4f735466cecf': 'd86925ce-bff1-448c-87be-8394cb58d1f0', ELEMENT: 'd86925ce-bff1-448c-87be-8394cb58d1f0' } 2021-04-27T13:43:51.387Z INFO webdriver: COMMAND getElementText("d86925ce-bff1-448c-87be-8394cb58d1f0") 2021-04-27T13:43:51.387Z INFO webdriver: [GET] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf/element/d86925ce-bff1-448c-87be-8394cb58d1f0/text 2021-04-27T13:43:51.424Z INFO webdriver: RESULT Continuar? 1) acesso 2021-04-27T13:43:51.451Z INFO webdriver: COMMAND deleteSession() 2021-04-27T13:43:51.452Z INFO webdriver: [DELETE] http://127.0.0.1:4723/wd/hub/session/2ae5d82c-6977-4831-b0c2-9499aae48dbf

0 passing (37s) 1 failing

1) Botium Test-Suite acesso: Error: acesso/Line 15: Bot response (on Line 9: #me - acesso) "Continuar?" expected to match "Seu input foi: acesso" ######################################## ASSERTION FAILED in TextMatchAsserter - Expected: ["Seu input foi: acesso"] - Actual: "Continuar?" INPUT: acesso ------------ TRANSCRIPT ----------------------------

me: Oi

bot: Olá, bem-vindo ao bot de testes de QA do altu. O que deseja testar hoje?

me: acesso

bot: Caso você esteja lendo isto, o bot está respondendo corretamente.

bot: Continuar?

  at wrapBotiumError (node_modules/botium-cli/src/run/index.js:76:12)
  at finish (node_modules/botium-cli/src/run/index.js:205:24)
  at /home/btlucas/github/Testes/demo-botium/node_modules/botium-cli/src/run/index.js:218:11
  at processTicksAndRejections (internal/process/task_queues.js:97:5)
codeforequity-at commented 3 years ago

Replaced Appium selectors with XPath queries - is now faster, and it hopefully solves your issue.

btlucas commented 3 years ago

It's working like a charm now. Thank you!