Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use value in config.js file #260

Open
Walter52abc opened this issue Nov 24, 2020 · 1 comment
Open

how to use value in config.js file #260

Walter52abc opened this issue Nov 24, 2020 · 1 comment
Labels
question Further information is requested

Comments

@Walter52abc
Copy link

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

@maximnaidenov
Copy link
Contributor

No need to load conf.js manually, please check here: https://github.com/SAP/ui5-uiveri5/blob/master/docs/config/parameters.md

@tsaleksandrova tsaleksandrova added the question Further information is requested label Dec 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants