You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
capabilities: [{// capabilities for local Appium web tests on an Android Emulator'appium:platformName': 'ios','appium:deviceName': 'iPhone 12','appium:platformVersion': '16.3.1','appium:automationName': 'XCUITest','appium:udid': '00008101-000221','appium:app': path.join(process.cwd(),'app/ios/'+'test.ipa'),'appium:appPackage': ApplicationConstants.MOBILE_APP.IOS.APP_PACKAGE,'appium:xcodeOrgId': 'TTSS6W','appium:xcodeSigningId': 'Apple Development','appium:autoAcceptAlerts': true,'appium:noReset': true,}]
What happened?
My project was setup with Appium + WebdriverIO + cucumber + Allure report.
Summary.json (allure-report/widgets/summary.json)
I can successfully run the cucumber scenarios and generate the allure report In the summary.json file (allure-report/widgets/summary.json) showing the details as below.
Here total is showing the cucumber test steps count instead of the test case count. In this case, we are unable to fetch exact number of test cases are passed and failed.
suites.json (allure-report/data/suites.json)
This file name attribute is displayed with a combination of Featue name with Scenario Outline. It should be displayed separately. In the last index, the name attribute always is showing empty(not sure why this is showing up).
Feature: Login feature in MyTest app in iOS @smoke @SSOLoginStatus
Scenario Outline: MyTest Login using , in iOS Device
Given Load the PlusHome Application for iOS
Then Verify Sign in page is displayed for iOS
And Enter the "" and "" for iOS
And Tab the Sign In Button for iOS
Then Enter the "" and Complete Secret Question page if it is displayed for iOS
Then Click Accept Term button in the Agreement Page for iOS if it is displayed
Examples:
| userId | password | secrectAnswer | accountType |
| home@gmail.com | Home | Test | CH1 |
After running the above scenario, we observed the data/summary.json file, it shows below information.
data/summary.json.Here we noticed that
name attribute is displayed with a combination of Featue name with Scenario Outline. It should be displayed separately.
In the last index, the name attribute always is showing empty(not sure why this is showing up).
Summary.json (allure-report/widgets/summary.json)
It should provide how many test scenarios are passed ,failed,skipped... instead of counting cucumber test step count
suites.json (allure-report/data/suites.json)
a. It should show feature name and test case name should be separately
b. In the childer array (last index) name attribute is showing empty. This should not be present.
How to reproduce the bug.
I am unable share the project due to this is private repo.
i ran the below command to execute the cucumber scenario
npx wdio run ./wdio.conf.ts --cucumberOpts.tags='@SSOLoginStatus'
Hi @varshanharshank what is your wdio allure reporter config? do you use useCucumberStepReporter:true option?
To repro this or at least investigate we need repro. please don't share text of features\configs and etc. Just create a simple repo on github with all the code and share the link.
Also, we don't need suites.json\summary.json - we can generate it ourselves - share content of allure-results folder instead.
Unfortunately we can't help you without a reproducible example in this matter. Please read our contributing guidelines on how to create a reproducible example. If you can't provide a reproducible example we will close this issue in 7 days.
If you have any questions please reach out to us on our Discord channel. We are happy to help you out there.
Have you read the Contributing Guidelines on issues?
WebdriverIO Version
8.35.1
Node.js Version
v22.5.1
Mode
Standalone Mode
Which capabilities are you using?
What happened?
My project was setup with Appium + WebdriverIO + cucumber + Allure report.
I can successfully run the cucumber scenarios and generate the allure report In the summary.json file (allure-report/widgets/summary.json) showing the details as below.
Here total is showing the cucumber test steps count instead of the test case count. In this case, we are unable to fetch exact number of test cases are passed and failed.
This file name attribute is displayed with a combination of Featue name with Scenario Outline. It should be displayed separately. In the last index, the name attribute always is showing empty(not sure why this is showing up).
Feature: Login feature in MyTest app in iOS
@smoke @SSOLoginStatus
Scenario Outline: MyTest Login using , in iOS Device
Given Load the PlusHome Application for iOS
Then Verify Sign in page is displayed for iOS
And Enter the "" and "" for iOS
And Tab the Sign In Button for iOS
Then Enter the "" and Complete Secret Question page if it is displayed for iOS
Then Click Accept Term button in the Agreement Page for iOS if it is displayed
After running the above scenario, we observed the data/summary.json file, it shows below information.
data/summary.json.Here we noticed that
//package.json
{
"name": "My testApp",
"version": "1.0.0",
"description": "testApp",
"devDependencies": {
"@types/fs-extra": "^11.0.4",
"@types/unzipper": "^0.10.9",
"@types/xml2js": "^0.4.14",
"@typescript-eslint/eslint-plugin": "^6.2.0",
"@typescript-eslint/parser": "^6.2.0",
"@wdio/allure-reporter": "^8.34.0",
"@wdio/appium-service": "^8.35.1",
"@wdio/cli": "^8.35.1",
"@wdio/cucumber-framework": "^8.35.0",
"@wdio/local-runner": "^8.35.1",
"@wdio/spec-reporter": "^8.32.4",
"allure-commandline": "^2.27.0",
"eslint": "^8.57.0",
"globals": "^15.0.0",
"prettier": "^3.2.5",
"ts-node": "^10.9.1",
"typescript": "^5.1.6"
},
"dependencies": {
"appium-uiautomator2-driver": "^3.0.1",
"axios": "^1.6.8",
"fs-extra": "^11.2.0",
"https": "^1.0.0",
"path": "^0.12.7"
}
}
What is your expected behavior?
Summary.json (allure-report/widgets/summary.json)
It should provide how many test scenarios are passed ,failed,skipped... instead of counting cucumber test step count
suites.json (allure-report/data/suites.json)
a. It should show feature name and test case name should be separately
b. In the childer array (last index) name attribute is showing empty. This should not be present.
How to reproduce the bug.
I am unable share the project due to this is private repo.
i ran the below command to execute the cucumber scenario
npx wdio run ./wdio.conf.ts --cucumberOpts.tags='@SSOLoginStatus'
Run the below command for generate the report
npx allure generate reports/allure-results --clean -o reports/allure-report && npx allure open reports/allure-report
Relevant log output
Code of Conduct
Is there an existing issue for this?
The text was updated successfully, but these errors were encountered: