{"ScriptPreparationCode":" var elem = document.getElementById(\u0027element\u0027);\r\nfunction getRandomInt(max) {\r\n return Math.floor(Math.random() * Math.floor(max));\r\n}","TestCases":[{"Name":"setProperty Single Random Value","Code":"\telem.style.setProperty(\u0027width\u0027, getRandomInt(500) \u002B \u0027px\u0027);\r\n elem.style.setProperty(\u0027height\u0027, \u002750px\u0027);\r\n elem.style.setProperty(\u0027top\u0027, \u002740px\u0027);\r\n elem.style.setProperty(\u0027left\u0027, \u002790px\u0027);","IsDeferred":false},{"Name":"setProperty All Random Values","Code":"\telem.style.setProperty(\u0027width\u0027, getRandomInt(500) \u002B \u0027px\u0027);\r\n elem.style.setProperty(\u0027height\u0027, getRandomInt(50) \u002B \u0027px\u0027);\r\n elem.style.setProperty(\u0027top\u0027, getRandomInt(40) \u002B \u0027px\u0027);\r\n elem.style.setProperty(\u0027left\u0027, getRandomInt(90) \u002B \u0027px\u0027);","IsDeferred":false},{"Name":"setAttribute Fixed Values","Code":"elem.setAttribute(\u0027style\u0027,\u0027width:500px;height:50px;top:40px;left:90px;\u0027);","IsDeferred":false},{"Name":"setAttribute Single Random Value","Code":"elem.setAttribute(\u0027style\u0027,\u0027width:\u0027 \u002B getRandomInt(500) \u002B \u0027px;height:50px;top:40px;left:90px;\u0027);","IsDeferred":false},{"Name":"setAttributey All Random Values","Code":"elem.setAttribute(\u0027style\u0027,\u0027width:\u0027 \u002B getRandomInt(500) \u002B \u0027px;height:\u0027 \u002B getRandomInt(50) \u002B \u0027px;top:\u0027 \u002B getRandomInt(40) \u002B \u0027px;left:\u0027 \u002B getRandomInt(90) \u002B \u0027px;\u0027);","IsDeferred":false},{"Name":"Style by name Fixed Values","Code":"\telem.style[\u0027width\u0027] = \u0027500px\u0027;\r\n elem.style[\u0027height\u0027] = \u002750px\u0027;\r\n elem.style[\u0027top\u0027] = \u002740px\u0027;\r\n elem.style[\u0027left\u0027] = \u002790px\u0027;\r\n","IsDeferred":false},{"Name":"Style by name Single Random Value","Code":"\telem.style[\u0027width\u0027] = getRandomInt(500) \u002B \u0027px\u0027;\r\n elem.style[\u0027height\u0027] = \u002750px\u0027;\r\n elem.style[\u0027top\u0027] = \u002740px\u0027;\r\n elem.style[\u0027left\u0027] = \u002790px\u0027;\r\n","IsDeferred":false},{"Name":"Style by name All Random Values","Code":"\telem.style[\u0027width\u0027] = getRandomInt(500) \u002B \u0027px\u0027;\r\n elem.style[\u0027height\u0027] = getRandomInt(50) \u002B \u0027px\u0027;\r\n elem.style[\u0027top\u0027] = getRandomInt(40) \u002B \u0027px\u0027;\r\n elem.style[\u0027left\u0027] = getRandomInt(90) \u002B \u0027px\u0027;\r\n","IsDeferred":false},{"Name":"Style by property Fixed Values","Code":"\telem.style.width = \u0027500px\u0027;\r\n elem.style.height = \u002750px\u0027;\r\n elem.style.top = \u002740px\u0027;\r\n elem.style.left = \u002790px\u0027;","IsDeferred":false},{"Name":"Style by property Single Random Value","Code":"\telem.style.width = getRandomInt(500) \u002B \u0027px\u0027;\r\n elem.style.height = \u002750px\u0027;\r\n elem.style.top = \u002740px\u0027;\r\n elem.style.left = \u002790px\u0027;","IsDeferred":false},{"Name":"Style by property All Random Values","Code":"\telem.style.width = getRandomInt(500) \u002B \u0027px\u0027;\r\n elem.style.height = getRandomInt(50) \u002B \u0027px\u0027;\r\n elem.style.top = getRandomInt(40) \u002B \u0027px\u0027;\r\n elem.style.left = getRandomInt(90) \u002B \u0027px\u0027;","IsDeferred":false}]}