codeforequity-at / codeforequity-at/botium-cli
Persistent Error: "Loading Botium Plugin from none failed" even with CONTAINERMODE: "none"
- Lenguaje dominante
- JavaScript
- Estrellas
- 31
- Forks
- 11
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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!
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Reproduce el fallo con botium.json, test.convo.txt y mock-server.js iniciando el servidor Express y ejecutando botium-cli run. Comprueba cómo se interpretan los ajustes CONTAINERMODE y SIMPLEREST; se considera terminado cuando se llega al servidor simulado y las pruebas de conversación pasan sin el error "Loading Botium Plugin from none".
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- express, javascript, node.js
- Área
- cli, testing-qa
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100