Send Web request - empty response

Vojtech Kalab September 5, 2024

Hi there,

I have automation chain to trigger webhook and send message to teams, once test exeuction is created by our test automation.

The problem is, sometimes it post message saying test execution has 0 test, 0 passed and 0 failed, but once you open test execution, you can see it has tests inside.

In my chain i try to get these information sending http request to xray api.

I also check option with delay.

Not sure why is response empty, we are talking about 30-40% fail rate so it is not rare.


request.jpg

2 answers

0 votes
Manuel
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 3, 2024

Hi @Vojtech Kalab ,

this seems to be a timing issue. Test automation results can take a bit to process on test management tools, and also in Xray. It depends on the size of the test report you are submitting. I would adding a delay, like a 30 seconds delay or so as that information doesn't need to be received in real-time, in strict sense speaking.

As a side comment, not sure if you have seen but there's a tutorial with examples detailing an integration between Xray and MS Teams.

Vojtech Kalab November 3, 2024

Hi Manuel,

Yes, i used this tutorial when i create our automation chain.

IT is likely that dealy was on Xray site.
However somehow... problem do not occure anymore.

Like Manuel likes this
0 votes
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 6, 2024

@Vojtech Kalab We are using the "Send web request" action in production automation and never had problems with empty responses. Therefore, I think, your problem is rooted in the Xray API, not in this automation component.

You may want to create a little script that calls the Xray API repeatedly, and if you can reproduce the problem, you can send the script to the Xray team to reproduce (and fix) the defect.

Vojtech Kalab September 8, 2024

Hi @Aron Gombas _Midori_ ,
ok thanks for tip. I'll give it a try.

Like Aron Gombas _Midori_ likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events