codeforequity-at / codeforequity-at/botium-core

Capability with number given as string type is updated to a different number

Open
#831 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
251
Forks
70
Avg merge
3h 37m
Merged PRs (30d)
7

Description

**Describe the bug**
Any Capability with a value of long number more than 16 digits in string format is updated to a different number.

**To Reproduce**
1. Install botium-cli and botium-connector-fbwebhook
2. Clone the botium-connector-fbwebhook repo and start the sample botkit server
3. Use the following given botium.json
4. Start the emulator in verbose mode using `botium-cli emulator -v`
5. Send a message and observer the payload that the emulator sent. The `sender.id` would be of different number than what we have set in the botium.json

```js botium.json
{
"botium": {
"Capabilities": {
"PROJECTNAME": "Facebook Tests",
"CONTAINERMODE": "fbwebhook",
"FBWEBHOOK_WEBHOOKURL": "http://127.0.0.1:3000/api/messages",
"FBWEBHOOK_PAGEID": "123456",
"FBWEBHOOK_APPSECRET": "mysecret",
"SIMPLEREST_INBOUND_PORT": 45100,
"SCRIPTING_MATCHING_MODE": "equals",
"FBWEBHOOK_USERID": "1234567892343434344"
}
}
}
```

**Expected behavior**
The payload sent should have same sender.id that we set using `FBWEBHOOK_USERID` in the botium.json

**Screenshots and Log files**
botium-cli emulator logs:
[log.txt](https://github.com/user-attachments/files/23261762/log.txt)

**Botium Flavour:**
- Botium Box ?
- Botium CLI ? - Yes
- Botium Bindings ? - Yes

**Botium Version**
The bug exists in the latest version(1.15.6) of botium-core.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.