Unable to use comma separated parameter value in DataunctionHandler #336
-
We are using DataFunctionHandler concept to prepare request body with dynamic values for some keys. In some of the scenarios value of specific key is comma separated Example of Sample handler handler.addDataFuncHandler(’SamplePayLoad', (ctx) => {
const source = ctx.args[0];
console.log("*********************",source)
const basePayload = {
source: ctx.args[4],
};
return basePayload;
}); Value being passed for source while calling data function handler in actual test is A,B this combined value is needed for source however currently it is splitting it between 2 different parameters and hence value for source is appearing as only A Can someone help in clarifying if is there any way to tackle this issue? |
Beta Was this translation helpful? Give feedback.
Answered by
leelaprasadv
Apr 3, 2024
Replies: 1 comment
-
Replied in |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ASaiAnudeep
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Replied in
#337 (comment)