Blazemeter / hubot-blazemeter

A hubot script for blazemeter integration
3 stars 1 forks source link

Test listing, Test run command not working #3

Open SanjuTechie87 opened 4 years ago

SanjuTechie87 commented 4 years ago

Hi Gilad, Again thanks much for the fix . Now I am able to login . In response to hubot bm whoami command I am getting back Shell: Successfully checked in with https://a.blazemeter.com. But now the issue is no other commands are working like :

hubot bm list (tests|collections|masters|sessions) hubot bm list running (tests|collections|masters|sessions) hubot bm run test

The first two commands returning nothing. hubot bm run test - this one returning the below:

Shell: Launching test 6940042. This might take a while... Shell: Got 404: Not Found

whereas I have one test in Blazemeter with id 6940042. Again require your kind help. Thanks a lot.

pgilad commented 4 years ago

This is going to be much harder to fix. First I updated the api to use v4 version of BlazeMeter's api. (https://github.com/Blazemeter/hubot-blazemeter/commit/0e4a23a3e1524ba90904632d172cc2125305dca5) - this could fix the test run issue you experienced.

The main problem is that now listing all entities require a context (i.e - an account/workspace/project id). This will require a much deeper change in hubot to store the working active entity. Feel free to add a PR if you wish, it might take a while to get to implement this. Overall we aren't actively maintaining this repository

SanjuTechie87 commented 4 years ago

Thanks Gilad, I am trying to modify whatever I can . Just one query. even after changing it to v4( url: "#{env}/api/v4/#{route}) , I am still getting 404 when trying to run a test. any idea?