Commit 454cb192 authored by Cai Wei's avatar Cai Wei

feat(*): 添加接口异常测试

parent 42622572
Pipeline #1342 failed
......@@ -2,8 +2,8 @@ import { defineConfig } from 'cypress'
export default defineConfig({
e2e: {
// 通过环境变量设置基础URL
baseUrl: process.env.CYPRESS_BASE_URL || 'http://localhost:3000',
// 使用固定的基础URL,去除环境变量影响
baseUrl: 'https://screen.bmetech.com',
viewportWidth: 1280,
viewportHeight: 720,
video: true,
......@@ -23,7 +23,7 @@ export default defineConfig({
openMode: 0
},
setupNodeEvents(on, config) {
// 根据环境变量动态设置配置
// 固定配置,不依赖环境变量
if (config.isTextTerminal) {
config.video = true
config.screenshotOnRunFailure = true
......@@ -31,10 +31,10 @@ export default defineConfig({
return config
},
env: {
// 支持多环境配置
apiUrl: process.env.CYPRESS_API_URL || process.env.CYPRESS_BASE_URL || 'http://localhost:3000',
username: process.env.CYPRESS_USERNAME || 'test@example.com',
password: process.env.CYPRESS_PASSWORD || 'testpassword'
// 使用固定的环境配置
apiUrl: 'https://screen.bmetech.com',
username: 'zongheng_admin',
password: '9%#F46vt'
},
specPattern: 'cypress/e2e/**/*.cy.{js,jsx,ts,tsx}',
supportFile: 'cypress/support/e2e.js',
......
......@@ -2,6 +2,11 @@ describe('template spec', () => {
it('DC-TOM告警总览', function() {
/* ==== Generated with Cypress Studio ==== */
cy.visit('https://screen.bmetech.com/admin/dctom/#/login');
// 等待页面加载完成
cy.waitForPageLoad();
// 执行登录操作
cy.get('[data-testid="login-username-input"]').clear('zongheng_admin');
cy.get('[data-testid="login-username-input"]').type('zongheng_admin');
cy.get('[data-testid="login-password-input"]').clear('9%#F46vt');
......@@ -9,32 +14,72 @@ describe('template spec', () => {
cy.get('[data-testid="login-captcha-input"]').clear('8');
cy.get('[data-testid="login-captcha-input"]').type('8888');
cy.get('[data-testid="login-submit-button"] > span').click();
// 等待登录API请求完成
cy.waitForAPIs(3000);
cy.get('[data-testid="menu-item-alerts"] > span').click();
// 等待告警页面API请求完成
cy.waitForAPIs(2000);
// 执行搜索操作
cy.get('[data-testid="event-name-input"]').clear('t');
cy.get('[data-testid="event-name-input"]').type('提升阀');
cy.get('[data-testid="search-button"]').click();
// 等待搜索API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="reset-button"] > span').click();
cy.get('[data-testid="location-input"]').click();
cy.get('[data-testid="location-input"]').clear('2');
cy.get('[data-testid="location-input"]').type('2#除尘系统');
cy.get('[data-testid="search-button"] > span').click();
// 等待搜索API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="reset-button"] > span').click();
cy.get('[data-testid="duster-name-input"]').clear('1');
cy.get('[data-testid="duster-name-input"]').type('1#除尘系统');
cy.get('[data-testid="search-button"] > span').click();
// 等待搜索API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="reset-button"] > span').click();
// 测试设备类型选择
cy.get('[data-testid="device-type-select"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder').click();
cy.get('#device-type-option-0').click();
cy.get('[data-testid="search-button"] > span').click();
// 等待搜索API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="device-type-select"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder').click();
cy.get('#device-type-option-1').click();
cy.get('[data-testid="search-button"] > span').click();
// 等待搜索API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="device-type-select"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder').click();
cy.get('#device-type-option-2').click();
cy.get('[data-testid="search-button"] > span').click();
// 等待搜索API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="reset-button"] > span').click();
// 测试挂起设备功能
cy.get('[data-testid="suspend-device-button"] > span').click();
cy.get('[data-testid="menu-item-alerts"]').click();
// 等待挂起相关API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="suspend-flag-radio-during"] > .el-radio__label').click();
cy.get('[data-testid="suspend-flag-radio-during"] > .el-radio__input > .el-radio__original').check();
cy.get('[data-testid="suspend-flag-radio-all"] > .el-radio__label').click();
......@@ -48,6 +93,19 @@ describe('template spec', () => {
cy.get('.el-dialog__headerbtn > .el-icon > svg').click();
}
});
// 等待所有API请求完成
cy.waitForAPIs(2000);
// 检查API健康状态(可选,用于设置错误阈值)
cy.checkAPIHealth({
maxErrors: 10,
maxSlowRequests: 8,
maxErrorRate: 50
});
// API错误信息会自动在测试结束时整合到报告中
/* ==== End Cypress Studio ==== */
});
})
\ No newline at end of file
......@@ -2,6 +2,11 @@ describe('template spec', () => {
it('DC-TOM布袋周期', function() {
/* ==== Generated with Cypress Studio ==== */
cy.visit('https://screen.bmetech.com/admin/dctom/#/login');
// 等待页面加载完成
cy.waitForPageLoad();
// 执行登录操作
cy.get('[data-testid="login-username-input"]').clear('zongheng_admin');
cy.get('[data-testid="login-username-input"]').type('zongheng_admin');
cy.get('[data-testid="login-password-input"]').clear('9%#F46vt');
......@@ -9,17 +14,49 @@ describe('template spec', () => {
cy.get('[data-testid="login-captcha-input"]').clear('8');
cy.get('[data-testid="login-captcha-input"]').type('8888');
cy.get('[data-testid="login-submit-button"] > span').click();
// 等待登录API请求完成
cy.waitForAPIs(3000);
cy.get('[data-testid="menu-item-collectorList"] > span').click();
// 等待布袋周期页面API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="collector-compart-input"]').clear('A');
cy.get('[data-testid="collector-compart-input"]').type('A_17');
cy.get('[data-testid="collector-search-button"] > span').click();
// 等待搜索API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="collector-reset-button"] > span').click();
cy.get('[data-testid="collector-duster-name-input"]').clear('2');
cy.get('[data-testid="collector-duster-name-input"]').type('2#除尘系统');
cy.get('[data-testid="collector-search-button"]').click();
// 等待搜索API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="collector-reset-button"] > span').click();
cy.get('[data-testid="collector-analysis-button"] > span').click();
// 等待分析弹窗API请求完成
cy.waitForAPIs(2000);
cy.get('.el-dialog__headerbtn > .el-icon > svg').click();
// 等待所有API请求完成
cy.waitForAPIs(2000);
// 检查API健康状态(可选,用于设置错误阈值)
cy.checkAPIHealth({
maxErrors: 10,
maxSlowRequests: 8,
maxErrorRate: 50
});
// API错误信息会自动在测试结束时整合到报告中
/* ==== End Cypress Studio ==== */
});
})
\ No newline at end of file
describe('template spec', () => {
it('DC-TOM我的闭环', function() {
/* ==== Generated with Cypress Studio ==== */
cy.visit('https://screen.bmetech.com/admin/dctom/#/login');
cy.visit('/admin/dctom/#/login');
// 等待页面加载完成
cy.waitForPageLoad();
// 执行登录操作
cy.get('[data-testid="login-username-input"]').clear('zongheng_admin');
cy.get('[data-testid="login-username-input"]').type('zongheng_admin');
cy.get('[data-testid="login-password-input"]').clear('9%#F46vt');
......@@ -9,8 +14,15 @@ describe('template spec', () => {
cy.get('[data-testid="login-captcha-input"]').clear('8');
cy.get('[data-testid="login-captcha-input"]').type('8888');
cy.get('[data-testid="login-submit-button"] > span').click();
// 等待登录API请求完成
cy.waitForAPIs(3000);
cy.get('[data-testid="menu-submenu-my-loop"] > .el-sub-menu__title > span').click();
cy.get('[data-testid="menu-item-my-loop/myAgency"] > span').click();
// 等待我的待办页面API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="my-agency-event-name-input"]').clear('m');
cy.get('[data-testid="my-agency-event-name-input"]').type('脉冲阀');
cy.get('[data-testid="my-agency-search-button"]').click();
......@@ -77,6 +89,19 @@ describe('template spec', () => {
cy.get('#device-type-option-2').click();
cy.get('[data-testid="search-button"] > span').click();
cy.get('[data-testid="reset-button"]').click();
// 等待所有API请求完成
cy.waitForAPIs(2000);
// 检查API健康状态(可选,用于设置错误阈值)
cy.checkAPIHealth({
maxErrors: 10,
maxSlowRequests: 8,
maxErrorRate: 50
});
// API错误信息会自动在测试结束时整合到报告中
/* ==== End Cypress Studio ==== */
});
})
\ No newline at end of file
......@@ -2,6 +2,11 @@ describe('template spec', () => {
it('DC-TOM设备管理', function() {
/* ==== Generated with Cypress Studio ==== */
cy.visit('https://screen.bmetech.com/admin/dctom/#/login');
// 等待页面加载完成
cy.waitForPageLoad();
// 执行登录操作
cy.get('[data-testid="login-username-input"]').clear('zongheng_admin');
cy.get('[data-testid="login-username-input"]').type('zongheng_admin');
cy.get('[data-testid="login-password-input"]').clear('9%#F46vt');
......@@ -9,26 +14,53 @@ describe('template spec', () => {
cy.get('[data-testid="login-captcha-input"]').clear('8');
cy.get('[data-testid="login-captcha-input"]').type('8888');
cy.get('[data-testid="login-submit-button"]').click();
// 等待登录API请求完成
cy.waitForAPIs(3000);
cy.get('[data-testid="menu-submenu-device-management"] > .el-sub-menu__title').click();
cy.get('[data-testid="menu-item-management/device-management"] > span').click();
// 等待设备管理页面API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="equipment-production-line-select"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder').click();
cy.get('#equipment-production-line-option-1').click();
cy.get('[data-testid="equipment-search-button"] > span').click();
// 等待搜索API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="equipment-reset-button"] > span').click();
cy.get('[data-testid="equipment-duster-name-input"]').clear('2');
cy.get('[data-testid="equipment-duster-name-input"]').type('2#除尘系统');
cy.get('[data-testid="equipment-search-button"] > span').click();
// 等待搜索API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="equipment-reset-button"] > span').click();
cy.get('[data-testid="equipment-device-name-input"]').clear('bu');
cy.get('[data-testid="equipment-device-name-input"]').type('布袋仪表');
cy.get('[data-testid="equipment-search-button"] > span').click();
// 等待搜索API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="equipment-reset-button"] > span').click();
cy.get('[data-testid="equipment-device-type-select"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder').click();
cy.get('#equipment-device-type-option-1').click();
cy.get('[data-testid="equipment-search-button"] > span').click();
// 等待搜索API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="equipment-device-type-select"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder > span').click();
cy.get('#equipment-device-type-option-2').click();
cy.get('[data-testid="equipment-search-button"] > span').click();
// 等待搜索API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="equipment-reset-button"] > span').click();
// 添加兼容性检查,判断是否存在设备参数按钮
......@@ -36,35 +68,89 @@ describe('template spec', () => {
// 检查原始选择器
if ($body.find('[data-testid="cell-0-operation"] > [data-testid="equipment-params-button"] > span').length) {
cy.get('[data-testid="cell-0-operation"] > [data-testid="equipment-params-button"] > span').click();
// 等待参数弹窗API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="confirm-button"]').click();
}
});
cy.get('[data-testid="menu-item-management/suspend-management"] > span').click();
// 等待挂起管理页面API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="project-select"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder').click();
cy.get('#project-option-0').click();
cy.get('[data-testid="search-button"] > span').click();
// 等待搜索API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="device-type-select"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder > span').click();
cy.get('#device-type-option-0').click();
cy.get('[data-testid="search-button"] > span').click();
// 等待搜索API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="device-type-select"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder').click();
cy.get('#device-type-option-1').click();
cy.get('[data-testid="search-button"]').click();
// 等待搜索API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="device-type-select"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder').click();
cy.get('#device-type-option-2').click();
cy.get('[data-testid="search-button"]').click();
// 等待搜索API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="reset-button"] > span').click();
cy.get('[data-testid="reason-category-select"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder').click();
cy.get('#reason-category-option-1').click();
cy.get('[data-testid="search-button"] > span').click();
// 等待搜索API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="reason-category-select"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder > span').click();
cy.get('#reason-category-option-2').click();
cy.get('[data-testid="search-button"] > span').click();
// 等待搜索API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="reason-category-select"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder > span').click();
cy.get('#reason-category-option-3').click();
cy.get('[data-testid="search-button"]').click();
// 等待搜索API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="reset-button"] > span').click();
cy.get('[data-testid="cell-0-operate"] > [data-testid="suspend-alarm-link"]').click();
cy.get('[data-testid="menu-item-management/suspend-management"] > span').click();
// 添加兼容性检查,判断是否存在suspend-action-link元素
cy.get('body').then($body => {
// 检查是否存在suspend-action-link元素
if ($body.find('[data-testid="cell-0-operate"] > [data-testid="suspend-alarm-link"]').length) {
cy.get('[data-testid="cell-0-operate"] > [data-testid="suspend-alarm-link"]').click();
cy.get('[data-testid="menu-item-management/suspend-management"] > span').click();
}
});
// 等待所有API请求完成
cy.waitForAPIs(2000);
// 检查API健康状态(可选,用于设置错误阈值)
cy.checkAPIHealth({
maxErrors: 10,
maxSlowRequests: 8,
maxErrorRate: 50
});
// API错误信息会自动在测试结束时整合到报告中
/* ==== End Cypress Studio ==== */
});
})
\ No newline at end of file
......@@ -2,6 +2,11 @@ describe('template spec', () => {
it('DC-TOM除尘器总览', function() {
/* ==== Generated with Cypress Studio ==== */
cy.visit('https://screen.bmetech.com/admin/dctom/#/login');
// 等待页面加载完成
cy.waitForPageLoad();
// 执行登录操作
cy.get('[data-testid="login-username-input"]').clear('zo');
cy.get('[data-testid="login-username-input"]').type('zongheng_admin');
cy.get('[data-testid="login-password-input"]').clear();
......@@ -9,38 +14,97 @@ describe('template spec', () => {
cy.get('[data-testid="login-captcha-input"]').clear('8');
cy.get('[data-testid="login-captcha-input"]').type('8888');
cy.get('[data-testid="login-submit-button"]').click();
// 等待登录API请求完成
cy.waitForAPIs(3000);
cy.get('[data-testid="menu-item-dust-overview"] > span').click();
// 等待除尘器总览页面API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="dust-leak-alert-card"] > .title').click();
// 等待告警相关API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="menu-item-dust-overview"]').click();
cy.get('[data-testid="dust-close-loop-card"] > img').click();
// 等待闭环相关API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="menu-item-dust-overview"] > span').click();
cy.get('[data-testid="dust-production-line-select"] > .el-select__wrapper').click();
cy.get('#production-line-option-1').click();
cy.get('[data-testid="dust-search-button"] > span').click();
// 等待搜索API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="dust-reset-button"] > span').click();
cy.get('[data-testid="dust-device-name-input"]').clear('1');
cy.get('[data-testid="dust-device-name-input"]').type('1#除尘系统');
cy.get('[data-testid="dust-search-button"]').click();
// 等待搜索API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="dust-add-button"] > span').click();
// 等待新增弹窗API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="cancel-button"]').click();
cy.get('[data-testid="compartment-count-link"]').click();
// 等待仓室详情API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="dialog-footer"] > [data-testid="confirm-button"] > span').click();
cy.get('[data-testid="valve-count-link"]').click();
// 等待阀门详情API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="save-button"] > span').click();
cy.get('.status-matrix > :nth-child(1) > :nth-child(1)').click();
// 等待状态矩阵API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="menu-item-dust-overview"] > span').click();
// 添加兼容性检查,判断是否存在操作按钮元素
cy.get('body').then($body => {
if ($body.find('[data-testid="cell-0-operation"] > [data-testid="dust-view-button"]').length) {
cy.get('[data-testid="cell-0-operation"] > [data-testid="dust-view-button"]').click();
// 等待查看详情API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="menu-item-dust-overview"] > span').click();
}
if ($body.find('[data-testid="cell-0-operation"] > [data-testid="dust-edit-button"]').length) {
cy.get('[data-testid="cell-0-operation"] > [data-testid="dust-edit-button"]').click();
// 等待编辑弹窗API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="confirm-button"]').click();
}
});
// 等待所有API请求完成
cy.waitForAPIs(2000);
// 检查API健康状态(可选,用于设置错误阈值)
cy.checkAPIHealth({
maxErrors: 10,
maxSlowRequests: 8,
maxErrorRate: 50
});
// API错误信息会自动在测试结束时整合到报告中
/* ==== End Cypress Studio ==== */
});
})
\ No newline at end of file
......@@ -2,6 +2,11 @@ describe('template spec', () => {
it('DC-TOM除尘器监控', function() {
/* ==== Generated with Cypress Studio ==== */
cy.visit('https://screen.bmetech.com/admin/dctom/#/login');
// 等待页面加载完成
cy.waitForPageLoad();
// 执行登录操作
cy.get('[data-testid="login-username-input"]').clear('zongheng_admin');
cy.get('[data-testid="login-username-input"]').type('zongheng_admin');
cy.get('[data-testid="login-password-input"]').clear('9%#F46vt');
......@@ -9,11 +14,39 @@ describe('template spec', () => {
cy.get('[data-testid="login-captcha-input"]').clear('8');
cy.get('[data-testid="login-captcha-input"]').type('8888');
cy.get('[data-testid="login-submit-button"]').click();
// 等待登录API请求完成
cy.waitForAPIs(3000);
cy.get('.el-select__wrapper').click();
cy.get('[data-testid="duster-option-0"]').click();
// 等待除尘器选择API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="compartment-health-matrix"] > :nth-child(1)').click();
// 等待仓室点击API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="compartment-health-matrix"] > :nth-child(1) > :nth-child(1)').click();
// 等待仓室详情API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="menu-item-monitor"]').click();
// 等待所有API请求完成
cy.waitForAPIs(2000);
// 检查API健康状态(可选,用于设置错误阈值)
cy.checkAPIHealth({
maxErrors: 10,
maxSlowRequests: 8,
maxErrorRate: 50
});
// API错误信息会自动在测试结束时整合到报告中
/* ==== End Cypress Studio ==== */
});
})
\ No newline at end of file
......@@ -2,6 +2,11 @@ describe('template spec', () => {
it('DC-TOM首页', function() {
/* ==== Generated with Cypress Studio ==== */
cy.visit('https://screen.bmetech.com/admin/dctom/#/login');
// 等待页面加载完成
cy.waitForPageLoad();
// 执行登录操作
cy.get('[data-testid="login-username-input"]').clear('zo');
cy.get('[data-testid="login-username-input"]').type('zongheng_admin');
cy.get('[data-testid="login-password-input"]').clear('9%#F46vt');
......@@ -9,12 +14,40 @@ describe('template spec', () => {
cy.get('[data-testid="login-captcha-input"]').clear('8');
cy.get('[data-testid="login-captcha-input"]').type('8888');
cy.get('[data-testid="login-submit-button"] > span').click();
// 等待登录API请求完成
cy.waitForAPIs(3000);
cy.get('[data-testid="menu-item-dashboard"] > span').click();
// 等待仪表盘页面API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="map-spot-0"] > [data-testid="spot-pulse"]').click();
// 等待地图点击API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="sidebar-menu"]').click();
cy.get('[data-testid="menu-item-dashboard"]').click();
cy.get('[data-testid="map-spot-1"] > [data-testid="spot-pulse"]').click();
// 等待地图点击API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="menu-item-dashboard"]').click();
// 等待所有API请求完成
cy.waitForAPIs(2000);
// 检查API健康状态(可选,用于设置错误阈值)
cy.checkAPIHealth({
maxErrors: 10,
maxSlowRequests: 8,
maxErrorRate: 50
});
// API错误信息会自动在测试结束时整合到报告中
/* ==== End Cypress Studio ==== */
});
})
\ No newline at end of file
describe('template spec', () => {
it('EC-TOME-Net', function() {
/* ==== Generated with Cypress Studio ==== */
cy.visit('https://screen.bmetech.com/steelmakingScreen/#/eNet');
cy.visit('http://screen.bmetech.com/steelmakingScreen/#/eNet');
// 等待页面加载完成
cy.waitForPageLoad();
// 等待初始API请求完成
cy.waitForAPIs(3000);
cy.get('[data-testid="pause-btn"]').click();
// 等待暂停操作API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="cancel-button"]').click();
cy.get('[data-testid="reject-btn"]').click();
// 等待拒绝操作API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="cancel-button"]').click();
cy.get('[data-testid="execute-btn"]').click();
// 等待执行操作API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="cancel-button"]').click();
cy.get('[data-testid="pending-status-button"]').click();
// 等待状态筛选API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="executed-status-button"]').click();
// 等待状态筛选API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="rejected-status-button"]').click();
// 等待状态筛选API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="paused-status-button"]').click();
// 等待状态筛选API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="all-status-button"]').click();
// 等待状态筛选API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="chart-type-select"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder > span').click();
cy.get('[data-testid="chart-type-option-1"] > span').click();
// 等待图表类型切换API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="chart-type-select"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder > span').click();
cy.get('[data-testid="chart-type-option-0"] > span').click();
// 等待图表类型切换API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="alarm-type-select"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder > span').click();
cy.get('[data-testid="alarm-type-option-1"] > span').click();
// 等待告警类型切换API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="alarm-type-select"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder > span').click();
cy.get('[data-testid="alarm-type-option-0"] > span').click();
cy.get('[data-testid="alarm-time-0"]').click();
cy.get('[data-testid="reason-confirm-btn"]').click();
cy.get('[data-testid="delay-btn"]').click();
cy.get('[data-testid="reassign-btn"]').click();
cy.get('[data-testid="cancel-btn"]').click();
// 等待告警类型切换API请求完成
cy.waitForAPIs(2000);
// 添加兼容性检查,判断是否存在操作按钮元素
cy.get('body').then($body => {
// 处理流程按钮
if ($body.find('[data-testid="alarm-time-0"]').length) {
cy.get('[data-testid="alarm-time-0"]').click();
// 等待告警详情API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="reason-confirm-btn"]').click();
cy.get('[data-testid="delay-btn"]').click();
cy.get('[data-testid="reassign-btn"]').click();
cy.get('[data-testid="cancel-btn"]').click();
}
});
// 等待所有API请求完成
cy.waitForAPIs(2000);
// 检查API健康状态(可选,用于设置错误阈值)
cy.checkAPIHealth({
maxErrors: 10,
maxSlowRequests: 8,
maxErrorRate: 50
});
// API错误信息会自动在测试结束时整合到报告中
/* ==== End Cypress Studio ==== */
});
})
\ No newline at end of file
describe('template spec', () => {
it('EC-TOMPIKAR-烟尘识别数据台账', function() {
/* ==== Generated with Cypress Studio ==== */
cy.visit('https://screen.bmetech.com/steelmakingScreen/#/smokeDustDetail');
cy.visit('http://screen.bmetech.com/steelmakingScreen/#/smokeDustDetail');
// 等待页面加载完成
cy.waitForPageLoad();
// 执行搜索操作
cy.get('[data-testid="device-name-input"]').clear('1#出铁口');
cy.get('[data-testid="device-name-input"]').type('1#出铁口');
cy.get('[data-testid="query-button"] > span').click();
// 等待API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="reset-button"] > span').click();
// 点击视频链接
cy.get('[data-testid="cell-0-operate"] > [data-testid="watch-video-link"]').click();
cy.get('.switchBtn > .el-button > span').click();
// 等待视频相关API请求
cy.waitForAPIs(2000);
cy.get('[data-testid="cell-0-operate"] > [data-testid="data-detail-link"]').click();
// 等待详情页面API请求
cy.waitForAPIs(2000);
// 判断是否有视频按钮,有则点击
cy.get('body').then($body => {
if ($body.find('[data-testid="video-button"]').length) {
cy.get('[data-testid="video-button"]').click();
cy.get('.switchBtn > .el-button > span').click();
cy.get('[data-testid="back-button"]').click();
// 等待视频播放相关API请求
cy.waitForAPIs(2000);
}
});
// 检查API健康状态(可选,用于设置错误阈值)
cy.checkAPIHealth({
maxErrors: 10,
maxSlowRequests: 8,
maxErrorRate: 50
});
// API错误信息会自动在测试结束时整合到报告中
/* ==== End Cypress Studio ==== */
});
})
\ No newline at end of file
......@@ -2,25 +2,98 @@ describe('template spec', () => {
/* ==== Test Created with Cypress Studio ==== */
it('准时化', function() {
/* ==== Generated with Cypress Studio ==== */
cy.visit('https://screen.bmetech.com/steelmakingScreen/#/robotNew');
cy.visit('http://screen.bmetech.com/steelmakingScreen/#/robotNew');
// 等待页面加载完成
cy.waitForPageLoad();
// 等待初始API请求完成
cy.waitForAPIs(3000);
cy.get('[data-testid="execute-icon"]').click();
// 等待执行操作API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="auto-execute-button"] > :nth-child(2)').click();
// 等待自动执行操作API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="feedback-button"] > :nth-child(2)').click();
// 等待反馈操作API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="eco-tom-button"]').click();
// 等待ECO-TOM切换API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="pending-status-btn"]').click();
// 等待状态筛选API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="executed-status-btn"]').click();
// 等待状态筛选API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="rejected-status-btn"]').click();
// 等待状态筛选API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="paused-status-btn"]').click();
// 等待状态筛选API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="rejected-status-btn"]').click();
// 等待状态筛选API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="all-status-btn"]').click();
// 等待状态筛选API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="cems-tab"]').click();
// 等待CEMS数据API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="energy-trend-tab"]').click();
// 等待能耗趋势API请求完成
cy.waitForAPIs(2000);
cy.get('[placeholder="开始日期"]').click();
cy.get('.is-left > .el-date-table > tbody > :nth-child(6) > :nth-child(5) > .el-date-table-cell > .el-date-table-cell__text').click();
cy.get('.end-date').click();
// 等待日期筛选API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="main-video-image"]').click();
// 等待视频加载API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="sdk-close-video-btn"]').click();
cy.get('[data-testid="back-btn"]').click();
// 等待所有API请求完成
cy.waitForAPIs(2000);
// 检查API健康状态(可选,用于设置错误阈值)
cy.checkAPIHealth({
maxErrors: 10,
maxSlowRequests: 8,
maxErrorRate: 50
});
// API错误信息会自动在测试结束时整合到报告中
/* ==== End Cypress Studio ==== */
});
})
\ No newline at end of file
describe('template spec', () => {
/* ==== Test Created with Cypress Studio ==== */
/* ==== Test Created with Cypress Studio ==== */
it('设备数据台账1', function() {
it('设备数据台账', function() {
/* ==== Generated with Cypress Studio ==== */
cy.visit('https://screen.bmetech.com/steelmakingScreen/#/valveTableData');
cy.visit('http://screen.bmetech.com/steelmakingScreen/#/valveTableData');
// 等待页面加载完成
cy.waitForPageLoad();
// 等待初始API请求完成
cy.waitForAPIs(3000);
cy.get('[data-testid="device-type-select"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder').click();
cy.get('[data-testid="device-type-option-0"]').click();
cy.get('[data-testid="query-button"] > span').click();
// 等待查询API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="device-type-select"] > .el-select__wrapper > .el-select__suffix > .el-icon > svg').click();
cy.get('[data-testid="device-type-option-1"]').click();
cy.get('[data-testid="query-button"]').click();
// 等待查询API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="cell-0-operate"] > [data-testid="view-detail-link"]').click();
// 等待详情页面API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="detail-query-button"] > span').click();
// 等待详情查询API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="detail-export-button"]').click();
// 等待导出API请求完成
cy.waitForAPIs(2000);
cy.get('[data-testid="back-button"]').click();
cy.get('[data-testid="reset-button"] > span').click();
// 等待重置API请求完成
cy.waitForAPIs(2000);
cy.get('[aria-label="第 2 页"]').click();
// 等待翻页API请求完成
cy.waitForAPIs(2000);
cy.get('[aria-label="第 1 页"]').click();
// 等待翻页API请求完成
cy.waitForAPIs(2000);
// 等待所有API请求完成
cy.waitForAPIs(2000);
// 检查API健康状态(可选,用于设置错误阈值)
cy.checkAPIHealth({
maxErrors: 10,
maxSlowRequests: 8,
maxErrorRate: 50
});
// API错误信息会自动在测试结束时整合到报告中
/* ==== End Cypress Studio ==== */
});
})
\ No newline at end of file
<!doctype html>
<html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1"/><title>开发环境测试报告</title><link rel="stylesheet" href="assets/app.css"/></head><body data-raw="{&quot;stats&quot;:{&quot;suites&quot;:1,&quot;tests&quot;:1,&quot;passes&quot;:1,&quot;pending&quot;:0,&quot;failures&quot;:0,&quot;start&quot;:&quot;2025-09-08T07:25:51.206Z&quot;,&quot;end&quot;:&quot;2025-09-08T07:25:55.409Z&quot;,&quot;duration&quot;:4203,&quot;testsRegistered&quot;:1,&quot;passPercent&quot;:100,&quot;pendingPercent&quot;:0,&quot;other&quot;:0,&quot;hasOther&quot;:false,&quot;skipped&quot;:0,&quot;hasSkipped&quot;:false},&quot;results&quot;:[{&quot;uuid&quot;:&quot;fb65e0c2-f4c5-43c0-9948-958cdd8332bc&quot;,&quot;title&quot;:&quot;&quot;,&quot;fullFile&quot;:&quot;cypress/e2e/DC-TOM首页.cy.js&quot;,&quot;file&quot;:&quot;cypress/e2e/DC-TOM首页.cy.js&quot;,&quot;beforeHooks&quot;:[],&quot;afterHooks&quot;:[],&quot;tests&quot;:[],&quot;suites&quot;:[{&quot;uuid&quot;:&quot;8e4725d5-1564-432b-894b-b6d597f7f00d&quot;,&quot;title&quot;:&quot;template spec&quot;,&quot;fullFile&quot;:&quot;&quot;,&quot;file&quot;:&quot;&quot;,&quot;beforeHooks&quot;:[],&quot;afterHooks&quot;:[],&quot;tests&quot;:[{&quot;title&quot;:&quot;DC-TOM首页&quot;,&quot;fullTitle&quot;:&quot;template spec DC-TOM首页&quot;,&quot;duration&quot;:4169,&quot;state&quot;:&quot;passed&quot;,&quot;speed&quot;:&quot;fast&quot;,&quot;pass&quot;:true,&quot;fail&quot;:false,&quot;pending&quot;:false,&quot;code&quot;:&quot;/* ==== Generated with Cypress Studio ==== */\ncy.visit(&#x27;https://screen.bmetech.com/admin/dctom/#/login&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-username-input\&quot;]&#x27;).clear(&#x27;zo&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-username-input\&quot;]&#x27;).type(&#x27;zongheng_admin&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-password-input\&quot;]&#x27;).clear(&#x27;9%#F46vt&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-password-input\&quot;]&#x27;).type(&#x27;9%#F46vt&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-captcha-input\&quot;]&#x27;).clear(&#x27;8&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-captcha-input\&quot;]&#x27;).type(&#x27;8888&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-submit-button\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;menu-item-dashboard\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;map-spot-0\&quot;] &gt; [data-testid=\&quot;spot-pulse\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;sidebar-menu\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;menu-item-dashboard\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;map-spot-1\&quot;] &gt; [data-testid=\&quot;spot-pulse\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;menu-item-dashboard\&quot;]&#x27;).click();\n/* ==== End Cypress Studio ==== */&quot;,&quot;err&quot;:{},&quot;uuid&quot;:&quot;dd120b75-9731-4ca0-bb70-351241ac92c4&quot;,&quot;parentUUID&quot;:&quot;8e4725d5-1564-432b-894b-b6d597f7f00d&quot;,&quot;isHook&quot;:false,&quot;skipped&quot;:false}],&quot;suites&quot;:[],&quot;passes&quot;:[&quot;dd120b75-9731-4ca0-bb70-351241ac92c4&quot;],&quot;failures&quot;:[],&quot;pending&quot;:[],&quot;skipped&quot;:[],&quot;duration&quot;:4169,&quot;root&quot;:false,&quot;rootEmpty&quot;:false,&quot;_timeout&quot;:2000}],&quot;passes&quot;:[],&quot;failures&quot;:[],&quot;pending&quot;:[],&quot;skipped&quot;:[],&quot;duration&quot;:0,&quot;root&quot;:true,&quot;rootEmpty&quot;:true,&quot;_timeout&quot;:2000}],&quot;meta&quot;:{&quot;mocha&quot;:{&quot;version&quot;:&quot;7.0.1&quot;},&quot;mochawesome&quot;:{&quot;options&quot;:{&quot;quiet&quot;:false,&quot;reportFilename&quot;:&quot;mochawesome&quot;,&quot;saveHtml&quot;:true,&quot;saveJson&quot;:true,&quot;consoleReporter&quot;:&quot;spec&quot;,&quot;useInlineDiffs&quot;:false,&quot;code&quot;:true},&quot;version&quot;:&quot;7.1.3&quot;},&quot;marge&quot;:{&quot;options&quot;:{&quot;reportDir&quot;:&quot;cypress/reports&quot;,&quot;overwrite&quot;:false,&quot;html&quot;:true,&quot;json&quot;:true,&quot;timestamp&quot;:&quot;mmddyyyy_HHMMss&quot;,&quot;reportTitle&quot;:&quot;Development Tests&quot;,&quot;reportPageTitle&quot;:&quot;开发环境测试报告&quot;},&quot;version&quot;:&quot;6.2.0&quot;}}}" data-config="{&quot;reportFilename&quot;:&quot;mochawesome&quot;,&quot;reportDir&quot;:&quot;cypress/reports&quot;,&quot;reportTitle&quot;:&quot;Development Tests&quot;,&quot;reportPageTitle&quot;:&quot;开发环境测试报告&quot;,&quot;inline&quot;:false,&quot;inlineAssets&quot;:false,&quot;cdn&quot;:false,&quot;charts&quot;:false,&quot;enableCharts&quot;:false,&quot;code&quot;:true,&quot;enableCode&quot;:true,&quot;autoOpen&quot;:false,&quot;overwrite&quot;:false,&quot;timestamp&quot;:&quot;mmddyyyy_HHMMss&quot;,&quot;ts&quot;:&quot;mmddyyyy_HHMMss&quot;,&quot;showPassed&quot;:true,&quot;showFailed&quot;:true,&quot;showPending&quot;:true,&quot;showSkipped&quot;:false,&quot;showHooks&quot;:&quot;failed&quot;,&quot;saveJson&quot;:true,&quot;saveHtml&quot;:true,&quot;dev&quot;:false,&quot;assetsDir&quot;:&quot;cypress/reports/assets&quot;,&quot;jsonFile&quot;:&quot;/Users/cw/Desktop/BME/dc-tom/cypress/reports/mochawesome_09082025_152555.json&quot;,&quot;htmlFile&quot;:&quot;/Users/cw/Desktop/BME/dc-tom/cypress/reports/mochawesome_09082025_152555.html&quot;}"><div id="report"></div><script src="assets/app.js"></script></body></html>
\ No newline at end of file
{
"stats": {
"suites": 1,
"tests": 1,
"passes": 1,
"pending": 0,
"failures": 0,
"start": "2025-09-08T07:25:51.206Z",
"end": "2025-09-08T07:25:55.409Z",
"duration": 4203,
"testsRegistered": 1,
"passPercent": 100,
"pendingPercent": 0,
"other": 0,
"hasOther": false,
"skipped": 0,
"hasSkipped": false
},
"results": [
{
"uuid": "fb65e0c2-f4c5-43c0-9948-958cdd8332bc",
"title": "",
"fullFile": "cypress/e2e/DC-TOM首页.cy.js",
"file": "cypress/e2e/DC-TOM首页.cy.js",
"beforeHooks": [],
"afterHooks": [],
"tests": [],
"suites": [
{
"uuid": "8e4725d5-1564-432b-894b-b6d597f7f00d",
"title": "template spec",
"fullFile": "",
"file": "",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
"title": "DC-TOM首页",
"fullTitle": "template spec DC-TOM首页",
"timedOut": null,
"duration": 4169,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "/* ==== Generated with Cypress Studio ==== */\ncy.visit('https://screen.bmetech.com/admin/dctom/#/login');\ncy.get('[data-testid=\"login-username-input\"]').clear('zo');\ncy.get('[data-testid=\"login-username-input\"]').type('zongheng_admin');\ncy.get('[data-testid=\"login-password-input\"]').clear('9%#F46vt');\ncy.get('[data-testid=\"login-password-input\"]').type('9%#F46vt');\ncy.get('[data-testid=\"login-captcha-input\"]').clear('8');\ncy.get('[data-testid=\"login-captcha-input\"]').type('8888');\ncy.get('[data-testid=\"login-submit-button\"] > span').click();\ncy.get('[data-testid=\"menu-item-dashboard\"] > span').click();\ncy.get('[data-testid=\"map-spot-0\"] > [data-testid=\"spot-pulse\"]').click();\ncy.get('[data-testid=\"sidebar-menu\"]').click();\ncy.get('[data-testid=\"menu-item-dashboard\"]').click();\ncy.get('[data-testid=\"map-spot-1\"] > [data-testid=\"spot-pulse\"]').click();\ncy.get('[data-testid=\"menu-item-dashboard\"]').click();\n/* ==== End Cypress Studio ==== */",
"err": {},
"uuid": "dd120b75-9731-4ca0-bb70-351241ac92c4",
"parentUUID": "8e4725d5-1564-432b-894b-b6d597f7f00d",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
"dd120b75-9731-4ca0-bb70-351241ac92c4"
],
"failures": [],
"pending": [],
"skipped": [],
"duration": 4169,
"root": false,
"rootEmpty": false,
"_timeout": 2000
}
],
"passes": [],
"failures": [],
"pending": [],
"skipped": [],
"duration": 0,
"root": true,
"rootEmpty": true,
"_timeout": 2000
}
],
"meta": {
"mocha": {
"version": "7.0.1"
},
"mochawesome": {
"options": {
"quiet": false,
"reportFilename": "mochawesome",
"saveHtml": true,
"saveJson": true,
"consoleReporter": "spec",
"useInlineDiffs": false,
"code": true
},
"version": "7.1.3"
},
"marge": {
"options": {
"reportDir": "cypress/reports",
"overwrite": false,
"html": true,
"json": true,
"timestamp": "mmddyyyy_HHMMss",
"reportTitle": "Development Tests",
"reportPageTitle": "开发环境测试报告"
},
"version": "6.2.0"
}
}
}
\ No newline at end of file
<!doctype html>
<html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1"/><title>开发环境测试报告</title><link rel="stylesheet" href="assets/app.css"/></head><body data-raw="{&quot;stats&quot;:{&quot;suites&quot;:1,&quot;tests&quot;:1,&quot;passes&quot;:0,&quot;pending&quot;:0,&quot;failures&quot;:1,&quot;start&quot;:&quot;2025-09-08T07:25:57.349Z&quot;,&quot;end&quot;:&quot;2025-09-08T07:27:00.076Z&quot;,&quot;duration&quot;:62727,&quot;testsRegistered&quot;:1,&quot;passPercent&quot;:0,&quot;pendingPercent&quot;:0,&quot;other&quot;:0,&quot;hasOther&quot;:false,&quot;skipped&quot;:0,&quot;hasSkipped&quot;:false},&quot;results&quot;:[{&quot;uuid&quot;:&quot;2f0e7d7f-8ef8-4788-ad9a-59151867cf32&quot;,&quot;title&quot;:&quot;&quot;,&quot;fullFile&quot;:&quot;cypress/e2e/DC-TOM告警总览.cy.js&quot;,&quot;file&quot;:&quot;cypress/e2e/DC-TOM告警总览.cy.js&quot;,&quot;beforeHooks&quot;:[],&quot;afterHooks&quot;:[],&quot;tests&quot;:[],&quot;suites&quot;:[{&quot;uuid&quot;:&quot;97eb7d0b-d060-4754-b99d-a12ff8d2b85e&quot;,&quot;title&quot;:&quot;template spec&quot;,&quot;fullFile&quot;:&quot;&quot;,&quot;file&quot;:&quot;&quot;,&quot;beforeHooks&quot;:[],&quot;afterHooks&quot;:[],&quot;tests&quot;:[{&quot;title&quot;:&quot;DC-TOM告警总览&quot;,&quot;fullTitle&quot;:&quot;template spec DC-TOM告警总览&quot;,&quot;duration&quot;:20761,&quot;state&quot;:&quot;failed&quot;,&quot;pass&quot;:false,&quot;fail&quot;:true,&quot;pending&quot;:false,&quot;code&quot;:&quot;/* ==== Generated with Cypress Studio ==== */\ncy.visit(&#x27;https://screen.bmetech.com/admin/dctom/#/login&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-username-input\&quot;]&#x27;).clear(&#x27;zongheng_admin&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-username-input\&quot;]&#x27;).type(&#x27;zongheng_admin&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-password-input\&quot;]&#x27;).clear(&#x27;9%#F46vt&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-password-input\&quot;]&#x27;).type(&#x27;9%#F46vt&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-captcha-input\&quot;]&#x27;).clear(&#x27;8&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-captcha-input\&quot;]&#x27;).type(&#x27;8888&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-submit-button\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;menu-item-alerts\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;event-name-input\&quot;]&#x27;).clear(&#x27;t&#x27;);\ncy.get(&#x27;[data-testid=\&quot;event-name-input\&quot;]&#x27;).type(&#x27;提升阀&#x27;);\ncy.get(&#x27;[data-testid=\&quot;search-button\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;reset-button\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;location-input\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;location-input\&quot;]&#x27;).clear(&#x27;2&#x27;);\ncy.get(&#x27;[data-testid=\&quot;location-input\&quot;]&#x27;).type(&#x27;2#除尘系统&#x27;);\ncy.get(&#x27;[data-testid=\&quot;search-button\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;reset-button\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;duster-name-input\&quot;]&#x27;).clear(&#x27;1&#x27;);\ncy.get(&#x27;[data-testid=\&quot;duster-name-input\&quot;]&#x27;).type(&#x27;1#除尘系统&#x27;);\ncy.get(&#x27;[data-testid=\&quot;search-button\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;reset-button\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;device-type-select\&quot;] &gt; .el-select__wrapper &gt; .el-select__selection &gt; .el-select__placeholder&#x27;).click();\ncy.get(&#x27;#device-type-option-0&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;search-button\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;device-type-select\&quot;] &gt; .el-select__wrapper &gt; .el-select__selection &gt; .el-select__placeholder&#x27;).click();\ncy.get(&#x27;#device-type-option-1&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;search-button\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;device-type-select\&quot;] &gt; .el-select__wrapper &gt; .el-select__selection &gt; .el-select__placeholder&#x27;).click();\ncy.get(&#x27;#device-type-option-2&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;search-button\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;reset-button\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;suspend-device-button\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;menu-item-alerts\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;suspend-flag-radio-during\&quot;] &gt; .el-radio__label&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;suspend-flag-radio-during\&quot;] &gt; .el-radio__input &gt; .el-radio__original&#x27;).check();\ncy.get(&#x27;[data-testid=\&quot;suspend-flag-radio-all\&quot;] &gt; .el-radio__label&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;suspend-flag-radio-all\&quot;] &gt; .el-radio__input &gt; .el-radio__original&#x27;).check();\ncy.get(&#x27;:nth-child(1) &gt; .el-table_3_column_31 &gt; .cell &gt; [data-testid=\&quot;suspend-action-link\&quot;]&#x27;).click();\ncy.get(&#x27;.el-dialog__headerbtn &gt; .el-icon &gt; svg&#x27;).click();\n/* ==== End Cypress Studio ==== */&quot;,&quot;err&quot;:{&quot;message&quot;:&quot;AssertionError: Timed out retrying after 15000ms: Expected to find element: `:nth-child(1) &gt; .el-table_3_column_31 &gt; .cell &gt; [data-testid=\&quot;suspend-action-link\&quot;]`, but never found it.&quot;,&quot;estack&quot;:&quot;AssertionError: Timed out retrying after 15000ms: Expected to find element: `:nth-child(1) &gt; .el-table_3_column_31 &gt; .cell &gt; [data-testid=\&quot;suspend-action-link\&quot;]`, but never found it.\n at Context.eval (webpack://cypress-testing-tool/./cypress/e2e/DC-TOM告警总览.cy.js:42:7)&quot;},&quot;uuid&quot;:&quot;f2194bfd-a186-4282-a2e1-265f74e02f98&quot;,&quot;parentUUID&quot;:&quot;97eb7d0b-d060-4754-b99d-a12ff8d2b85e&quot;,&quot;isHook&quot;:false,&quot;skipped&quot;:false}],&quot;suites&quot;:[],&quot;passes&quot;:[],&quot;failures&quot;:[&quot;f2194bfd-a186-4282-a2e1-265f74e02f98&quot;],&quot;pending&quot;:[],&quot;skipped&quot;:[],&quot;duration&quot;:20761,&quot;root&quot;:false,&quot;rootEmpty&quot;:false,&quot;_timeout&quot;:2000}],&quot;passes&quot;:[],&quot;failures&quot;:[],&quot;pending&quot;:[],&quot;skipped&quot;:[],&quot;duration&quot;:0,&quot;root&quot;:true,&quot;rootEmpty&quot;:true,&quot;_timeout&quot;:2000}],&quot;meta&quot;:{&quot;mocha&quot;:{&quot;version&quot;:&quot;7.0.1&quot;},&quot;mochawesome&quot;:{&quot;options&quot;:{&quot;quiet&quot;:false,&quot;reportFilename&quot;:&quot;mochawesome&quot;,&quot;saveHtml&quot;:true,&quot;saveJson&quot;:true,&quot;consoleReporter&quot;:&quot;spec&quot;,&quot;useInlineDiffs&quot;:false,&quot;code&quot;:true},&quot;version&quot;:&quot;7.1.3&quot;},&quot;marge&quot;:{&quot;options&quot;:{&quot;reportDir&quot;:&quot;cypress/reports&quot;,&quot;overwrite&quot;:false,&quot;html&quot;:true,&quot;json&quot;:true,&quot;timestamp&quot;:&quot;mmddyyyy_HHMMss&quot;,&quot;reportTitle&quot;:&quot;Development Tests&quot;,&quot;reportPageTitle&quot;:&quot;开发环境测试报告&quot;},&quot;version&quot;:&quot;6.2.0&quot;}}}" data-config="{&quot;reportFilename&quot;:&quot;mochawesome&quot;,&quot;reportDir&quot;:&quot;cypress/reports&quot;,&quot;reportTitle&quot;:&quot;Development Tests&quot;,&quot;reportPageTitle&quot;:&quot;开发环境测试报告&quot;,&quot;inline&quot;:false,&quot;inlineAssets&quot;:false,&quot;cdn&quot;:false,&quot;charts&quot;:false,&quot;enableCharts&quot;:false,&quot;code&quot;:true,&quot;enableCode&quot;:true,&quot;autoOpen&quot;:false,&quot;overwrite&quot;:false,&quot;timestamp&quot;:&quot;mmddyyyy_HHMMss&quot;,&quot;ts&quot;:&quot;mmddyyyy_HHMMss&quot;,&quot;showPassed&quot;:true,&quot;showFailed&quot;:true,&quot;showPending&quot;:true,&quot;showSkipped&quot;:false,&quot;showHooks&quot;:&quot;failed&quot;,&quot;saveJson&quot;:true,&quot;saveHtml&quot;:true,&quot;dev&quot;:false,&quot;assetsDir&quot;:&quot;cypress/reports/assets&quot;,&quot;jsonFile&quot;:&quot;/Users/cw/Desktop/BME/dc-tom/cypress/reports/mochawesome_09082025_152700.json&quot;,&quot;htmlFile&quot;:&quot;/Users/cw/Desktop/BME/dc-tom/cypress/reports/mochawesome_09082025_152700.html&quot;}"><div id="report"></div><script src="assets/app.js"></script></body></html>
\ No newline at end of file
{
"stats": {
"suites": 1,
"tests": 1,
"passes": 0,
"pending": 0,
"failures": 1,
"start": "2025-09-08T07:25:57.349Z",
"end": "2025-09-08T07:27:00.076Z",
"duration": 62727,
"testsRegistered": 1,
"passPercent": 0,
"pendingPercent": 0,
"other": 0,
"hasOther": false,
"skipped": 0,
"hasSkipped": false
},
"results": [
{
"uuid": "2f0e7d7f-8ef8-4788-ad9a-59151867cf32",
"title": "",
"fullFile": "cypress/e2e/DC-TOM告警总览.cy.js",
"file": "cypress/e2e/DC-TOM告警总览.cy.js",
"beforeHooks": [],
"afterHooks": [],
"tests": [],
"suites": [
{
"uuid": "97eb7d0b-d060-4754-b99d-a12ff8d2b85e",
"title": "template spec",
"fullFile": "",
"file": "",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
"title": "DC-TOM告警总览",
"fullTitle": "template spec DC-TOM告警总览",
"timedOut": null,
"duration": 20761,
"state": "failed",
"speed": null,
"pass": false,
"fail": true,
"pending": false,
"context": null,
"code": "/* ==== Generated with Cypress Studio ==== */\ncy.visit('https://screen.bmetech.com/admin/dctom/#/login');\ncy.get('[data-testid=\"login-username-input\"]').clear('zongheng_admin');\ncy.get('[data-testid=\"login-username-input\"]').type('zongheng_admin');\ncy.get('[data-testid=\"login-password-input\"]').clear('9%#F46vt');\ncy.get('[data-testid=\"login-password-input\"]').type('9%#F46vt');\ncy.get('[data-testid=\"login-captcha-input\"]').clear('8');\ncy.get('[data-testid=\"login-captcha-input\"]').type('8888');\ncy.get('[data-testid=\"login-submit-button\"] > span').click();\ncy.get('[data-testid=\"menu-item-alerts\"] > span').click();\ncy.get('[data-testid=\"event-name-input\"]').clear('t');\ncy.get('[data-testid=\"event-name-input\"]').type('提升阀');\ncy.get('[data-testid=\"search-button\"]').click();\ncy.get('[data-testid=\"reset-button\"] > span').click();\ncy.get('[data-testid=\"location-input\"]').click();\ncy.get('[data-testid=\"location-input\"]').clear('2');\ncy.get('[data-testid=\"location-input\"]').type('2#除尘系统');\ncy.get('[data-testid=\"search-button\"] > span').click();\ncy.get('[data-testid=\"reset-button\"] > span').click();\ncy.get('[data-testid=\"duster-name-input\"]').clear('1');\ncy.get('[data-testid=\"duster-name-input\"]').type('1#除尘系统');\ncy.get('[data-testid=\"search-button\"] > span').click();\ncy.get('[data-testid=\"reset-button\"] > span').click();\ncy.get('[data-testid=\"device-type-select\"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder').click();\ncy.get('#device-type-option-0').click();\ncy.get('[data-testid=\"search-button\"] > span').click();\ncy.get('[data-testid=\"device-type-select\"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder').click();\ncy.get('#device-type-option-1').click();\ncy.get('[data-testid=\"search-button\"] > span').click();\ncy.get('[data-testid=\"device-type-select\"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder').click();\ncy.get('#device-type-option-2').click();\ncy.get('[data-testid=\"search-button\"] > span').click();\ncy.get('[data-testid=\"reset-button\"] > span').click();\ncy.get('[data-testid=\"suspend-device-button\"] > span').click();\ncy.get('[data-testid=\"menu-item-alerts\"]').click();\ncy.get('[data-testid=\"suspend-flag-radio-during\"] > .el-radio__label').click();\ncy.get('[data-testid=\"suspend-flag-radio-during\"] > .el-radio__input > .el-radio__original').check();\ncy.get('[data-testid=\"suspend-flag-radio-all\"] > .el-radio__label').click();\ncy.get('[data-testid=\"suspend-flag-radio-all\"] > .el-radio__input > .el-radio__original').check();\ncy.get(':nth-child(1) > .el-table_3_column_31 > .cell > [data-testid=\"suspend-action-link\"]').click();\ncy.get('.el-dialog__headerbtn > .el-icon > svg').click();\n/* ==== End Cypress Studio ==== */",
"err": {
"message": "AssertionError: Timed out retrying after 15000ms: Expected to find element: `:nth-child(1) > .el-table_3_column_31 > .cell > [data-testid=\"suspend-action-link\"]`, but never found it.",
"estack": "AssertionError: Timed out retrying after 15000ms: Expected to find element: `:nth-child(1) > .el-table_3_column_31 > .cell > [data-testid=\"suspend-action-link\"]`, but never found it.\n at Context.eval (webpack://cypress-testing-tool/./cypress/e2e/DC-TOM告警总览.cy.js:42:7)",
"diff": null
},
"uuid": "f2194bfd-a186-4282-a2e1-265f74e02f98",
"parentUUID": "97eb7d0b-d060-4754-b99d-a12ff8d2b85e",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [],
"failures": [
"f2194bfd-a186-4282-a2e1-265f74e02f98"
],
"pending": [],
"skipped": [],
"duration": 20761,
"root": false,
"rootEmpty": false,
"_timeout": 2000
}
],
"passes": [],
"failures": [],
"pending": [],
"skipped": [],
"duration": 0,
"root": true,
"rootEmpty": true,
"_timeout": 2000
}
],
"meta": {
"mocha": {
"version": "7.0.1"
},
"mochawesome": {
"options": {
"quiet": false,
"reportFilename": "mochawesome",
"saveHtml": true,
"saveJson": true,
"consoleReporter": "spec",
"useInlineDiffs": false,
"code": true
},
"version": "7.1.3"
},
"marge": {
"options": {
"reportDir": "cypress/reports",
"overwrite": false,
"html": true,
"json": true,
"timestamp": "mmddyyyy_HHMMss",
"reportTitle": "Development Tests",
"reportPageTitle": "开发环境测试报告"
},
"version": "6.2.0"
}
}
}
\ No newline at end of file
<!doctype html>
<html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1"/><title>开发环境测试报告</title><link rel="stylesheet" href="assets/app.css"/></head><body data-raw="{&quot;stats&quot;:{&quot;suites&quot;:1,&quot;tests&quot;:1,&quot;passes&quot;:1,&quot;pending&quot;:0,&quot;failures&quot;:0,&quot;start&quot;:&quot;2025-09-08T07:27:02.034Z&quot;,&quot;end&quot;:&quot;2025-09-08T07:27:06.094Z&quot;,&quot;duration&quot;:4060,&quot;testsRegistered&quot;:1,&quot;passPercent&quot;:100,&quot;pendingPercent&quot;:0,&quot;other&quot;:0,&quot;hasOther&quot;:false,&quot;skipped&quot;:0,&quot;hasSkipped&quot;:false},&quot;results&quot;:[{&quot;uuid&quot;:&quot;46c00aa5-0650-4929-9351-15df11e14e94&quot;,&quot;title&quot;:&quot;&quot;,&quot;fullFile&quot;:&quot;cypress/e2e/DC-TOM布袋周期.cy.js&quot;,&quot;file&quot;:&quot;cypress/e2e/DC-TOM布袋周期.cy.js&quot;,&quot;beforeHooks&quot;:[],&quot;afterHooks&quot;:[],&quot;tests&quot;:[],&quot;suites&quot;:[{&quot;uuid&quot;:&quot;a9302c4b-4e6c-40dd-8ed6-faf97dce605f&quot;,&quot;title&quot;:&quot;template spec&quot;,&quot;fullFile&quot;:&quot;&quot;,&quot;file&quot;:&quot;&quot;,&quot;beforeHooks&quot;:[],&quot;afterHooks&quot;:[],&quot;tests&quot;:[{&quot;title&quot;:&quot;DC-TOM布袋周期&quot;,&quot;fullTitle&quot;:&quot;template spec DC-TOM布袋周期&quot;,&quot;duration&quot;:3992,&quot;state&quot;:&quot;passed&quot;,&quot;speed&quot;:&quot;fast&quot;,&quot;pass&quot;:true,&quot;fail&quot;:false,&quot;pending&quot;:false,&quot;code&quot;:&quot;/* ==== Generated with Cypress Studio ==== */\ncy.visit(&#x27;https://screen.bmetech.com/admin/dctom/#/login&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-username-input\&quot;]&#x27;).clear(&#x27;zongheng_admin&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-username-input\&quot;]&#x27;).type(&#x27;zongheng_admin&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-password-input\&quot;]&#x27;).clear(&#x27;9%#F46vt&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-password-input\&quot;]&#x27;).type(&#x27;9%#F46vt&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-captcha-input\&quot;]&#x27;).clear(&#x27;8&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-captcha-input\&quot;]&#x27;).type(&#x27;8888&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-submit-button\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;menu-item-collectorList\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;collector-compart-input\&quot;]&#x27;).clear(&#x27;A&#x27;);\ncy.get(&#x27;[data-testid=\&quot;collector-compart-input\&quot;]&#x27;).type(&#x27;A_17&#x27;);\ncy.get(&#x27;[data-testid=\&quot;collector-search-button\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;collector-reset-button\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;collector-duster-name-input\&quot;]&#x27;).clear(&#x27;2&#x27;);\ncy.get(&#x27;[data-testid=\&quot;collector-duster-name-input\&quot;]&#x27;).type(&#x27;2#除尘系统&#x27;);\ncy.get(&#x27;[data-testid=\&quot;collector-search-button\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;collector-reset-button\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;collector-analysis-button\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;.el-dialog__headerbtn &gt; .el-icon &gt; svg&#x27;).click();\n/* ==== End Cypress Studio ==== */&quot;,&quot;err&quot;:{},&quot;uuid&quot;:&quot;d9615073-4c79-4d4a-bd8a-937f4f828a1d&quot;,&quot;parentUUID&quot;:&quot;a9302c4b-4e6c-40dd-8ed6-faf97dce605f&quot;,&quot;isHook&quot;:false,&quot;skipped&quot;:false}],&quot;suites&quot;:[],&quot;passes&quot;:[&quot;d9615073-4c79-4d4a-bd8a-937f4f828a1d&quot;],&quot;failures&quot;:[],&quot;pending&quot;:[],&quot;skipped&quot;:[],&quot;duration&quot;:3992,&quot;root&quot;:false,&quot;rootEmpty&quot;:false,&quot;_timeout&quot;:2000}],&quot;passes&quot;:[],&quot;failures&quot;:[],&quot;pending&quot;:[],&quot;skipped&quot;:[],&quot;duration&quot;:0,&quot;root&quot;:true,&quot;rootEmpty&quot;:true,&quot;_timeout&quot;:2000}],&quot;meta&quot;:{&quot;mocha&quot;:{&quot;version&quot;:&quot;7.0.1&quot;},&quot;mochawesome&quot;:{&quot;options&quot;:{&quot;quiet&quot;:false,&quot;reportFilename&quot;:&quot;mochawesome&quot;,&quot;saveHtml&quot;:true,&quot;saveJson&quot;:true,&quot;consoleReporter&quot;:&quot;spec&quot;,&quot;useInlineDiffs&quot;:false,&quot;code&quot;:true},&quot;version&quot;:&quot;7.1.3&quot;},&quot;marge&quot;:{&quot;options&quot;:{&quot;reportDir&quot;:&quot;cypress/reports&quot;,&quot;overwrite&quot;:false,&quot;html&quot;:true,&quot;json&quot;:true,&quot;timestamp&quot;:&quot;mmddyyyy_HHMMss&quot;,&quot;reportTitle&quot;:&quot;Development Tests&quot;,&quot;reportPageTitle&quot;:&quot;开发环境测试报告&quot;},&quot;version&quot;:&quot;6.2.0&quot;}}}" data-config="{&quot;reportFilename&quot;:&quot;mochawesome&quot;,&quot;reportDir&quot;:&quot;cypress/reports&quot;,&quot;reportTitle&quot;:&quot;Development Tests&quot;,&quot;reportPageTitle&quot;:&quot;开发环境测试报告&quot;,&quot;inline&quot;:false,&quot;inlineAssets&quot;:false,&quot;cdn&quot;:false,&quot;charts&quot;:false,&quot;enableCharts&quot;:false,&quot;code&quot;:true,&quot;enableCode&quot;:true,&quot;autoOpen&quot;:false,&quot;overwrite&quot;:false,&quot;timestamp&quot;:&quot;mmddyyyy_HHMMss&quot;,&quot;ts&quot;:&quot;mmddyyyy_HHMMss&quot;,&quot;showPassed&quot;:true,&quot;showFailed&quot;:true,&quot;showPending&quot;:true,&quot;showSkipped&quot;:false,&quot;showHooks&quot;:&quot;failed&quot;,&quot;saveJson&quot;:true,&quot;saveHtml&quot;:true,&quot;dev&quot;:false,&quot;assetsDir&quot;:&quot;cypress/reports/assets&quot;,&quot;jsonFile&quot;:&quot;/Users/cw/Desktop/BME/dc-tom/cypress/reports/mochawesome_09082025_152706.json&quot;,&quot;htmlFile&quot;:&quot;/Users/cw/Desktop/BME/dc-tom/cypress/reports/mochawesome_09082025_152706.html&quot;}"><div id="report"></div><script src="assets/app.js"></script></body></html>
\ No newline at end of file
{
"stats": {
"suites": 1,
"tests": 1,
"passes": 1,
"pending": 0,
"failures": 0,
"start": "2025-09-08T07:27:02.034Z",
"end": "2025-09-08T07:27:06.094Z",
"duration": 4060,
"testsRegistered": 1,
"passPercent": 100,
"pendingPercent": 0,
"other": 0,
"hasOther": false,
"skipped": 0,
"hasSkipped": false
},
"results": [
{
"uuid": "46c00aa5-0650-4929-9351-15df11e14e94",
"title": "",
"fullFile": "cypress/e2e/DC-TOM布袋周期.cy.js",
"file": "cypress/e2e/DC-TOM布袋周期.cy.js",
"beforeHooks": [],
"afterHooks": [],
"tests": [],
"suites": [
{
"uuid": "a9302c4b-4e6c-40dd-8ed6-faf97dce605f",
"title": "template spec",
"fullFile": "",
"file": "",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
"title": "DC-TOM布袋周期",
"fullTitle": "template spec DC-TOM布袋周期",
"timedOut": null,
"duration": 3992,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "/* ==== Generated with Cypress Studio ==== */\ncy.visit('https://screen.bmetech.com/admin/dctom/#/login');\ncy.get('[data-testid=\"login-username-input\"]').clear('zongheng_admin');\ncy.get('[data-testid=\"login-username-input\"]').type('zongheng_admin');\ncy.get('[data-testid=\"login-password-input\"]').clear('9%#F46vt');\ncy.get('[data-testid=\"login-password-input\"]').type('9%#F46vt');\ncy.get('[data-testid=\"login-captcha-input\"]').clear('8');\ncy.get('[data-testid=\"login-captcha-input\"]').type('8888');\ncy.get('[data-testid=\"login-submit-button\"] > span').click();\ncy.get('[data-testid=\"menu-item-collectorList\"] > span').click();\ncy.get('[data-testid=\"collector-compart-input\"]').clear('A');\ncy.get('[data-testid=\"collector-compart-input\"]').type('A_17');\ncy.get('[data-testid=\"collector-search-button\"] > span').click();\ncy.get('[data-testid=\"collector-reset-button\"] > span').click();\ncy.get('[data-testid=\"collector-duster-name-input\"]').clear('2');\ncy.get('[data-testid=\"collector-duster-name-input\"]').type('2#除尘系统');\ncy.get('[data-testid=\"collector-search-button\"]').click();\ncy.get('[data-testid=\"collector-reset-button\"] > span').click();\ncy.get('[data-testid=\"collector-analysis-button\"] > span').click();\ncy.get('.el-dialog__headerbtn > .el-icon > svg').click();\n/* ==== End Cypress Studio ==== */",
"err": {},
"uuid": "d9615073-4c79-4d4a-bd8a-937f4f828a1d",
"parentUUID": "a9302c4b-4e6c-40dd-8ed6-faf97dce605f",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
"d9615073-4c79-4d4a-bd8a-937f4f828a1d"
],
"failures": [],
"pending": [],
"skipped": [],
"duration": 3992,
"root": false,
"rootEmpty": false,
"_timeout": 2000
}
],
"passes": [],
"failures": [],
"pending": [],
"skipped": [],
"duration": 0,
"root": true,
"rootEmpty": true,
"_timeout": 2000
}
],
"meta": {
"mocha": {
"version": "7.0.1"
},
"mochawesome": {
"options": {
"quiet": false,
"reportFilename": "mochawesome",
"saveHtml": true,
"saveJson": true,
"consoleReporter": "spec",
"useInlineDiffs": false,
"code": true
},
"version": "7.1.3"
},
"marge": {
"options": {
"reportDir": "cypress/reports",
"overwrite": false,
"html": true,
"json": true,
"timestamp": "mmddyyyy_HHMMss",
"reportTitle": "Development Tests",
"reportPageTitle": "开发环境测试报告"
},
"version": "6.2.0"
}
}
}
\ No newline at end of file
This diff is collapsed.
{
"stats": {
"suites": 1,
"tests": 1,
"passes": 0,
"pending": 0,
"failures": 1,
"start": "2025-09-08T07:27:08.050Z",
"end": "2025-09-08T07:28:10.734Z",
"duration": 62684,
"testsRegistered": 1,
"passPercent": 0,
"pendingPercent": 0,
"other": 0,
"hasOther": false,
"skipped": 0,
"hasSkipped": false
},
"results": [
{
"uuid": "2473314f-e498-49eb-a21b-ae91bdb447c9",
"title": "",
"fullFile": "cypress/e2e/DC-TOM我的闭环.cy.js",
"file": "cypress/e2e/DC-TOM我的闭环.cy.js",
"beforeHooks": [],
"afterHooks": [],
"tests": [],
"suites": [
{
"uuid": "c9cf8dcf-09b8-4a8b-9f83-25f09f787a27",
"title": "template spec",
"fullFile": "",
"file": "",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
"title": "DC-TOM我的闭环",
"fullTitle": "template spec DC-TOM我的闭环",
"timedOut": null,
"duration": 21343,
"state": "failed",
"speed": null,
"pass": false,
"fail": true,
"pending": false,
"context": null,
"code": "/* ==== Generated with Cypress Studio ==== */\ncy.visit('https://screen.bmetech.com/admin/dctom/#/login');\ncy.get('[data-testid=\"login-username-input\"]').clear('zongheng_admin');\ncy.get('[data-testid=\"login-username-input\"]').type('zongheng_admin');\ncy.get('[data-testid=\"login-password-input\"]').clear('9%#F46vt');\ncy.get('[data-testid=\"login-password-input\"]').type('9%#F46vt');\ncy.get('[data-testid=\"login-captcha-input\"]').clear('8');\ncy.get('[data-testid=\"login-captcha-input\"]').type('8888');\ncy.get('[data-testid=\"login-submit-button\"] > span').click();\ncy.get('[data-testid=\"menu-submenu-my-loop\"] > .el-sub-menu__title > span').click();\ncy.get('[data-testid=\"menu-item-my-loop/myAgency\"] > span').click();\ncy.get('[data-testid=\"my-agency-event-name-input\"]').clear('m');\ncy.get('[data-testid=\"my-agency-event-name-input\"]').type('脉冲阀');\ncy.get('[data-testid=\"my-agency-search-button\"]').click();\ncy.get('[data-testid=\"my-agency-reset-button\"] > span').click();\ncy.get('[data-testid=\"my-agency-keyword-input\"]').clear('2');\ncy.get('[data-testid=\"my-agency-keyword-input\"]').type('2#除尘系统');\ncy.get('[data-testid=\"my-agency-search-button\"] > span').click();\ncy.get('[data-testid=\"my-agency-reset-button\"] > span').click();\ncy.get('[data-testid=\"my-agency-production-line-select\"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder').click();\ncy.get('#production-line-option-1').click();\ncy.get('[data-testid=\"my-agency-search-button\"] > span').click();\ncy.get('[data-testid=\"my-agency-reset-button\"] > span').click();\ncy.get('[data-testid=\"my-agency-device-type-select\"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder').click();\ncy.get('#device-type-option-0').click();\ncy.get('[data-testid=\"my-agency-search-button\"] > span').click();\ncy.get('[data-testid=\"my-agency-device-type-select\"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder').click();\ncy.get('#device-type-option-1').click();\ncy.get('[data-testid=\"my-agency-search-button\"] > span').click();\ncy.get('[data-testid=\"my-agency-device-type-select\"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder').click();\ncy.get('#device-type-option-2').click();\ncy.get('[data-testid=\"my-agency-search-button\"] > span').click();\ncy.get('[data-testid=\"my-agency-reset-button\"]').click();\ncy.get(':nth-child(1) > .el-table_1_column_14 > .cell > [data-testid=\"my-agency-process-button\"]').click();\ncy.get('.el-dialog__headerbtn > .el-icon > svg').click();\ncy.get(':nth-child(1) > .el-table_1_column_14 > .cell > [data-testid=\"my-agency-dispatch-button\"]').click();\ncy.get('[data-testid=\"assign-dialog\"] > .el-dialog__header > .el-dialog__headerbtn > .el-icon > svg > path').click();\ncy.get(':nth-child(1) > .el-table_1_column_14 > .cell > [data-testid=\"my-agency-change-bag-button\"]').click();\ncy.get('[data-testid=\"bag-dialog\"] > .el-dialog__header > .el-dialog__headerbtn > .el-icon > svg').click();\ncy.get('[data-testid=\"menu-item-my-loop/myDone\"] > span').click();\ncy.get('[data-testid=\"event-name-input\"]').clear('t');\ncy.get('[data-testid=\"event-name-input\"]').type('提升阀');\ncy.get('[data-testid=\"search-button\"] > span').click();\ncy.get('[data-testid=\"reset-button\"] > span').click();\ncy.get('[data-testid=\"location-input\"]').clear('2');\ncy.get('[data-testid=\"location-input\"]').type('2#除尘系统');\ncy.get('[data-testid=\"search-button\"]').click();\ncy.get('[data-testid=\"reset-button\"] > span').click();\ncy.get('[data-testid=\"production-line-select\"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder').click();\ncy.get('#production-line-option-1').click();\ncy.get('[data-testid=\"search-button\"]').click();\ncy.get('[data-testid=\"reset-button\"] > span').click();\ncy.get('[data-testid=\"device-type-select\"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder').click();\ncy.get('#device-type-option-0').click();\ncy.get('[data-testid=\"search-button\"]').click();\ncy.get('[data-testid=\"device-type-select\"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder').click();\ncy.get('#device-type-option-1').click();\ncy.get('[data-testid=\"search-button\"] > span').click();\ncy.get('[data-testid=\"device-type-select\"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder').click();\ncy.get('#device-type-option-2').click();\ncy.get('[data-testid=\"search-button\"] > span').click();\ncy.get('[data-testid=\"reset-button\"]').click();\n/* ==== End Cypress Studio ==== */",
"err": {
"message": "AssertionError: Timed out retrying after 15000ms: Expected to find element: `:nth-child(1) > .el-table_1_column_14 > .cell > [data-testid=\"my-agency-process-button\"]`, but never found it.",
"estack": "AssertionError: Timed out retrying after 15000ms: Expected to find element: `:nth-child(1) > .el-table_1_column_14 > .cell > [data-testid=\"my-agency-process-button\"]`, but never found it.\n at Context.eval (webpack://cypress-testing-tool/./cypress/e2e/DC-TOM我的闭环.cy.js:36:7)",
"diff": null
},
"uuid": "70d96993-d981-4b98-acb8-57e713b1bffa",
"parentUUID": "c9cf8dcf-09b8-4a8b-9f83-25f09f787a27",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [],
"failures": [
"70d96993-d981-4b98-acb8-57e713b1bffa"
],
"pending": [],
"skipped": [],
"duration": 21343,
"root": false,
"rootEmpty": false,
"_timeout": 2000
}
],
"passes": [],
"failures": [],
"pending": [],
"skipped": [],
"duration": 0,
"root": true,
"rootEmpty": true,
"_timeout": 2000
}
],
"meta": {
"mocha": {
"version": "7.0.1"
},
"mochawesome": {
"options": {
"quiet": false,
"reportFilename": "mochawesome",
"saveHtml": true,
"saveJson": true,
"consoleReporter": "spec",
"useInlineDiffs": false,
"code": true
},
"version": "7.1.3"
},
"marge": {
"options": {
"reportDir": "cypress/reports",
"overwrite": false,
"html": true,
"json": true,
"timestamp": "mmddyyyy_HHMMss",
"reportTitle": "Development Tests",
"reportPageTitle": "开发环境测试报告"
},
"version": "6.2.0"
}
}
}
\ No newline at end of file
This diff is collapsed.
{
"stats": {
"suites": 1,
"tests": 1,
"passes": 0,
"pending": 0,
"failures": 1,
"start": "2025-09-08T07:28:13.131Z",
"end": "2025-09-08T07:29:15.051Z",
"duration": 61920,
"testsRegistered": 1,
"passPercent": 0,
"pendingPercent": 0,
"other": 0,
"hasOther": false,
"skipped": 0,
"hasSkipped": false
},
"results": [
{
"uuid": "d9a22e0d-c649-4454-ba41-7f4ddf5dabeb",
"title": "",
"fullFile": "cypress/e2e/DC-TOM设备管理.cy.js",
"file": "cypress/e2e/DC-TOM设备管理.cy.js",
"beforeHooks": [],
"afterHooks": [],
"tests": [],
"suites": [
{
"uuid": "4ee4ef58-5b18-463e-823d-2fd8b4e15a2d",
"title": "template spec",
"fullFile": "",
"file": "",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
"title": "DC-TOM设备管理",
"fullTitle": "template spec DC-TOM设备管理",
"timedOut": null,
"duration": 21208,
"state": "failed",
"speed": null,
"pass": false,
"fail": true,
"pending": false,
"context": null,
"code": "/* ==== Generated with Cypress Studio ==== */\ncy.visit('https://screen.bmetech.com/admin/dctom/#/login');\ncy.get('[data-testid=\"login-username-input\"]').clear('zongheng_admin');\ncy.get('[data-testid=\"login-username-input\"]').type('zongheng_admin');\ncy.get('[data-testid=\"login-password-input\"]').clear('9%#F46vt');\ncy.get('[data-testid=\"login-password-input\"]').type('9%#F46vt');\ncy.get('[data-testid=\"login-captcha-input\"]').clear('8');\ncy.get('[data-testid=\"login-captcha-input\"]').type('8888');\ncy.get('[data-testid=\"login-submit-button\"]').click();\ncy.get('[data-testid=\"menu-submenu-device-management\"] > .el-sub-menu__title').click();\ncy.get('[data-testid=\"menu-item-management/device-management\"] > span').click();\ncy.get('[data-testid=\"equipment-production-line-select\"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder').click();\ncy.get('#equipment-production-line-option-1').click();\ncy.get('[data-testid=\"equipment-search-button\"] > span').click();\ncy.get('[data-testid=\"equipment-reset-button\"] > span').click();\ncy.get('[data-testid=\"equipment-duster-name-input\"]').clear('2');\ncy.get('[data-testid=\"equipment-duster-name-input\"]').type('2#除尘系统');\ncy.get('[data-testid=\"equipment-search-button\"] > span').click();\ncy.get('[data-testid=\"equipment-reset-button\"] > span').click();\ncy.get('[data-testid=\"equipment-device-name-input\"]').clear('bu');\ncy.get('[data-testid=\"equipment-device-name-input\"]').type('布袋仪表');\ncy.get('[data-testid=\"equipment-search-button\"] > span').click();\ncy.get('[data-testid=\"equipment-reset-button\"] > span').click();\ncy.get('[data-testid=\"equipment-device-type-select\"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder').click();\ncy.get('#equipment-device-type-option-1').click();\ncy.get('[data-testid=\"equipment-search-button\"] > span').click();\ncy.get('[data-testid=\"equipment-device-type-select\"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder > span').click();\ncy.get('#equipment-device-type-option-2').click();\ncy.get('[data-testid=\"equipment-search-button\"] > span').click();\ncy.get('[data-testid=\"equipment-reset-button\"] > span').click();\ncy.get(':nth-child(1) > .el-table_1_column_11 > .cell > [data-testid=\"equipment-params-button\"] > span').click();\ncy.get('[data-testid=\"confirm-button\"]').click();\ncy.get('[data-testid=\"menu-item-management/suspend-management\"] > span').click();\ncy.get('[data-testid=\"project-select\"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder').click();\ncy.get('#project-option-0').click();\ncy.get('[data-testid=\"search-button\"] > span').click();\ncy.get('[data-testid=\"device-type-select\"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder > span').click();\ncy.get('#device-type-option-0').click();\ncy.get('[data-testid=\"search-button\"] > span').click();\ncy.get('[data-testid=\"device-type-select\"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder').click();\ncy.get('#device-type-option-1').click();\ncy.get('[data-testid=\"search-button\"]').click();\ncy.get('[data-testid=\"device-type-select\"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder').click();\ncy.get('#device-type-option-2').click();\ncy.get('[data-testid=\"search-button\"]').click();\ncy.get('[data-testid=\"reset-button\"] > span').click();\ncy.get('[data-testid=\"reason-category-select\"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder').click();\ncy.get('#reason-category-option-1').click();\ncy.get('[data-testid=\"search-button\"] > span').click();\ncy.get('[data-testid=\"reason-category-select\"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder > span').click();\ncy.get('#reason-category-option-2').click();\ncy.get('[data-testid=\"search-button\"] > span').click();\ncy.get('[data-testid=\"reason-category-select\"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder > span').click();\ncy.get('#reason-category-option-3').click();\ncy.get('[data-testid=\"search-button\"]').click();\ncy.get('[data-testid=\"reset-button\"] > span').click();\ncy.get(':nth-child(1) > .el-table_2_column_24 > .cell > [data-testid=\"suspend-alarm-link\"]').click();\ncy.get('[data-testid=\"menu-item-management/suspend-management\"] > span').click();\n/* ==== End Cypress Studio ==== */",
"err": {
"message": "AssertionError: Timed out retrying after 15000ms: Expected to find element: `:nth-child(1) > .el-table_1_column_11 > .cell > [data-testid=\"equipment-params-button\"] > span`, but never found it.",
"estack": "AssertionError: Timed out retrying after 15000ms: Expected to find element: `:nth-child(1) > .el-table_1_column_11 > .cell > [data-testid=\"equipment-params-button\"] > span`, but never found it.\n at Context.eval (webpack://cypress-testing-tool/./cypress/e2e/DC-TOM设备管理.cy.js:33:7)",
"diff": null
},
"uuid": "5050f3d9-6e8b-4fac-920a-a2b719109546",
"parentUUID": "4ee4ef58-5b18-463e-823d-2fd8b4e15a2d",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [],
"failures": [
"5050f3d9-6e8b-4fac-920a-a2b719109546"
],
"pending": [],
"skipped": [],
"duration": 21208,
"root": false,
"rootEmpty": false,
"_timeout": 2000
}
],
"passes": [],
"failures": [],
"pending": [],
"skipped": [],
"duration": 0,
"root": true,
"rootEmpty": true,
"_timeout": 2000
}
],
"meta": {
"mocha": {
"version": "7.0.1"
},
"mochawesome": {
"options": {
"quiet": false,
"reportFilename": "mochawesome",
"saveHtml": true,
"saveJson": true,
"consoleReporter": "spec",
"useInlineDiffs": false,
"code": true
},
"version": "7.1.3"
},
"marge": {
"options": {
"reportDir": "cypress/reports",
"overwrite": false,
"html": true,
"json": true,
"timestamp": "mmddyyyy_HHMMss",
"reportTitle": "Development Tests",
"reportPageTitle": "开发环境测试报告"
},
"version": "6.2.0"
}
}
}
\ No newline at end of file
<!doctype html>
<html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1"/><title>开发环境测试报告</title><link rel="stylesheet" href="assets/app.css"/></head><body data-raw="{&quot;stats&quot;:{&quot;suites&quot;:1,&quot;tests&quot;:1,&quot;passes&quot;:1,&quot;pending&quot;:0,&quot;failures&quot;:0,&quot;start&quot;:&quot;2025-09-08T07:29:17.007Z&quot;,&quot;end&quot;:&quot;2025-09-08T07:29:25.275Z&quot;,&quot;duration&quot;:8268,&quot;testsRegistered&quot;:1,&quot;passPercent&quot;:100,&quot;pendingPercent&quot;:0,&quot;other&quot;:0,&quot;hasOther&quot;:false,&quot;skipped&quot;:0,&quot;hasSkipped&quot;:false},&quot;results&quot;:[{&quot;uuid&quot;:&quot;9a3d6a1d-e23a-479c-be90-469c1d029f46&quot;,&quot;title&quot;:&quot;&quot;,&quot;fullFile&quot;:&quot;cypress/e2e/DC-TOM除尘器总览.cy.js&quot;,&quot;file&quot;:&quot;cypress/e2e/DC-TOM除尘器总览.cy.js&quot;,&quot;beforeHooks&quot;:[],&quot;afterHooks&quot;:[],&quot;tests&quot;:[],&quot;suites&quot;:[{&quot;uuid&quot;:&quot;15b35d39-c949-4962-916a-439fc99ad445&quot;,&quot;title&quot;:&quot;template spec&quot;,&quot;fullFile&quot;:&quot;&quot;,&quot;file&quot;:&quot;&quot;,&quot;beforeHooks&quot;:[],&quot;afterHooks&quot;:[],&quot;tests&quot;:[{&quot;title&quot;:&quot;DC-TOM除尘器总览&quot;,&quot;fullTitle&quot;:&quot;template spec DC-TOM除尘器总览&quot;,&quot;duration&quot;:8232,&quot;state&quot;:&quot;passed&quot;,&quot;speed&quot;:&quot;medium&quot;,&quot;pass&quot;:true,&quot;fail&quot;:false,&quot;pending&quot;:false,&quot;code&quot;:&quot;/* ==== Generated with Cypress Studio ==== */\ncy.visit(&#x27;https://screen.bmetech.com/admin/dctom/#/login&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-username-input\&quot;]&#x27;).clear(&#x27;zo&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-username-input\&quot;]&#x27;).type(&#x27;zongheng_admin&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-password-input\&quot;]&#x27;).clear();\ncy.get(&#x27;[data-testid=\&quot;login-password-input\&quot;]&#x27;).type(&#x27;9%#F46vt&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-captcha-input\&quot;]&#x27;).clear(&#x27;8&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-captcha-input\&quot;]&#x27;).type(&#x27;8888&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-submit-button\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;menu-item-dust-overview\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;dust-leak-alert-card\&quot;] &gt; .title&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;menu-item-dust-overview\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;dust-close-loop-card\&quot;] &gt; img&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;menu-item-dust-overview\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;dust-production-line-select\&quot;] &gt; .el-select__wrapper&#x27;).click();\ncy.get(&#x27;#production-line-option-1&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;dust-search-button\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;dust-reset-button\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;dust-device-name-input\&quot;]&#x27;).clear(&#x27;1&#x27;);\ncy.get(&#x27;[data-testid=\&quot;dust-device-name-input\&quot;]&#x27;).type(&#x27;1#除尘系统&#x27;);\ncy.get(&#x27;[data-testid=\&quot;dust-search-button\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;dust-add-button\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;cancel-button\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;compartment-count-link\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;dialog-footer\&quot;] &gt; [data-testid=\&quot;confirm-button\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;valve-count-link\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;save-button\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;.status-matrix &gt; :nth-child(1) &gt; :nth-child(1)&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;menu-item-dust-overview\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;cell-0-operation\&quot;] &gt; [data-testid=\&quot;dust-view-button\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;menu-item-dust-overview\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;cell-0-operation\&quot;] &gt; [data-testid=\&quot;dust-edit-button\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;confirm-button\&quot;]&#x27;).click();\n/* ==== End Cypress Studio ==== */&quot;,&quot;err&quot;:{},&quot;uuid&quot;:&quot;9e087a58-4e5a-464a-99ca-a45225d30a8c&quot;,&quot;parentUUID&quot;:&quot;15b35d39-c949-4962-916a-439fc99ad445&quot;,&quot;isHook&quot;:false,&quot;skipped&quot;:false}],&quot;suites&quot;:[],&quot;passes&quot;:[&quot;9e087a58-4e5a-464a-99ca-a45225d30a8c&quot;],&quot;failures&quot;:[],&quot;pending&quot;:[],&quot;skipped&quot;:[],&quot;duration&quot;:8232,&quot;root&quot;:false,&quot;rootEmpty&quot;:false,&quot;_timeout&quot;:2000}],&quot;passes&quot;:[],&quot;failures&quot;:[],&quot;pending&quot;:[],&quot;skipped&quot;:[],&quot;duration&quot;:0,&quot;root&quot;:true,&quot;rootEmpty&quot;:true,&quot;_timeout&quot;:2000}],&quot;meta&quot;:{&quot;mocha&quot;:{&quot;version&quot;:&quot;7.0.1&quot;},&quot;mochawesome&quot;:{&quot;options&quot;:{&quot;quiet&quot;:false,&quot;reportFilename&quot;:&quot;mochawesome&quot;,&quot;saveHtml&quot;:true,&quot;saveJson&quot;:true,&quot;consoleReporter&quot;:&quot;spec&quot;,&quot;useInlineDiffs&quot;:false,&quot;code&quot;:true},&quot;version&quot;:&quot;7.1.3&quot;},&quot;marge&quot;:{&quot;options&quot;:{&quot;reportDir&quot;:&quot;cypress/reports&quot;,&quot;overwrite&quot;:false,&quot;html&quot;:true,&quot;json&quot;:true,&quot;timestamp&quot;:&quot;mmddyyyy_HHMMss&quot;,&quot;reportTitle&quot;:&quot;Development Tests&quot;,&quot;reportPageTitle&quot;:&quot;开发环境测试报告&quot;},&quot;version&quot;:&quot;6.2.0&quot;}}}" data-config="{&quot;reportFilename&quot;:&quot;mochawesome&quot;,&quot;reportDir&quot;:&quot;cypress/reports&quot;,&quot;reportTitle&quot;:&quot;Development Tests&quot;,&quot;reportPageTitle&quot;:&quot;开发环境测试报告&quot;,&quot;inline&quot;:false,&quot;inlineAssets&quot;:false,&quot;cdn&quot;:false,&quot;charts&quot;:false,&quot;enableCharts&quot;:false,&quot;code&quot;:true,&quot;enableCode&quot;:true,&quot;autoOpen&quot;:false,&quot;overwrite&quot;:false,&quot;timestamp&quot;:&quot;mmddyyyy_HHMMss&quot;,&quot;ts&quot;:&quot;mmddyyyy_HHMMss&quot;,&quot;showPassed&quot;:true,&quot;showFailed&quot;:true,&quot;showPending&quot;:true,&quot;showSkipped&quot;:false,&quot;showHooks&quot;:&quot;failed&quot;,&quot;saveJson&quot;:true,&quot;saveHtml&quot;:true,&quot;dev&quot;:false,&quot;assetsDir&quot;:&quot;cypress/reports/assets&quot;,&quot;jsonFile&quot;:&quot;/Users/cw/Desktop/BME/dc-tom/cypress/reports/mochawesome_09082025_152925.json&quot;,&quot;htmlFile&quot;:&quot;/Users/cw/Desktop/BME/dc-tom/cypress/reports/mochawesome_09082025_152925.html&quot;}"><div id="report"></div><script src="assets/app.js"></script></body></html>
\ No newline at end of file
{
"stats": {
"suites": 1,
"tests": 1,
"passes": 1,
"pending": 0,
"failures": 0,
"start": "2025-09-08T07:29:17.007Z",
"end": "2025-09-08T07:29:25.275Z",
"duration": 8268,
"testsRegistered": 1,
"passPercent": 100,
"pendingPercent": 0,
"other": 0,
"hasOther": false,
"skipped": 0,
"hasSkipped": false
},
"results": [
{
"uuid": "9a3d6a1d-e23a-479c-be90-469c1d029f46",
"title": "",
"fullFile": "cypress/e2e/DC-TOM除尘器总览.cy.js",
"file": "cypress/e2e/DC-TOM除尘器总览.cy.js",
"beforeHooks": [],
"afterHooks": [],
"tests": [],
"suites": [
{
"uuid": "15b35d39-c949-4962-916a-439fc99ad445",
"title": "template spec",
"fullFile": "",
"file": "",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
"title": "DC-TOM除尘器总览",
"fullTitle": "template spec DC-TOM除尘器总览",
"timedOut": null,
"duration": 8232,
"state": "passed",
"speed": "medium",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "/* ==== Generated with Cypress Studio ==== */\ncy.visit('https://screen.bmetech.com/admin/dctom/#/login');\ncy.get('[data-testid=\"login-username-input\"]').clear('zo');\ncy.get('[data-testid=\"login-username-input\"]').type('zongheng_admin');\ncy.get('[data-testid=\"login-password-input\"]').clear();\ncy.get('[data-testid=\"login-password-input\"]').type('9%#F46vt');\ncy.get('[data-testid=\"login-captcha-input\"]').clear('8');\ncy.get('[data-testid=\"login-captcha-input\"]').type('8888');\ncy.get('[data-testid=\"login-submit-button\"]').click();\ncy.get('[data-testid=\"menu-item-dust-overview\"] > span').click();\ncy.get('[data-testid=\"dust-leak-alert-card\"] > .title').click();\ncy.get('[data-testid=\"menu-item-dust-overview\"]').click();\ncy.get('[data-testid=\"dust-close-loop-card\"] > img').click();\ncy.get('[data-testid=\"menu-item-dust-overview\"] > span').click();\ncy.get('[data-testid=\"dust-production-line-select\"] > .el-select__wrapper').click();\ncy.get('#production-line-option-1').click();\ncy.get('[data-testid=\"dust-search-button\"] > span').click();\ncy.get('[data-testid=\"dust-reset-button\"] > span').click();\ncy.get('[data-testid=\"dust-device-name-input\"]').clear('1');\ncy.get('[data-testid=\"dust-device-name-input\"]').type('1#除尘系统');\ncy.get('[data-testid=\"dust-search-button\"]').click();\ncy.get('[data-testid=\"dust-add-button\"] > span').click();\ncy.get('[data-testid=\"cancel-button\"]').click();\ncy.get('[data-testid=\"compartment-count-link\"]').click();\ncy.get('[data-testid=\"dialog-footer\"] > [data-testid=\"confirm-button\"] > span').click();\ncy.get('[data-testid=\"valve-count-link\"]').click();\ncy.get('[data-testid=\"save-button\"] > span').click();\ncy.get('.status-matrix > :nth-child(1) > :nth-child(1)').click();\ncy.get('[data-testid=\"menu-item-dust-overview\"] > span').click();\ncy.get('[data-testid=\"cell-0-operation\"] > [data-testid=\"dust-view-button\"]').click();\ncy.get('[data-testid=\"menu-item-dust-overview\"] > span').click();\ncy.get('[data-testid=\"cell-0-operation\"] > [data-testid=\"dust-edit-button\"]').click();\ncy.get('[data-testid=\"confirm-button\"]').click();\n/* ==== End Cypress Studio ==== */",
"err": {},
"uuid": "9e087a58-4e5a-464a-99ca-a45225d30a8c",
"parentUUID": "15b35d39-c949-4962-916a-439fc99ad445",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
"9e087a58-4e5a-464a-99ca-a45225d30a8c"
],
"failures": [],
"pending": [],
"skipped": [],
"duration": 8232,
"root": false,
"rootEmpty": false,
"_timeout": 2000
}
],
"passes": [],
"failures": [],
"pending": [],
"skipped": [],
"duration": 0,
"root": true,
"rootEmpty": true,
"_timeout": 2000
}
],
"meta": {
"mocha": {
"version": "7.0.1"
},
"mochawesome": {
"options": {
"quiet": false,
"reportFilename": "mochawesome",
"saveHtml": true,
"saveJson": true,
"consoleReporter": "spec",
"useInlineDiffs": false,
"code": true
},
"version": "7.1.3"
},
"marge": {
"options": {
"reportDir": "cypress/reports",
"overwrite": false,
"html": true,
"json": true,
"timestamp": "mmddyyyy_HHMMss",
"reportTitle": "Development Tests",
"reportPageTitle": "开发环境测试报告"
},
"version": "6.2.0"
}
}
}
\ No newline at end of file
<!doctype html>
<html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1"/><title>开发环境测试报告</title><link rel="stylesheet" href="assets/app.css"/></head><body data-raw="{&quot;stats&quot;:{&quot;suites&quot;:1,&quot;tests&quot;:1,&quot;passes&quot;:1,&quot;pending&quot;:0,&quot;failures&quot;:0,&quot;start&quot;:&quot;2025-09-08T07:29:27.217Z&quot;,&quot;end&quot;:&quot;2025-09-08T07:29:31.614Z&quot;,&quot;duration&quot;:4397,&quot;testsRegistered&quot;:1,&quot;passPercent&quot;:100,&quot;pendingPercent&quot;:0,&quot;other&quot;:0,&quot;hasOther&quot;:false,&quot;skipped&quot;:0,&quot;hasSkipped&quot;:false},&quot;results&quot;:[{&quot;uuid&quot;:&quot;b6948d52-272e-4d81-ac81-82ba4c8d275e&quot;,&quot;title&quot;:&quot;&quot;,&quot;fullFile&quot;:&quot;cypress/e2e/DC-TOM除尘器监控.cy.js&quot;,&quot;file&quot;:&quot;cypress/e2e/DC-TOM除尘器监控.cy.js&quot;,&quot;beforeHooks&quot;:[],&quot;afterHooks&quot;:[],&quot;tests&quot;:[],&quot;suites&quot;:[{&quot;uuid&quot;:&quot;3c02a0ed-21d8-43b6-a665-73256a08f491&quot;,&quot;title&quot;:&quot;template spec&quot;,&quot;fullFile&quot;:&quot;&quot;,&quot;file&quot;:&quot;&quot;,&quot;beforeHooks&quot;:[],&quot;afterHooks&quot;:[],&quot;tests&quot;:[{&quot;title&quot;:&quot;DC-TOM除尘器监控&quot;,&quot;fullTitle&quot;:&quot;template spec DC-TOM除尘器监控&quot;,&quot;duration&quot;:4325,&quot;state&quot;:&quot;passed&quot;,&quot;speed&quot;:&quot;fast&quot;,&quot;pass&quot;:true,&quot;fail&quot;:false,&quot;pending&quot;:false,&quot;code&quot;:&quot;/* ==== Generated with Cypress Studio ==== */\ncy.visit(&#x27;https://screen.bmetech.com/admin/dctom/#/login&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-username-input\&quot;]&#x27;).clear(&#x27;zongheng_admin&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-username-input\&quot;]&#x27;).type(&#x27;zongheng_admin&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-password-input\&quot;]&#x27;).clear(&#x27;9%#F46vt&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-password-input\&quot;]&#x27;).type(&#x27;9%#F46vt&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-captcha-input\&quot;]&#x27;).clear(&#x27;8&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-captcha-input\&quot;]&#x27;).type(&#x27;8888&#x27;);\ncy.get(&#x27;[data-testid=\&quot;login-submit-button\&quot;]&#x27;).click();\ncy.get(&#x27;.el-select__wrapper&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;duster-option-0\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;compartment-health-matrix\&quot;] &gt; :nth-child(1)&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;compartment-health-matrix\&quot;] &gt; :nth-child(1) &gt; :nth-child(1)&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;menu-item-monitor\&quot;]&#x27;).click();\n/* ==== End Cypress Studio ==== */&quot;,&quot;err&quot;:{},&quot;uuid&quot;:&quot;54611ea2-fdc4-47a7-9570-aae7afc5fbb4&quot;,&quot;parentUUID&quot;:&quot;3c02a0ed-21d8-43b6-a665-73256a08f491&quot;,&quot;isHook&quot;:false,&quot;skipped&quot;:false}],&quot;suites&quot;:[],&quot;passes&quot;:[&quot;54611ea2-fdc4-47a7-9570-aae7afc5fbb4&quot;],&quot;failures&quot;:[],&quot;pending&quot;:[],&quot;skipped&quot;:[],&quot;duration&quot;:4325,&quot;root&quot;:false,&quot;rootEmpty&quot;:false,&quot;_timeout&quot;:2000}],&quot;passes&quot;:[],&quot;failures&quot;:[],&quot;pending&quot;:[],&quot;skipped&quot;:[],&quot;duration&quot;:0,&quot;root&quot;:true,&quot;rootEmpty&quot;:true,&quot;_timeout&quot;:2000}],&quot;meta&quot;:{&quot;mocha&quot;:{&quot;version&quot;:&quot;7.0.1&quot;},&quot;mochawesome&quot;:{&quot;options&quot;:{&quot;quiet&quot;:false,&quot;reportFilename&quot;:&quot;mochawesome&quot;,&quot;saveHtml&quot;:true,&quot;saveJson&quot;:true,&quot;consoleReporter&quot;:&quot;spec&quot;,&quot;useInlineDiffs&quot;:false,&quot;code&quot;:true},&quot;version&quot;:&quot;7.1.3&quot;},&quot;marge&quot;:{&quot;options&quot;:{&quot;reportDir&quot;:&quot;cypress/reports&quot;,&quot;overwrite&quot;:false,&quot;html&quot;:true,&quot;json&quot;:true,&quot;timestamp&quot;:&quot;mmddyyyy_HHMMss&quot;,&quot;reportTitle&quot;:&quot;Development Tests&quot;,&quot;reportPageTitle&quot;:&quot;开发环境测试报告&quot;},&quot;version&quot;:&quot;6.2.0&quot;}}}" data-config="{&quot;reportFilename&quot;:&quot;mochawesome&quot;,&quot;reportDir&quot;:&quot;cypress/reports&quot;,&quot;reportTitle&quot;:&quot;Development Tests&quot;,&quot;reportPageTitle&quot;:&quot;开发环境测试报告&quot;,&quot;inline&quot;:false,&quot;inlineAssets&quot;:false,&quot;cdn&quot;:false,&quot;charts&quot;:false,&quot;enableCharts&quot;:false,&quot;code&quot;:true,&quot;enableCode&quot;:true,&quot;autoOpen&quot;:false,&quot;overwrite&quot;:false,&quot;timestamp&quot;:&quot;mmddyyyy_HHMMss&quot;,&quot;ts&quot;:&quot;mmddyyyy_HHMMss&quot;,&quot;showPassed&quot;:true,&quot;showFailed&quot;:true,&quot;showPending&quot;:true,&quot;showSkipped&quot;:false,&quot;showHooks&quot;:&quot;failed&quot;,&quot;saveJson&quot;:true,&quot;saveHtml&quot;:true,&quot;dev&quot;:false,&quot;assetsDir&quot;:&quot;cypress/reports/assets&quot;,&quot;jsonFile&quot;:&quot;/Users/cw/Desktop/BME/dc-tom/cypress/reports/mochawesome_09082025_152931.json&quot;,&quot;htmlFile&quot;:&quot;/Users/cw/Desktop/BME/dc-tom/cypress/reports/mochawesome_09082025_152931.html&quot;}"><div id="report"></div><script src="assets/app.js"></script></body></html>
\ No newline at end of file
{
"stats": {
"suites": 1,
"tests": 1,
"passes": 1,
"pending": 0,
"failures": 0,
"start": "2025-09-08T07:29:27.217Z",
"end": "2025-09-08T07:29:31.614Z",
"duration": 4397,
"testsRegistered": 1,
"passPercent": 100,
"pendingPercent": 0,
"other": 0,
"hasOther": false,
"skipped": 0,
"hasSkipped": false
},
"results": [
{
"uuid": "b6948d52-272e-4d81-ac81-82ba4c8d275e",
"title": "",
"fullFile": "cypress/e2e/DC-TOM除尘器监控.cy.js",
"file": "cypress/e2e/DC-TOM除尘器监控.cy.js",
"beforeHooks": [],
"afterHooks": [],
"tests": [],
"suites": [
{
"uuid": "3c02a0ed-21d8-43b6-a665-73256a08f491",
"title": "template spec",
"fullFile": "",
"file": "",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
"title": "DC-TOM除尘器监控",
"fullTitle": "template spec DC-TOM除尘器监控",
"timedOut": null,
"duration": 4325,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "/* ==== Generated with Cypress Studio ==== */\ncy.visit('https://screen.bmetech.com/admin/dctom/#/login');\ncy.get('[data-testid=\"login-username-input\"]').clear('zongheng_admin');\ncy.get('[data-testid=\"login-username-input\"]').type('zongheng_admin');\ncy.get('[data-testid=\"login-password-input\"]').clear('9%#F46vt');\ncy.get('[data-testid=\"login-password-input\"]').type('9%#F46vt');\ncy.get('[data-testid=\"login-captcha-input\"]').clear('8');\ncy.get('[data-testid=\"login-captcha-input\"]').type('8888');\ncy.get('[data-testid=\"login-submit-button\"]').click();\ncy.get('.el-select__wrapper').click();\ncy.get('[data-testid=\"duster-option-0\"]').click();\ncy.get('[data-testid=\"compartment-health-matrix\"] > :nth-child(1)').click();\ncy.get('[data-testid=\"compartment-health-matrix\"] > :nth-child(1) > :nth-child(1)').click();\ncy.get('[data-testid=\"menu-item-monitor\"]').click();\n/* ==== End Cypress Studio ==== */",
"err": {},
"uuid": "54611ea2-fdc4-47a7-9570-aae7afc5fbb4",
"parentUUID": "3c02a0ed-21d8-43b6-a665-73256a08f491",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
"54611ea2-fdc4-47a7-9570-aae7afc5fbb4"
],
"failures": [],
"pending": [],
"skipped": [],
"duration": 4325,
"root": false,
"rootEmpty": false,
"_timeout": 2000
}
],
"passes": [],
"failures": [],
"pending": [],
"skipped": [],
"duration": 0,
"root": true,
"rootEmpty": true,
"_timeout": 2000
}
],
"meta": {
"mocha": {
"version": "7.0.1"
},
"mochawesome": {
"options": {
"quiet": false,
"reportFilename": "mochawesome",
"saveHtml": true,
"saveJson": true,
"consoleReporter": "spec",
"useInlineDiffs": false,
"code": true
},
"version": "7.1.3"
},
"marge": {
"options": {
"reportDir": "cypress/reports",
"overwrite": false,
"html": true,
"json": true,
"timestamp": "mmddyyyy_HHMMss",
"reportTitle": "Development Tests",
"reportPageTitle": "开发环境测试报告"
},
"version": "6.2.0"
}
}
}
\ No newline at end of file
<!doctype html>
<html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1"/><title>开发环境测试报告</title><link rel="stylesheet" href="assets/app.css"/></head><body data-raw="{&quot;stats&quot;:{&quot;suites&quot;:1,&quot;tests&quot;:1,&quot;passes&quot;:1,&quot;pending&quot;:0,&quot;failures&quot;:0,&quot;start&quot;:&quot;2025-09-08T07:29:33.589Z&quot;,&quot;end&quot;:&quot;2025-09-08T07:29:52.105Z&quot;,&quot;duration&quot;:18516,&quot;testsRegistered&quot;:1,&quot;passPercent&quot;:100,&quot;pendingPercent&quot;:0,&quot;other&quot;:0,&quot;hasOther&quot;:false,&quot;skipped&quot;:0,&quot;hasSkipped&quot;:false},&quot;results&quot;:[{&quot;uuid&quot;:&quot;867937a3-b1fe-45ed-8741-2de81f08a943&quot;,&quot;title&quot;:&quot;&quot;,&quot;fullFile&quot;:&quot;cypress/e2e/EC-TOME-Net.cy.js&quot;,&quot;file&quot;:&quot;cypress/e2e/EC-TOME-Net.cy.js&quot;,&quot;beforeHooks&quot;:[],&quot;afterHooks&quot;:[],&quot;tests&quot;:[],&quot;suites&quot;:[{&quot;uuid&quot;:&quot;13208c9f-60ac-4eec-99dc-0b0831b6fbec&quot;,&quot;title&quot;:&quot;template spec&quot;,&quot;fullFile&quot;:&quot;&quot;,&quot;file&quot;:&quot;&quot;,&quot;beforeHooks&quot;:[],&quot;afterHooks&quot;:[],&quot;tests&quot;:[{&quot;title&quot;:&quot;EC-TOME-Net&quot;,&quot;fullTitle&quot;:&quot;template spec EC-TOME-Net&quot;,&quot;duration&quot;:18472,&quot;state&quot;:&quot;passed&quot;,&quot;speed&quot;:&quot;slow&quot;,&quot;pass&quot;:true,&quot;fail&quot;:false,&quot;pending&quot;:false,&quot;code&quot;:&quot;/* ==== Generated with Cypress Studio ==== */\ncy.visit(&#x27;https://screen.bmetech.com/steelmakingScreen/#/eNet&#x27;);\ncy.get(&#x27;[data-testid=\&quot;pause-btn\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;cancel-button\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;reject-btn\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;cancel-button\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;execute-btn\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;cancel-button\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;tab-pointer-1\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;tab-container\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;tab-pointer-2\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;pending-status-button\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;executed-status-button\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;rejected-status-button\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;paused-status-button\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;all-status-button\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;chart-type-select\&quot;] &gt; .el-select__wrapper &gt; .el-select__selection &gt; .el-select__placeholder &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;chart-type-option-1\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;chart-type-select\&quot;] &gt; .el-select__wrapper &gt; .el-select__selection &gt; .el-select__placeholder &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;chart-type-option-0\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;alarm-type-select\&quot;] &gt; .el-select__wrapper &gt; .el-select__selection &gt; .el-select__placeholder &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;alarm-type-option-1\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;alarm-type-select\&quot;] &gt; .el-select__wrapper &gt; .el-select__selection &gt; .el-select__placeholder &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;alarm-type-option-0\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;alarm-time-0\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;reason-confirm-btn\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;delay-btn\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;reassign-btn\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;cancel-btn\&quot;]&#x27;).click();\n/* ==== End Cypress Studio ==== */&quot;,&quot;err&quot;:{},&quot;uuid&quot;:&quot;8183d391-bd84-41f4-85cf-4cfb1333584d&quot;,&quot;parentUUID&quot;:&quot;13208c9f-60ac-4eec-99dc-0b0831b6fbec&quot;,&quot;isHook&quot;:false,&quot;skipped&quot;:false}],&quot;suites&quot;:[],&quot;passes&quot;:[&quot;8183d391-bd84-41f4-85cf-4cfb1333584d&quot;],&quot;failures&quot;:[],&quot;pending&quot;:[],&quot;skipped&quot;:[],&quot;duration&quot;:18472,&quot;root&quot;:false,&quot;rootEmpty&quot;:false,&quot;_timeout&quot;:2000}],&quot;passes&quot;:[],&quot;failures&quot;:[],&quot;pending&quot;:[],&quot;skipped&quot;:[],&quot;duration&quot;:0,&quot;root&quot;:true,&quot;rootEmpty&quot;:true,&quot;_timeout&quot;:2000}],&quot;meta&quot;:{&quot;mocha&quot;:{&quot;version&quot;:&quot;7.0.1&quot;},&quot;mochawesome&quot;:{&quot;options&quot;:{&quot;quiet&quot;:false,&quot;reportFilename&quot;:&quot;mochawesome&quot;,&quot;saveHtml&quot;:true,&quot;saveJson&quot;:true,&quot;consoleReporter&quot;:&quot;spec&quot;,&quot;useInlineDiffs&quot;:false,&quot;code&quot;:true},&quot;version&quot;:&quot;7.1.3&quot;},&quot;marge&quot;:{&quot;options&quot;:{&quot;reportDir&quot;:&quot;cypress/reports&quot;,&quot;overwrite&quot;:false,&quot;html&quot;:true,&quot;json&quot;:true,&quot;timestamp&quot;:&quot;mmddyyyy_HHMMss&quot;,&quot;reportTitle&quot;:&quot;Development Tests&quot;,&quot;reportPageTitle&quot;:&quot;开发环境测试报告&quot;},&quot;version&quot;:&quot;6.2.0&quot;}}}" data-config="{&quot;reportFilename&quot;:&quot;mochawesome&quot;,&quot;reportDir&quot;:&quot;cypress/reports&quot;,&quot;reportTitle&quot;:&quot;Development Tests&quot;,&quot;reportPageTitle&quot;:&quot;开发环境测试报告&quot;,&quot;inline&quot;:false,&quot;inlineAssets&quot;:false,&quot;cdn&quot;:false,&quot;charts&quot;:false,&quot;enableCharts&quot;:false,&quot;code&quot;:true,&quot;enableCode&quot;:true,&quot;autoOpen&quot;:false,&quot;overwrite&quot;:false,&quot;timestamp&quot;:&quot;mmddyyyy_HHMMss&quot;,&quot;ts&quot;:&quot;mmddyyyy_HHMMss&quot;,&quot;showPassed&quot;:true,&quot;showFailed&quot;:true,&quot;showPending&quot;:true,&quot;showSkipped&quot;:false,&quot;showHooks&quot;:&quot;failed&quot;,&quot;saveJson&quot;:true,&quot;saveHtml&quot;:true,&quot;dev&quot;:false,&quot;assetsDir&quot;:&quot;cypress/reports/assets&quot;,&quot;jsonFile&quot;:&quot;/Users/cw/Desktop/BME/dc-tom/cypress/reports/mochawesome_09082025_152952.json&quot;,&quot;htmlFile&quot;:&quot;/Users/cw/Desktop/BME/dc-tom/cypress/reports/mochawesome_09082025_152952.html&quot;}"><div id="report"></div><script src="assets/app.js"></script></body></html>
\ No newline at end of file
{
"stats": {
"suites": 1,
"tests": 1,
"passes": 1,
"pending": 0,
"failures": 0,
"start": "2025-09-08T07:29:33.589Z",
"end": "2025-09-08T07:29:52.105Z",
"duration": 18516,
"testsRegistered": 1,
"passPercent": 100,
"pendingPercent": 0,
"other": 0,
"hasOther": false,
"skipped": 0,
"hasSkipped": false
},
"results": [
{
"uuid": "867937a3-b1fe-45ed-8741-2de81f08a943",
"title": "",
"fullFile": "cypress/e2e/EC-TOME-Net.cy.js",
"file": "cypress/e2e/EC-TOME-Net.cy.js",
"beforeHooks": [],
"afterHooks": [],
"tests": [],
"suites": [
{
"uuid": "13208c9f-60ac-4eec-99dc-0b0831b6fbec",
"title": "template spec",
"fullFile": "",
"file": "",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
"title": "EC-TOME-Net",
"fullTitle": "template spec EC-TOME-Net",
"timedOut": null,
"duration": 18472,
"state": "passed",
"speed": "slow",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "/* ==== Generated with Cypress Studio ==== */\ncy.visit('https://screen.bmetech.com/steelmakingScreen/#/eNet');\ncy.get('[data-testid=\"pause-btn\"]').click();\ncy.get('[data-testid=\"cancel-button\"]').click();\ncy.get('[data-testid=\"reject-btn\"]').click();\ncy.get('[data-testid=\"cancel-button\"]').click();\ncy.get('[data-testid=\"execute-btn\"]').click();\ncy.get('[data-testid=\"cancel-button\"]').click();\ncy.get('[data-testid=\"tab-pointer-1\"]').click();\ncy.get('[data-testid=\"tab-container\"]').click();\ncy.get('[data-testid=\"tab-pointer-2\"]').click();\ncy.get('[data-testid=\"pending-status-button\"]').click();\ncy.get('[data-testid=\"executed-status-button\"]').click();\ncy.get('[data-testid=\"rejected-status-button\"]').click();\ncy.get('[data-testid=\"paused-status-button\"]').click();\ncy.get('[data-testid=\"all-status-button\"]').click();\ncy.get('[data-testid=\"chart-type-select\"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder > span').click();\ncy.get('[data-testid=\"chart-type-option-1\"] > span').click();\ncy.get('[data-testid=\"chart-type-select\"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder > span').click();\ncy.get('[data-testid=\"chart-type-option-0\"] > span').click();\ncy.get('[data-testid=\"alarm-type-select\"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder > span').click();\ncy.get('[data-testid=\"alarm-type-option-1\"] > span').click();\ncy.get('[data-testid=\"alarm-type-select\"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder > span').click();\ncy.get('[data-testid=\"alarm-type-option-0\"] > span').click();\ncy.get('[data-testid=\"alarm-time-0\"]').click();\ncy.get('[data-testid=\"reason-confirm-btn\"]').click();\ncy.get('[data-testid=\"delay-btn\"]').click();\ncy.get('[data-testid=\"reassign-btn\"]').click();\ncy.get('[data-testid=\"cancel-btn\"]').click();\n/* ==== End Cypress Studio ==== */",
"err": {},
"uuid": "8183d391-bd84-41f4-85cf-4cfb1333584d",
"parentUUID": "13208c9f-60ac-4eec-99dc-0b0831b6fbec",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
"8183d391-bd84-41f4-85cf-4cfb1333584d"
],
"failures": [],
"pending": [],
"skipped": [],
"duration": 18472,
"root": false,
"rootEmpty": false,
"_timeout": 2000
}
],
"passes": [],
"failures": [],
"pending": [],
"skipped": [],
"duration": 0,
"root": true,
"rootEmpty": true,
"_timeout": 2000
}
],
"meta": {
"mocha": {
"version": "7.0.1"
},
"mochawesome": {
"options": {
"quiet": false,
"reportFilename": "mochawesome",
"saveHtml": true,
"saveJson": true,
"consoleReporter": "spec",
"useInlineDiffs": false,
"code": true
},
"version": "7.1.3"
},
"marge": {
"options": {
"reportDir": "cypress/reports",
"overwrite": false,
"html": true,
"json": true,
"timestamp": "mmddyyyy_HHMMss",
"reportTitle": "Development Tests",
"reportPageTitle": "开发环境测试报告"
},
"version": "6.2.0"
}
}
}
\ No newline at end of file
<!doctype html>
<html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1"/><title>开发环境测试报告</title><link rel="stylesheet" href="assets/app.css"/></head><body data-raw="{&quot;stats&quot;:{&quot;suites&quot;:1,&quot;tests&quot;:1,&quot;passes&quot;:1,&quot;pending&quot;:0,&quot;failures&quot;:0,&quot;start&quot;:&quot;2025-09-08T07:29:54.124Z&quot;,&quot;end&quot;:&quot;2025-09-08T07:29:58.043Z&quot;,&quot;duration&quot;:3919,&quot;testsRegistered&quot;:1,&quot;passPercent&quot;:100,&quot;pendingPercent&quot;:0,&quot;other&quot;:0,&quot;hasOther&quot;:false,&quot;skipped&quot;:0,&quot;hasSkipped&quot;:false},&quot;results&quot;:[{&quot;uuid&quot;:&quot;0f8f63a7-18f9-4eb6-bb7f-07ffa7458889&quot;,&quot;title&quot;:&quot;&quot;,&quot;fullFile&quot;:&quot;cypress/e2e/EC-TOMPIKAR烟尘识别数据台账.cy.js&quot;,&quot;file&quot;:&quot;cypress/e2e/EC-TOMPIKAR烟尘识别数据台账.cy.js&quot;,&quot;beforeHooks&quot;:[],&quot;afterHooks&quot;:[],&quot;tests&quot;:[],&quot;suites&quot;:[{&quot;uuid&quot;:&quot;ae63e46f-672e-4771-bd70-4fde86c6773f&quot;,&quot;title&quot;:&quot;template spec&quot;,&quot;fullFile&quot;:&quot;&quot;,&quot;file&quot;:&quot;&quot;,&quot;beforeHooks&quot;:[],&quot;afterHooks&quot;:[],&quot;tests&quot;:[{&quot;title&quot;:&quot;EC-TOMPIKAR-烟尘识别数据台账&quot;,&quot;fullTitle&quot;:&quot;template spec EC-TOMPIKAR-烟尘识别数据台账&quot;,&quot;duration&quot;:3884,&quot;state&quot;:&quot;passed&quot;,&quot;speed&quot;:&quot;fast&quot;,&quot;pass&quot;:true,&quot;fail&quot;:false,&quot;pending&quot;:false,&quot;code&quot;:&quot;/* ==== Generated with Cypress Studio ==== */\ncy.visit(&#x27;https://screen.bmetech.com/steelmakingScreen/#/smokeDustDetail&#x27;);\ncy.get(&#x27;[data-testid=\&quot;device-name-input\&quot;]&#x27;).clear(&#x27;1#出铁口&#x27;);\ncy.get(&#x27;[data-testid=\&quot;device-name-input\&quot;]&#x27;).type(&#x27;1#出铁口&#x27;);\ncy.get(&#x27;[data-testid=\&quot;query-button\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;reset-button\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;cell-0-operate\&quot;] &gt; [data-testid=\&quot;watch-video-link\&quot;]&#x27;).click();\ncy.get(&#x27;.switchBtn &gt; .el-button &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;cell-0-operate\&quot;] &gt; [data-testid=\&quot;data-detail-link\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;video-button\&quot;]&#x27;).click();\ncy.get(&#x27;.switchBtn &gt; .el-button &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;back-button\&quot;]&#x27;).click();\n/* ==== End Cypress Studio ==== */&quot;,&quot;err&quot;:{},&quot;uuid&quot;:&quot;4064df67-b066-47b4-9933-ef6b79aaf121&quot;,&quot;parentUUID&quot;:&quot;ae63e46f-672e-4771-bd70-4fde86c6773f&quot;,&quot;isHook&quot;:false,&quot;skipped&quot;:false}],&quot;suites&quot;:[],&quot;passes&quot;:[&quot;4064df67-b066-47b4-9933-ef6b79aaf121&quot;],&quot;failures&quot;:[],&quot;pending&quot;:[],&quot;skipped&quot;:[],&quot;duration&quot;:3884,&quot;root&quot;:false,&quot;rootEmpty&quot;:false,&quot;_timeout&quot;:2000}],&quot;passes&quot;:[],&quot;failures&quot;:[],&quot;pending&quot;:[],&quot;skipped&quot;:[],&quot;duration&quot;:0,&quot;root&quot;:true,&quot;rootEmpty&quot;:true,&quot;_timeout&quot;:2000}],&quot;meta&quot;:{&quot;mocha&quot;:{&quot;version&quot;:&quot;7.0.1&quot;},&quot;mochawesome&quot;:{&quot;options&quot;:{&quot;quiet&quot;:false,&quot;reportFilename&quot;:&quot;mochawesome&quot;,&quot;saveHtml&quot;:true,&quot;saveJson&quot;:true,&quot;consoleReporter&quot;:&quot;spec&quot;,&quot;useInlineDiffs&quot;:false,&quot;code&quot;:true},&quot;version&quot;:&quot;7.1.3&quot;},&quot;marge&quot;:{&quot;options&quot;:{&quot;reportDir&quot;:&quot;cypress/reports&quot;,&quot;overwrite&quot;:false,&quot;html&quot;:true,&quot;json&quot;:true,&quot;timestamp&quot;:&quot;mmddyyyy_HHMMss&quot;,&quot;reportTitle&quot;:&quot;Development Tests&quot;,&quot;reportPageTitle&quot;:&quot;开发环境测试报告&quot;},&quot;version&quot;:&quot;6.2.0&quot;}}}" data-config="{&quot;reportFilename&quot;:&quot;mochawesome&quot;,&quot;reportDir&quot;:&quot;cypress/reports&quot;,&quot;reportTitle&quot;:&quot;Development Tests&quot;,&quot;reportPageTitle&quot;:&quot;开发环境测试报告&quot;,&quot;inline&quot;:false,&quot;inlineAssets&quot;:false,&quot;cdn&quot;:false,&quot;charts&quot;:false,&quot;enableCharts&quot;:false,&quot;code&quot;:true,&quot;enableCode&quot;:true,&quot;autoOpen&quot;:false,&quot;overwrite&quot;:false,&quot;timestamp&quot;:&quot;mmddyyyy_HHMMss&quot;,&quot;ts&quot;:&quot;mmddyyyy_HHMMss&quot;,&quot;showPassed&quot;:true,&quot;showFailed&quot;:true,&quot;showPending&quot;:true,&quot;showSkipped&quot;:false,&quot;showHooks&quot;:&quot;failed&quot;,&quot;saveJson&quot;:true,&quot;saveHtml&quot;:true,&quot;dev&quot;:false,&quot;assetsDir&quot;:&quot;cypress/reports/assets&quot;,&quot;jsonFile&quot;:&quot;/Users/cw/Desktop/BME/dc-tom/cypress/reports/mochawesome_09082025_152958.json&quot;,&quot;htmlFile&quot;:&quot;/Users/cw/Desktop/BME/dc-tom/cypress/reports/mochawesome_09082025_152958.html&quot;}"><div id="report"></div><script src="assets/app.js"></script></body></html>
\ No newline at end of file
{
"stats": {
"suites": 1,
"tests": 1,
"passes": 1,
"pending": 0,
"failures": 0,
"start": "2025-09-08T07:29:54.124Z",
"end": "2025-09-08T07:29:58.043Z",
"duration": 3919,
"testsRegistered": 1,
"passPercent": 100,
"pendingPercent": 0,
"other": 0,
"hasOther": false,
"skipped": 0,
"hasSkipped": false
},
"results": [
{
"uuid": "0f8f63a7-18f9-4eb6-bb7f-07ffa7458889",
"title": "",
"fullFile": "cypress/e2e/EC-TOMPIKAR烟尘识别数据台账.cy.js",
"file": "cypress/e2e/EC-TOMPIKAR烟尘识别数据台账.cy.js",
"beforeHooks": [],
"afterHooks": [],
"tests": [],
"suites": [
{
"uuid": "ae63e46f-672e-4771-bd70-4fde86c6773f",
"title": "template spec",
"fullFile": "",
"file": "",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
"title": "EC-TOMPIKAR-烟尘识别数据台账",
"fullTitle": "template spec EC-TOMPIKAR-烟尘识别数据台账",
"timedOut": null,
"duration": 3884,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "/* ==== Generated with Cypress Studio ==== */\ncy.visit('https://screen.bmetech.com/steelmakingScreen/#/smokeDustDetail');\ncy.get('[data-testid=\"device-name-input\"]').clear('1#出铁口');\ncy.get('[data-testid=\"device-name-input\"]').type('1#出铁口');\ncy.get('[data-testid=\"query-button\"] > span').click();\ncy.get('[data-testid=\"reset-button\"] > span').click();\ncy.get('[data-testid=\"cell-0-operate\"] > [data-testid=\"watch-video-link\"]').click();\ncy.get('.switchBtn > .el-button > span').click();\ncy.get('[data-testid=\"cell-0-operate\"] > [data-testid=\"data-detail-link\"]').click();\ncy.get('[data-testid=\"video-button\"]').click();\ncy.get('.switchBtn > .el-button > span').click();\ncy.get('[data-testid=\"back-button\"]').click();\n/* ==== End Cypress Studio ==== */",
"err": {},
"uuid": "4064df67-b066-47b4-9933-ef6b79aaf121",
"parentUUID": "ae63e46f-672e-4771-bd70-4fde86c6773f",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
"4064df67-b066-47b4-9933-ef6b79aaf121"
],
"failures": [],
"pending": [],
"skipped": [],
"duration": 3884,
"root": false,
"rootEmpty": false,
"_timeout": 2000
}
],
"passes": [],
"failures": [],
"pending": [],
"skipped": [],
"duration": 0,
"root": true,
"rootEmpty": true,
"_timeout": 2000
}
],
"meta": {
"mocha": {
"version": "7.0.1"
},
"mochawesome": {
"options": {
"quiet": false,
"reportFilename": "mochawesome",
"saveHtml": true,
"saveJson": true,
"consoleReporter": "spec",
"useInlineDiffs": false,
"code": true
},
"version": "7.1.3"
},
"marge": {
"options": {
"reportDir": "cypress/reports",
"overwrite": false,
"html": true,
"json": true,
"timestamp": "mmddyyyy_HHMMss",
"reportTitle": "Development Tests",
"reportPageTitle": "开发环境测试报告"
},
"version": "6.2.0"
}
}
}
\ No newline at end of file
<!doctype html>
<html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1"/><title>开发环境测试报告</title><link rel="stylesheet" href="assets/app.css"/></head><body data-raw="{&quot;stats&quot;:{&quot;suites&quot;:1,&quot;tests&quot;:1,&quot;passes&quot;:1,&quot;pending&quot;:0,&quot;failures&quot;:0,&quot;start&quot;:&quot;2025-09-08T07:30:00.007Z&quot;,&quot;end&quot;:&quot;2025-09-08T07:30:04.118Z&quot;,&quot;duration&quot;:4111,&quot;testsRegistered&quot;:1,&quot;passPercent&quot;:100,&quot;pendingPercent&quot;:0,&quot;other&quot;:0,&quot;hasOther&quot;:false,&quot;skipped&quot;:0,&quot;hasSkipped&quot;:false},&quot;results&quot;:[{&quot;uuid&quot;:&quot;3b6949a0-bb5a-47c6-8b42-ad449da2aba9&quot;,&quot;title&quot;:&quot;&quot;,&quot;fullFile&quot;:&quot;cypress/e2e/EC-TOM准时化.cy.js&quot;,&quot;file&quot;:&quot;cypress/e2e/EC-TOM准时化.cy.js&quot;,&quot;beforeHooks&quot;:[],&quot;afterHooks&quot;:[],&quot;tests&quot;:[],&quot;suites&quot;:[{&quot;uuid&quot;:&quot;859c6d09-4aec-4916-b12b-d1b06018aaa3&quot;,&quot;title&quot;:&quot;template spec&quot;,&quot;fullFile&quot;:&quot;&quot;,&quot;file&quot;:&quot;&quot;,&quot;beforeHooks&quot;:[],&quot;afterHooks&quot;:[],&quot;tests&quot;:[{&quot;title&quot;:&quot;准时化&quot;,&quot;fullTitle&quot;:&quot;template spec 准时化&quot;,&quot;duration&quot;:4076,&quot;state&quot;:&quot;passed&quot;,&quot;speed&quot;:&quot;fast&quot;,&quot;pass&quot;:true,&quot;fail&quot;:false,&quot;pending&quot;:false,&quot;code&quot;:&quot;/* ==== Generated with Cypress Studio ==== */\ncy.visit(&#x27;https://screen.bmetech.com/steelmakingScreen/#/robotNew&#x27;);\ncy.get(&#x27;[data-testid=\&quot;execute-icon\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;auto-execute-button\&quot;] &gt; :nth-child(2)&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;feedback-button\&quot;] &gt; :nth-child(2)&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;eco-tom-button\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;pending-status-btn\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;executed-status-btn\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;rejected-status-btn\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;paused-status-btn\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;rejected-status-btn\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;all-status-btn\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;cems-tab\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;energy-trend-tab\&quot;]&#x27;).click();\ncy.get(&#x27;[placeholder=\&quot;开始日期\&quot;]&#x27;).click();\ncy.get(&#x27;.is-left &gt; .el-date-table &gt; tbody &gt; :nth-child(6) &gt; :nth-child(5) &gt; .el-date-table-cell &gt; .el-date-table-cell__text&#x27;).click();\ncy.get(&#x27;.end-date&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;main-video-image\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;sdk-close-video-btn\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;back-btn\&quot;]&#x27;).click();\n/* ==== End Cypress Studio ==== */&quot;,&quot;err&quot;:{},&quot;uuid&quot;:&quot;a188d212-f5d7-4fe6-9feb-8a60b6d14c6b&quot;,&quot;parentUUID&quot;:&quot;859c6d09-4aec-4916-b12b-d1b06018aaa3&quot;,&quot;isHook&quot;:false,&quot;skipped&quot;:false}],&quot;suites&quot;:[],&quot;passes&quot;:[&quot;a188d212-f5d7-4fe6-9feb-8a60b6d14c6b&quot;],&quot;failures&quot;:[],&quot;pending&quot;:[],&quot;skipped&quot;:[],&quot;duration&quot;:4076,&quot;root&quot;:false,&quot;rootEmpty&quot;:false,&quot;_timeout&quot;:2000}],&quot;passes&quot;:[],&quot;failures&quot;:[],&quot;pending&quot;:[],&quot;skipped&quot;:[],&quot;duration&quot;:0,&quot;root&quot;:true,&quot;rootEmpty&quot;:true,&quot;_timeout&quot;:2000}],&quot;meta&quot;:{&quot;mocha&quot;:{&quot;version&quot;:&quot;7.0.1&quot;},&quot;mochawesome&quot;:{&quot;options&quot;:{&quot;quiet&quot;:false,&quot;reportFilename&quot;:&quot;mochawesome&quot;,&quot;saveHtml&quot;:true,&quot;saveJson&quot;:true,&quot;consoleReporter&quot;:&quot;spec&quot;,&quot;useInlineDiffs&quot;:false,&quot;code&quot;:true},&quot;version&quot;:&quot;7.1.3&quot;},&quot;marge&quot;:{&quot;options&quot;:{&quot;reportDir&quot;:&quot;cypress/reports&quot;,&quot;overwrite&quot;:false,&quot;html&quot;:true,&quot;json&quot;:true,&quot;timestamp&quot;:&quot;mmddyyyy_HHMMss&quot;,&quot;reportTitle&quot;:&quot;Development Tests&quot;,&quot;reportPageTitle&quot;:&quot;开发环境测试报告&quot;},&quot;version&quot;:&quot;6.2.0&quot;}}}" data-config="{&quot;reportFilename&quot;:&quot;mochawesome&quot;,&quot;reportDir&quot;:&quot;cypress/reports&quot;,&quot;reportTitle&quot;:&quot;Development Tests&quot;,&quot;reportPageTitle&quot;:&quot;开发环境测试报告&quot;,&quot;inline&quot;:false,&quot;inlineAssets&quot;:false,&quot;cdn&quot;:false,&quot;charts&quot;:false,&quot;enableCharts&quot;:false,&quot;code&quot;:true,&quot;enableCode&quot;:true,&quot;autoOpen&quot;:false,&quot;overwrite&quot;:false,&quot;timestamp&quot;:&quot;mmddyyyy_HHMMss&quot;,&quot;ts&quot;:&quot;mmddyyyy_HHMMss&quot;,&quot;showPassed&quot;:true,&quot;showFailed&quot;:true,&quot;showPending&quot;:true,&quot;showSkipped&quot;:false,&quot;showHooks&quot;:&quot;failed&quot;,&quot;saveJson&quot;:true,&quot;saveHtml&quot;:true,&quot;dev&quot;:false,&quot;assetsDir&quot;:&quot;cypress/reports/assets&quot;,&quot;jsonFile&quot;:&quot;/Users/cw/Desktop/BME/dc-tom/cypress/reports/mochawesome_09082025_153004.json&quot;,&quot;htmlFile&quot;:&quot;/Users/cw/Desktop/BME/dc-tom/cypress/reports/mochawesome_09082025_153004.html&quot;}"><div id="report"></div><script src="assets/app.js"></script></body></html>
\ No newline at end of file
{
"stats": {
"suites": 1,
"tests": 1,
"passes": 1,
"pending": 0,
"failures": 0,
"start": "2025-09-08T07:30:00.007Z",
"end": "2025-09-08T07:30:04.118Z",
"duration": 4111,
"testsRegistered": 1,
"passPercent": 100,
"pendingPercent": 0,
"other": 0,
"hasOther": false,
"skipped": 0,
"hasSkipped": false
},
"results": [
{
"uuid": "3b6949a0-bb5a-47c6-8b42-ad449da2aba9",
"title": "",
"fullFile": "cypress/e2e/EC-TOM准时化.cy.js",
"file": "cypress/e2e/EC-TOM准时化.cy.js",
"beforeHooks": [],
"afterHooks": [],
"tests": [],
"suites": [
{
"uuid": "859c6d09-4aec-4916-b12b-d1b06018aaa3",
"title": "template spec",
"fullFile": "",
"file": "",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
"title": "准时化",
"fullTitle": "template spec 准时化",
"timedOut": null,
"duration": 4076,
"state": "passed",
"speed": "fast",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "/* ==== Generated with Cypress Studio ==== */\ncy.visit('https://screen.bmetech.com/steelmakingScreen/#/robotNew');\ncy.get('[data-testid=\"execute-icon\"]').click();\ncy.get('[data-testid=\"auto-execute-button\"] > :nth-child(2)').click();\ncy.get('[data-testid=\"feedback-button\"] > :nth-child(2)').click();\ncy.get('[data-testid=\"eco-tom-button\"]').click();\ncy.get('[data-testid=\"pending-status-btn\"]').click();\ncy.get('[data-testid=\"executed-status-btn\"]').click();\ncy.get('[data-testid=\"rejected-status-btn\"]').click();\ncy.get('[data-testid=\"paused-status-btn\"]').click();\ncy.get('[data-testid=\"rejected-status-btn\"]').click();\ncy.get('[data-testid=\"all-status-btn\"]').click();\ncy.get('[data-testid=\"cems-tab\"]').click();\ncy.get('[data-testid=\"energy-trend-tab\"]').click();\ncy.get('[placeholder=\"开始日期\"]').click();\ncy.get('.is-left > .el-date-table > tbody > :nth-child(6) > :nth-child(5) > .el-date-table-cell > .el-date-table-cell__text').click();\ncy.get('.end-date').click();\ncy.get('[data-testid=\"main-video-image\"]').click();\ncy.get('[data-testid=\"sdk-close-video-btn\"]').click();\ncy.get('[data-testid=\"back-btn\"]').click();\n/* ==== End Cypress Studio ==== */",
"err": {},
"uuid": "a188d212-f5d7-4fe6-9feb-8a60b6d14c6b",
"parentUUID": "859c6d09-4aec-4916-b12b-d1b06018aaa3",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
"a188d212-f5d7-4fe6-9feb-8a60b6d14c6b"
],
"failures": [],
"pending": [],
"skipped": [],
"duration": 4076,
"root": false,
"rootEmpty": false,
"_timeout": 2000
}
],
"passes": [],
"failures": [],
"pending": [],
"skipped": [],
"duration": 0,
"root": true,
"rootEmpty": true,
"_timeout": 2000
}
],
"meta": {
"mocha": {
"version": "7.0.1"
},
"mochawesome": {
"options": {
"quiet": false,
"reportFilename": "mochawesome",
"saveHtml": true,
"saveJson": true,
"consoleReporter": "spec",
"useInlineDiffs": false,
"code": true
},
"version": "7.1.3"
},
"marge": {
"options": {
"reportDir": "cypress/reports",
"overwrite": false,
"html": true,
"json": true,
"timestamp": "mmddyyyy_HHMMss",
"reportTitle": "Development Tests",
"reportPageTitle": "开发环境测试报告"
},
"version": "6.2.0"
}
}
}
\ No newline at end of file
<!doctype html>
<html lang="en"><head><meta charSet="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1"/><title>开发环境测试报告</title><link rel="stylesheet" href="assets/app.css"/></head><body data-raw="{&quot;stats&quot;:{&quot;suites&quot;:1,&quot;tests&quot;:1,&quot;passes&quot;:1,&quot;pending&quot;:0,&quot;failures&quot;:0,&quot;start&quot;:&quot;2025-09-08T07:30:06.094Z&quot;,&quot;end&quot;:&quot;2025-09-08T07:30:13.829Z&quot;,&quot;duration&quot;:7735,&quot;testsRegistered&quot;:1,&quot;passPercent&quot;:100,&quot;pendingPercent&quot;:0,&quot;other&quot;:0,&quot;hasOther&quot;:false,&quot;skipped&quot;:0,&quot;hasSkipped&quot;:false},&quot;results&quot;:[{&quot;uuid&quot;:&quot;ed797454-f515-4c6e-9301-8fcc0222024e&quot;,&quot;title&quot;:&quot;&quot;,&quot;fullFile&quot;:&quot;cypress/e2e/EC-TOM设备数据台账.cy.js&quot;,&quot;file&quot;:&quot;cypress/e2e/EC-TOM设备数据台账.cy.js&quot;,&quot;beforeHooks&quot;:[],&quot;afterHooks&quot;:[],&quot;tests&quot;:[],&quot;suites&quot;:[{&quot;uuid&quot;:&quot;9d61cf97-7268-426e-9d09-94546bd60ace&quot;,&quot;title&quot;:&quot;template spec&quot;,&quot;fullFile&quot;:&quot;&quot;,&quot;file&quot;:&quot;&quot;,&quot;beforeHooks&quot;:[],&quot;afterHooks&quot;:[],&quot;tests&quot;:[{&quot;title&quot;:&quot;设备数据台账1&quot;,&quot;fullTitle&quot;:&quot;template spec 设备数据台账1&quot;,&quot;duration&quot;:7693,&quot;state&quot;:&quot;passed&quot;,&quot;speed&quot;:&quot;medium&quot;,&quot;pass&quot;:true,&quot;fail&quot;:false,&quot;pending&quot;:false,&quot;code&quot;:&quot;/* ==== Generated with Cypress Studio ==== */\ncy.visit(&#x27;https://screen.bmetech.com/steelmakingScreen/#/valveTableData&#x27;);\ncy.get(&#x27;[data-testid=\&quot;device-type-select\&quot;] &gt; .el-select__wrapper &gt; .el-select__selection &gt; .el-select__placeholder&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;device-type-option-0\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;query-button\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;device-type-select\&quot;] &gt; .el-select__wrapper &gt; .el-select__suffix &gt; .el-icon &gt; svg&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;device-type-option-1\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;query-button\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;cell-0-operate\&quot;] &gt; [data-testid=\&quot;view-detail-link\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;detail-query-button\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;detail-export-button\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;back-button\&quot;]&#x27;).click();\ncy.get(&#x27;[data-testid=\&quot;reset-button\&quot;] &gt; span&#x27;).click();\ncy.get(&#x27;[aria-label=\&quot;第 2 页\&quot;]&#x27;).click();\ncy.get(&#x27;[aria-label=\&quot;第 1 页\&quot;]&#x27;).click();\n/* ==== End Cypress Studio ==== */&quot;,&quot;err&quot;:{},&quot;uuid&quot;:&quot;ddf93fb1-727d-4eea-afcf-5706bff61f03&quot;,&quot;parentUUID&quot;:&quot;9d61cf97-7268-426e-9d09-94546bd60ace&quot;,&quot;isHook&quot;:false,&quot;skipped&quot;:false}],&quot;suites&quot;:[],&quot;passes&quot;:[&quot;ddf93fb1-727d-4eea-afcf-5706bff61f03&quot;],&quot;failures&quot;:[],&quot;pending&quot;:[],&quot;skipped&quot;:[],&quot;duration&quot;:7693,&quot;root&quot;:false,&quot;rootEmpty&quot;:false,&quot;_timeout&quot;:2000}],&quot;passes&quot;:[],&quot;failures&quot;:[],&quot;pending&quot;:[],&quot;skipped&quot;:[],&quot;duration&quot;:0,&quot;root&quot;:true,&quot;rootEmpty&quot;:true,&quot;_timeout&quot;:2000}],&quot;meta&quot;:{&quot;mocha&quot;:{&quot;version&quot;:&quot;7.0.1&quot;},&quot;mochawesome&quot;:{&quot;options&quot;:{&quot;quiet&quot;:false,&quot;reportFilename&quot;:&quot;mochawesome&quot;,&quot;saveHtml&quot;:true,&quot;saveJson&quot;:true,&quot;consoleReporter&quot;:&quot;spec&quot;,&quot;useInlineDiffs&quot;:false,&quot;code&quot;:true},&quot;version&quot;:&quot;7.1.3&quot;},&quot;marge&quot;:{&quot;options&quot;:{&quot;reportDir&quot;:&quot;cypress/reports&quot;,&quot;overwrite&quot;:false,&quot;html&quot;:true,&quot;json&quot;:true,&quot;timestamp&quot;:&quot;mmddyyyy_HHMMss&quot;,&quot;reportTitle&quot;:&quot;Development Tests&quot;,&quot;reportPageTitle&quot;:&quot;开发环境测试报告&quot;},&quot;version&quot;:&quot;6.2.0&quot;}}}" data-config="{&quot;reportFilename&quot;:&quot;mochawesome&quot;,&quot;reportDir&quot;:&quot;cypress/reports&quot;,&quot;reportTitle&quot;:&quot;Development Tests&quot;,&quot;reportPageTitle&quot;:&quot;开发环境测试报告&quot;,&quot;inline&quot;:false,&quot;inlineAssets&quot;:false,&quot;cdn&quot;:false,&quot;charts&quot;:false,&quot;enableCharts&quot;:false,&quot;code&quot;:true,&quot;enableCode&quot;:true,&quot;autoOpen&quot;:false,&quot;overwrite&quot;:false,&quot;timestamp&quot;:&quot;mmddyyyy_HHMMss&quot;,&quot;ts&quot;:&quot;mmddyyyy_HHMMss&quot;,&quot;showPassed&quot;:true,&quot;showFailed&quot;:true,&quot;showPending&quot;:true,&quot;showSkipped&quot;:false,&quot;showHooks&quot;:&quot;failed&quot;,&quot;saveJson&quot;:true,&quot;saveHtml&quot;:true,&quot;dev&quot;:false,&quot;assetsDir&quot;:&quot;cypress/reports/assets&quot;,&quot;jsonFile&quot;:&quot;/Users/cw/Desktop/BME/dc-tom/cypress/reports/mochawesome_09082025_153013.json&quot;,&quot;htmlFile&quot;:&quot;/Users/cw/Desktop/BME/dc-tom/cypress/reports/mochawesome_09082025_153013.html&quot;}"><div id="report"></div><script src="assets/app.js"></script></body></html>
\ No newline at end of file
{
"stats": {
"suites": 1,
"tests": 1,
"passes": 1,
"pending": 0,
"failures": 0,
"start": "2025-09-08T07:30:06.094Z",
"end": "2025-09-08T07:30:13.829Z",
"duration": 7735,
"testsRegistered": 1,
"passPercent": 100,
"pendingPercent": 0,
"other": 0,
"hasOther": false,
"skipped": 0,
"hasSkipped": false
},
"results": [
{
"uuid": "ed797454-f515-4c6e-9301-8fcc0222024e",
"title": "",
"fullFile": "cypress/e2e/EC-TOM设备数据台账.cy.js",
"file": "cypress/e2e/EC-TOM设备数据台账.cy.js",
"beforeHooks": [],
"afterHooks": [],
"tests": [],
"suites": [
{
"uuid": "9d61cf97-7268-426e-9d09-94546bd60ace",
"title": "template spec",
"fullFile": "",
"file": "",
"beforeHooks": [],
"afterHooks": [],
"tests": [
{
"title": "设备数据台账1",
"fullTitle": "template spec 设备数据台账1",
"timedOut": null,
"duration": 7693,
"state": "passed",
"speed": "medium",
"pass": true,
"fail": false,
"pending": false,
"context": null,
"code": "/* ==== Generated with Cypress Studio ==== */\ncy.visit('https://screen.bmetech.com/steelmakingScreen/#/valveTableData');\ncy.get('[data-testid=\"device-type-select\"] > .el-select__wrapper > .el-select__selection > .el-select__placeholder').click();\ncy.get('[data-testid=\"device-type-option-0\"]').click();\ncy.get('[data-testid=\"query-button\"] > span').click();\ncy.get('[data-testid=\"device-type-select\"] > .el-select__wrapper > .el-select__suffix > .el-icon > svg').click();\ncy.get('[data-testid=\"device-type-option-1\"]').click();\ncy.get('[data-testid=\"query-button\"]').click();\ncy.get('[data-testid=\"cell-0-operate\"] > [data-testid=\"view-detail-link\"]').click();\ncy.get('[data-testid=\"detail-query-button\"] > span').click();\ncy.get('[data-testid=\"detail-export-button\"]').click();\ncy.get('[data-testid=\"back-button\"]').click();\ncy.get('[data-testid=\"reset-button\"] > span').click();\ncy.get('[aria-label=\"第 2 页\"]').click();\ncy.get('[aria-label=\"第 1 页\"]').click();\n/* ==== End Cypress Studio ==== */",
"err": {},
"uuid": "ddf93fb1-727d-4eea-afcf-5706bff61f03",
"parentUUID": "9d61cf97-7268-426e-9d09-94546bd60ace",
"isHook": false,
"skipped": false
}
],
"suites": [],
"passes": [
"ddf93fb1-727d-4eea-afcf-5706bff61f03"
],
"failures": [],
"pending": [],
"skipped": [],
"duration": 7693,
"root": false,
"rootEmpty": false,
"_timeout": 2000
}
],
"passes": [],
"failures": [],
"pending": [],
"skipped": [],
"duration": 0,
"root": true,
"rootEmpty": true,
"_timeout": 2000
}
],
"meta": {
"mocha": {
"version": "7.0.1"
},
"mochawesome": {
"options": {
"quiet": false,
"reportFilename": "mochawesome",
"saveHtml": true,
"saveJson": true,
"consoleReporter": "spec",
"useInlineDiffs": false,
"code": true
},
"version": "7.1.3"
},
"marge": {
"options": {
"reportDir": "cypress/reports",
"overwrite": false,
"html": true,
"json": true,
"timestamp": "mmddyyyy_HHMMss",
"reportTitle": "Development Tests",
"reportPageTitle": "开发环境测试报告"
},
"version": "6.2.0"
}
}
}
\ No newline at end of file
This diff is collapsed.
......@@ -25,6 +25,17 @@ Cypress.on('uncaught:exception', (err, runnable) => {
return false
})
// 全局API异常收集
beforeEach(() => {
// 在每个测试开始前启动API异常收集
cy.startAPIErrorCollection()
})
afterEach(() => {
// 在每个测试结束后将API错误信息整合到测试报告中
cy.integrateAPIErrorsToTestReport()
})
// 通用的登录命令
Cypress.Commands.add('login', (username, password) => {
const user = username || Cypress.env('username')
......
......@@ -6,14 +6,9 @@
"scripts": {
"cy:open": "cypress open",
"cy:run": "cypress run --browser chrome",
"cy:run:dev": "CYPRESS_BASE_URL=http://localhost:3000 cypress run --browser chrome",
"cy:run:staging": "CYPRESS_BASE_URL=https://staging.example.com cypress run --browser chrome",
"cy:run:prod": "CYPRESS_BASE_URL=https://app.example.com cypress run --browser chrome",
"cy:run:custom": "source .env.custom && cypress run --browser chrome",
"cy:run:electron": "cypress run --browser electron",
"cy:run:chrome": "cypress run --browser chrome",
"cy:run:firefox": "cypress run --browser firefox",
"test:all": "npm run cy:run:dev && npm run cy:run:staging && npm run cy:run:prod",
"cy:run:electron": "cypress run --browser electron",
"test:summary": "node scripts/generate-summary-report.cjs",
"test:full": "npm run cy:run && npm run test:reports && npm run test:summary",
"test:reports": "mochawesome-merge cypress/reports/**/*.json -o public/reports/merged-report.json && marge public/reports/merged-report.json --reportDir public/reports --inline"
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment