Showing results for 
Search instead for 
Did you mean: 

[TechCorner Challenge #17] Get a full Raw JMS request

Community Manager

[TechCorner Challenge #17] Get a full Raw JMS request

Hello Сommunity!

Check out this new TechCorener task!

Participation rules and the TechCorner Leaderboard can be found here.


When sending long JMS messages, they might be shown truncated on the Raw Request and Response tabs in ReadyAPI:





Task: Write a script for RequestFilter.filterRequest event handler to get the full Raw JMS Request message.

Difficulty: Star_Gold.pngStar_Gold.pngStar_gray.png



Here is a sample of a JMS body:



"feild2":" accepted",
"feild5":" data3",
"feild6": " data4",
"feild7": " data5"



Best of luck, friends!😊



A tip:


You should be able to get a full response using this piece of code:
def request  = testRunner.getTestCase().getTestStepByName("JMS_TestSTep_Name").getRequestStep().getTestRequest()
def fullJmsMessage = request.getResponse().getMessageReceive().getText()


Sonya Mihaljova
Community and Education Specialist

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Tags (1)
New Here?
Join us and watch the welcome video:
Top Kudoed Authors