I am using protractor for e2e testing, and I am new to protractor. I am testing a specific library for different scenarios, and for all of those scenarios I need to create a test page. I am thinking of automating that process. My question is: Is there a possibility to inject different permutations of a script to create all of my test pages automatically?
Example:
I want to comment and uncomment the flexible codes for different test pages and create all the permutations possible as: 1)comment both codes(00), 2)comment code1and uncomment code2 (01)), 3)uncomment code1 and comment code2e (10), 4) uncomment both of them (11). I also have different div templates that I want them to exists and not exists in each page in a way that covers all the permutations of their existence together.
<!DOCTYPE HTML>
<html lang="en-us">
<head>
<script>
fixed statement;
//flexible code1;
flexible code2;
</script>
</head>
<body>
<div id="div1">
<script>
fixed code;
flexible code3;
flexible code4;
</script>
</div>
</body>
</html>