Generating Javascript embedded data in 'Generate test responses' | XM Community
Skip to main content

I have a javascript code in the beginning of the survey that randomly populates texts in my survey. The javascript code creates a variable which I include as an embedded data in the survey flow. This allows my survey to call the embedded data from the ‘Piped Text’ while randomly generating the values that a respondent observes. 

I’d like to generate test responses to make sure that my javascript code is working as expected but none of the javascript-dependent embedded data do not get generated when I try the ‘generate test responses’ in Survey > Tools. But when I do a preview and manually fill in responses, the results records the javascript-dependent embedded data successfully. The issue is that, I’d like to generate 100+ test responses and I cannot manually fill in the previews this many times. 

I understand there was a conversation about this about a year ago: 

where someone suggested manually filling in the previews via Selenium. I tried but keeps running into different errors. 

I’m hoping someone has an alternative solution to this?

 

Thanks!

Diana

Be the first to reply!

Leave a Reply