Load data from persistent variables to Array
Hi, I have a problem. Need with persistent variables where at the beginning of the test I generate data (for the test) insert two variables into an array.. variable is named assortmentName and assortmenCode. But the problem is that in the array is always stored an older value.. for example for the first run of the test the assortmentName is Banana and put into the array.. but when the test is run again so.. in the assortmentName is generated Strawberry but in the array is still Banana because it is stored there since the last run.. is there any way to refresh it in that array? I don't know what to do..
Thanks for any tips. I'm attaching the code from the field..
var setAssortment = [
{
id: 0,
erpID: [10],
name: Project.Variables.assortmentName,
code: Project.Variables.assortmentCode,
amount: [10],
unit: ["KS"],
optionCode: null,
},