Run registry file on Web VM using DCS

Sometimes there is a need to perform registry changes before starting Web Automation session

Solution

This can be achieved using the desktop-web customization service.

There is a ready script pm-install-reg.yml available for all clouds which is executing registry file.

The registry file currently need to be uploaded to the cloud by Perfecto Support.

Copy
Map<String, Object> resourceArgs = new HashMap<>();
resourceArgs.put("timeout", 120);
String[] regfiles =  new String[]{"File1.reg","File2.reg"};
resourceArgs.put("fileslist", regfiles);
capabilities.setCapability("customizationScript", "pm-install-reg.yml");
capabilities.setCapability("customizationScriptArgs", resourceArgs);