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 tests - Loading botium plugin failed #152

Closed LacikIgor closed 5 years ago

LacikIgor commented 5 years ago

Hi,

I posted the same issue on stack overflow.

I am attempting to test against watson assistant following the wiki.

Running:

Step by step what I did:

enter image description here

Where this is my package.json:

{
  "name": "botium",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "emulator": "botium-cli emulator console --convos ./spec/convos --config ./botium.json",
    "emulatorBrowser": "botium-cli emulator browser --convos ./spec/convos --config ./botium.json"
  },
  "author": "",
  "license": "ISC"
}

And this is my botium.json:

{
    "botium": {
      "Capabilities": {
        "PROJECTNAME": "botium-sample1",
        "CONTAINERMODE": "watsonconversation",
        "WATSON_URL": "https://gateway-fra.watsonplatform.net/assistant/api",
        "WATSON_USER": "<WATSON_USER_ID>",
        "WATSON_PASSWORD": "<WATSON_PASSWORD",
        "WATSON_WORKSPACE_ID": "<WATSON_WORKSPACE_ID>"
      },
      "Sources": {},
      "Envs": {
        "NODE_TLS_REJECT_UNAUTHORIZED": 0
      }
    }
}

Expected behavior:

As I execute npm run emulator I would expect botium to send the utterances specified in spec/convos/captain.convo.txt to watson and compare this against the specified test.

Actual behavior:

Error: Loading Botium plugin failed
    at Validate.Validate.then (/Users/user/workspace/testing/botium/node_modules/botium-cli/node_modules/botium-core/src/containers/PluginConnectorContainer.js:56:15)
    at <anonymous>
codeforequity-at commented 5 years ago

answered on stackoverflow.

vedeshkm commented 5 years ago

stackoverflow link please

ujja commented 5 years ago

it is in the question: stack overflow

See watson config here

vedeshkm commented 5 years ago

I am facing below issue while running botium-cli run. Please help

FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory 1: 00007FF71468121A v8::internal::GCIdleTimeHandler::GCIdleTimeHandler+4810 2: 00007FF71465A5B6 node::MakeCallback+4518 3: 00007FF71465AFA0 node_module_register+2160 4: 00007FF7148EB3EE v8::internal::FatalProcessOutOfMemory+846 5: 00007FF7148EB31F v8::internal::FatalProcessOutOfMemory+639 6: 00007FF714E29304 v8::internal::Heap::MaxHeapGrowingFactor+11476 7: 00007FF714E1FA67 v8::internal::ScavengeJob::operator=+25543 8: 00007FF714E1DFDC v8::internal::ScavengeJob::operator=+18748 9: 00007FF714E26F57 v8::internal::Heap::MaxHeapGrowingFactor+2343 10: 00007FF714E26FD6 v8::internal::Heap::MaxHeapGrowingFactor+2470 11: 00007FF7149C9DD7 v8::internal::Factory::NewFillerObject+55 12: 00007FF714A61ABA v8::internal::WasmJs::Install+29530 13: 0000036E448DC5C1

I tried several methods to increase heap size. below are heap memory details.

{ total_heap_size: 9682944, total_heap_size_executable: 1048576, total_physical_size: 9682944, total_available_size: 1518467488, used_heap_size: 5384736, heap_size_limit: 1526909922, malloced_memory: 8192, peak_malloced_memory: 890096, does_zap_garbage: 0 }

codeforequity-at commented 5 years ago

@vedeshkm please open a seperate issue.

vedeshkm commented 5 years ago

@codeforequity-at opened new issue - https://github.com/codeforequity-at/botium-core/issues/187. Please help