codeforequity-at / codeforequity-at/botium-cli

Persistent Error: "Loading Botium Plugin from none failed" even with CONTAINERMODE: "none"

Open
#47 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
31
Forks
11
PR merge metrics
No merged PRs in 30d

Description

Hi Botium team,

I'm encountering a persistent issue with Botium where I get the error "Loading Botium Plugin from none failed" even though I have CONTAINERMODE set to "none" in my botium.json file. I'm trying to use the SIMPLEREST connector with a mock server.

Steps to Reproduce:

Create a new project directory.
Create botium.json (contents attached below).
Create test.convo.txt (contents attached below).
Create mock-server.js (contents attached below).
Install express for the mock server: npm install express
Start the mock server: node mock-server.js
Run Botium: botium-cli run
Expected Behavior:

Botium should connect to the mock server and run the tests defined in test.convo.txt.

Actual Behavior:

Botium fails with the following error:

Error: Loading Botium Plugin failed.
Loading Botium plugin from none failed - Cannot find module 'none'
... (rest of the error message)
Environment:

OS: macOS version
Node.js: v23.7.0
npm: 10.9.2
Botium CLI: 1.1.0
Attachments:

botium.json:
{
"botium": {
"Capabilities": {
"PROJECTNAME": "TestBotium",
"CONTAINERMODE": "none",
"DIRECT_LINE_PROVIDER": "SIMPLEREST",
"SIMPLEREST_URL": "http://localhost:3001/api/v1/chat",
"SIMPLEREST_METHOD": "POST",
"SIMPLEREST_BODY_TEMPLATE": { "message": "{{msg.messageText}}" },
"SIMPLEREST_RESPONSE_JSONPATH": "$.botReply"
},
"Sources": [
{
"name": "TestBotium",
"connector": "SIMPLEREST",
"providerUrl": "http://localhost:3001/api/v1/chat"
}
],
"ConvoFiles": [
"./*.convo.txt"
]
}
}
test.convo.txt:

#begin test
me: hello
bot: Mock Bot: hello
me: how are you?
bot: Mock Bot: how are you?
#end

mock-server.js:

const express = require('express');
const app = express();
const port = process.env.PORT || 3001; // Make sure this port matches botium.json

app.use(express.json());

app.post('/api/v1/chat', (req, res) => {
const userMessage = req.body.message;
const response = {
"botReply": `Mock Bot: ${userMessage}`
};
res.json(response);
});

app.listen(port, () => {
console.log(`Mock server listening on port ${port}`);
});
~

Additional Information:

I have tried the following troubleshooting steps (list all the steps you've taken, including reinstalling, clearing the cache, checking permissions, etc.).
I have created a completely new project directory to rule out project-specific issues.
I'm using a mock server for testing.
Thank you for your help!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.