Allure reporting | automatic generate html report | browser loading issue resolved | Part 2
HTML-код
- Опубликовано: 10 сен 2024
- #webdriverio_typescript_series #appium #typescript #automationtesting
#webautomation #mobiletesting #webdriverio
This video will explain on how to integrate Allure reporting | automatic generate html report | browser loading issue resolved | Part 2
Blog - qavalidation.c...
To setup appium, appium inspector, android and ios simulators, refer these following blog posts -
qavalidation.co...
qavalidation.c...
qavalidation.c...
qavalidation.c...
qavalidation.c...
qavalidation.c...
qavalidation.co...
qavalidation.co...
Full webdriverio playlist -
• WebdriverIO typescript...
Selenium java complete series -
bit.ly/qavbox-...
Subscribe to this channel -
bit.ly/youtube...
Blog posts -
qavalidation.com
Make me awake & feel fresh always, so I can bring lot's of interesting topics for you all, Buy me a coffee?
buymeacoffee.co...
Thank you for watching!
worked for me , Thanks!
In windows loading problem is not solved can u create a video for me how to solve loading problem in windows
.
It still didn’t resolve the loading issue for index.html file in my local machine folder.. it still runs on webServer only
Thank you!! I don't know why I am not able to open the html file still I can see Loading.... after doing your suggested setting chrome.exe --allow-file-access-from-file
Add this const generation = allure(['generate', '--single-file', 'allure-results', '--clean','-o','allure-report']) then it will create allure report with no issues in oncomplete hook up.
Can you specify how to do that?
@@filsinaginatyllina5619
onComplete: function() {
const reportError = new Error('Could not generate Allure report')
const generation = allure(['generate', '--single-file', 'allure-results', '--clean','-o','allure-report'])
return new Promise((resolve, reject) => {
const generationTimeout = setTimeout(
() => reject(reportError),
60 * 1000)
generation.on('exit', function(exitCode) {
clearTimeout(generationTimeout)
if (exitCode !== 0) {
return reject(reportError)
}
console.log('Allure report successfully generated')
resolve()
})
})
}
@@filsinaginatyllina5619 Please, let me know if you got the code.
Hi,
I am using window and I didn't find the Application folder path as mentioned in WebMO, So I have gone to Application folder from Program file
path - C:\Program Files\Google\Chrome\Application then I have run command from the terminal but still index.html file in my local machine folder is loaded.
So are you able to open the index html file or not?
@@qavbox I am able to open index.html file but still loading is displayed not actual content
Hi, I'm using wdio with appium for mobile automate. when i put "onComplete" to wdio.conf.ts I got error "require is not defined in ES module scope" idk how to fix it.
Can you try import statement instead of require ?
use import allure from "allure-commandline" and create a file in your project root folder named .d.ts and paste this declare module 'allure-commandline';
How to avoid this accessing local files option? if we want to automate. Each time i cannot be running chrome.exe --allow-file-access-from-files.
You have to use it once only, and then it will work forever.