ui5-uiveri5
ui5-uiveri5 copied to clipboard
how to use value in config.js file
Hi experts,
Here is the scenario:
I am using a .bat file to run uiveri5,
uiveri5 --params.appHost=https://grcpcrmcontrollibrary-mpstandalone-manualprocedures-srv.cfapps.sap.hana.ondemand.com -- --params.spec=./test.spec.js ../conf_local.js
I want to use the value of params.appHost in a spec. and load the conf.js file like below:
let oConf = require('../conf.js');
However, I only get string like '${params.appHost}' in the spec file. what I want is the value of this parameter from .bat file. Is there any way to achieve this.
Best Regards, walter
No need to load conf.js manually, please check here: https://github.com/SAP/ui5-uiveri5/blob/master/docs/config/parameters.md