I was trying to set profiles in cucumberOpts.
But, documentation is missing example for the same.
Please help me with the working example for the same.
WDIO, I assume WebDriverIO?
If so, I think you should look after them in order to get help. They have a community support available at https://gitter.im/webdriverio/webdriverio
Maybe their issue tracker may be relevant too: https://github.com/webdriverio/webdriverio/issues
If you think your question actually rely more on Cucumber than on WebdriverIO, could you give us more info about what you are trying to achieve, what did you tried, and how it actually failed?