artillery icon indicating copy to clipboard operation
artillery copied to clipboard

Websocket responses support

Open SamDecrock opened this issue 8 years ago • 7 comments

Hi,

I'm looking for a way to implement websocket message testing. Other than JMeter I can't find any testing tool.

Do you have an estimate as to when websocket response parsing/checking will be implemented?

Thanks, Sam

SamDecrock avatar Dec 07 '16 14:12 SamDecrock

Not planned for a specific release at this point, but PRs are always welcome. :)

Both HTTP and Socket.io engines have support for it - copying the relevant bits into the WebSocket engine should be pretty straightforward.

hassy avatar Dec 07 '16 15:12 hassy

In artillery-core and engine_socketio.js i change this lines and now callback works for me:

// No return data is expected, so emit without a listener
socketio.emit(outgoing.channel, outgoing.data, function(result){

	markEndTime(ee, context, startedAt);
      	return callback(null, context);
});

I forked artillery-core here by editing this

MosayebG avatar Dec 24 '16 11:12 MosayebG

What is the status here? Doesnt seem to be that straightforward if no one cares about for 2 years now..

What if we need to parse responses to ensure following calls can use these variables. Like a subscription id or something similar. Do I miss something here?

etwillbefine avatar Dec 17 '18 13:12 etwillbefine

Any updates on this?

I need to grab a unique value after the connection is made to make subsequent requests, for this I would need response parsing.

tarikki avatar Jun 11 '19 04:06 tarikki

Any update?

michyliao avatar Dec 06 '19 17:12 michyliao

check out #917

simonbuehler avatar May 12 '21 08:05 simonbuehler

Please help, I need this feature. I only want to get one emit back, from each emit I send.

eliezercazares avatar Jun 16 '22 02:06 eliezercazares