Open RAMKI14 opened 1 year ago
Hi,
I have installed cypress-dotenv and followed the instructions, still not working. Implementing this in cypress, cucumber-bdd, with the page object model.
Added below code in the cypress.config.js const dotenvPlugin = require("cypress-dotenv"); module.exports = (on, config) => { config = dotenvPlugin(config); return config; };
const dotenvPlugin = require("cypress-dotenv"); module.exports = (on, config) => { config = dotenvPlugin(config); return config; };
Calling it in the test: cy.log(Cypress.env("CYPRESS_HELLO"));
cy.log(Cypress.env("CYPRESS_HELLO"));
But it is printing as below in the log-in test runner: log
Probably because it's developed for Cypress<10
Hi,
I have installed cypress-dotenv and followed the instructions, still not working. Implementing this in cypress, cucumber-bdd, with the page object model.
Added below code in the cypress.config.js
const dotenvPlugin = require("cypress-dotenv"); module.exports = (on, config) => { config = dotenvPlugin(config); return config; };
Calling it in the test:
cy.log(Cypress.env("CYPRESS_HELLO"));
But it is printing as below in the log-in test runner: log