Ask a Question

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

sonya_m
SmartBear Alumni (Retired)

[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:

 

78b3e417-1bab-424b-a1bd-21a752807f1d.png

 

 

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:

 

 

{
"feild1":"IT",
"feild2":" accepted",
"feild3":"Test_accepted",
"feild4":"000-111-222",
"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

0 REPLIES 0
cancel
Showing results for 
Search instead for 
Did you mean: