medtoure18 / codeceptjs-xray-helper

A Codeceptjs helper which can publish tests results on Xray api
1 stars 2 forks source link

TypeError: Cannot read properties of undefined (reading 'split') - Codecept with Xray #14

Open MariaAvramescu26 opened 8 months ago

MariaAvramescu26 commented 8 months ago

Trying to connect codeceptjs with Xray by using your plugin. There is an error. Can you please help me out? Thank you

Error processing global.after event: TypeError: Cannot read properties of undefined (reading 'split') at flp-end-to-end-front\node_modules\codeceptjs-xray-helper\index.js:114:77 at Array.forEach () at EventEmitter. (flp-end-to-end-front\node_modules\codeceptjs-xray-helper\index.js:109:26) at EventEmitter.emit (node:events:514:28) at Object.emit (flp-end-to-end-front\node_modules\codeceptjs\lib\event.js:145:28) at done (Cflp-end-to-end-front\node_modules\codeceptjs\lib\codecept.js:188:15)

medtoure18 commented 8 months ago

Hi Maria, It's been 3 years since i worked last time on codeceptjs. Maybe the new version of codeceptjs is not Compatible with the helper anymore. Are you on jira server or jira cloud? This helper is only Compatible with jira server. Otherwise you can check the file node_modules\codeceptjs-xray-helper\index.js on line 114. Its seems an object is undifined there

MariaAvramescu26 commented 8 months ago

Dear medtoure,

Thank you for your prompt response.

Adding the node_modules directory to the remote repository is generally discouraged due to its large size and the potential for version conflicts. Instead, it's recommended to exclude it from version control and have developers install dependencies locally using the npm install or yarn install commands.

I understand that it has been some time since you last worked on CodeceptJS, and I respect your expertise. Considering the error I encountered, would it be possible for you to update the plugin to ensure compatibility with the latest version of CodeceptJS? This would greatly help in maintaining a clean and efficient development environment for all users.

Thank you again for your assistance. I look forward to your guidance on resolving this matter.

Best regards, Maria

medtoure18 commented 8 months ago

Sorry but i dont have time to work on it anymore. But if you fix it on your side i will accept your PR. And release a new version. So you will not have to add your not module to your project. Other wise you can also clone the project on a github project of your own and publish it as a new npm library

MariaAvramescu26 commented 7 months ago

Hello, I'm currently facing issues pushing changes to your repository in another branch. It seems I'm encountering a permission error (403). Do you have an alternative communication method we can use to ease up the process?

Thank you, Med!

medtoure18 commented 7 months ago

Hi Maria, I gave the rights on the project. Now you can create your own branch. Have a great day,

MariaAvramescu26 commented 7 months ago

I still do not manage..

remote: Permission to medtoure18/codeceptjs-xray-helper.git denied to MariaAvramescu26.
fatal: unable to access 'https://github.com/medtoure18/codeceptjs-xray-helper.git/': The requested URL returned error: 403
medtoure18 commented 7 months ago

You did not accept my github invitation. This is my email to ease the process : mohamed.toure.obs@gmail.com

MariaAvramescu26 commented 7 months ago

Now the split of undefined is showing up on a different line, but not when I point to the index.js, just when I use the beta version. Very strange, I will anyways have a look , thank you