---
# System prepended metadata

title: DeviceOn/BI Portal RD Test scenario 2022/01~2022/06
tags: [DeviceOnBI]

---

# DeviceOn/BI Portal RD Test scenario 2022/01~2022/06
---
###### tags: `DeviceOnBI`

## 2022/4/20
### Alice
#### feature/SOE

**Purpose**
1. [add] SOE icon
2. [change] node page name & icon change
3. [change] page file name change
4. [change] file format
5. [change] remove annotations
6. [change] update home page & icons & text
7. [add] soe api & proxy
8. [change] file name & id & info change
9. [add] 
    1. SOE tab button
    2. SOE List add event group name & translate timestamp 
    3. search & filter correction 
    4. no data content tweak
10. [add] delete SOE rule
11. [change] update SOE api (POST & PATCH)
12. [change] update list error & button position
13. [change][SOE] api update
14. [add] SOE rule dialog
15. [add][SOE] null data content
16. [add][SOE] select params
17. [change][SOE] table type style, delete param
18. [change][SOE] add description
19. [fix][SOE] list load timing fix
20. [Actions][change] mapState alarmGroupType
21. [change][SOE] 
    1. add delete param
    2. add sample rate column 
    3. change placeholder 
    4. remove excess css
22. [add][SOE] validation when saving rules
23. [change][SOE] parameter select new UI
24. [change][SOE] renew style & search tweak & add path & select all & save
25. [change] [Actions] icon & text color change
26. [fix][SOE] event group sort error fix, add dialog loading
27. [change][SOE] dialog input column change and tips, param filter & search & multiple delete
28. [change][SOE]
    1. default load & sort 
    2. focus node style
    3. add datatype and path
29. [change][SOE] highlight onload

**Test**
1. test for Home & Tab Actions -> SOE Rule List (1~10)
    - [x] home icon & text
    - [x] pageAction tab & SOE rule tab
    - [x] tip for no data (no data & no search result)
    - [x] list table & sort
    - [x] list search & filter
    - [x] rows pre page & pagination
    - [x] delete rule
2. test for SOE Rule Edit Dialog
    - [x] SOE Rule Name
    - [x] Alarm Group Select
    - [x] Description
    - [x] Number Of Sample Before Event
    - [x] Number Of Sample After Event
    - [x] Sample Rate
    - [x] Sample Rate * Before/After tips
    - [x] Referenced Parameters Table
    - [x] Referenced Parameters Search & Filter
    - [x] Referenced Parameters Single & Multi Param Delete
    - [x] Referenced Param Null Handle
    - [x] Create
    - [x] Edit Load
    - [x] Validation Check
3. test for Select Parameters Dialog
    - [x] Dialog title & tips
    - [x] Group & Object & Parameter search
    - [x] Group List
    - [x] Object List
    - [x] Parameter List
    - [x] Default/Load select highlight
    - [x] Move to right/left -> Change parameter to check disabled or abled
    - [x] Select all
    - [x] Indeterminate status
    - [x] Object, Parameter, Select Parameter default sort
    - [x] Save as Param

## 2022/2/17
### Alice
#### feature/update-function-list-api

**Purpose**
1. [change] select state multilang
2. [change] checking the template and panel function type 
3. [change] update functionType default value
4. [change] after select parameter in selectTagDialog, update function type list based on data type
5. [add] add default multilang function list
6. [change] update functionType method to 'GET' and add lang key

**Test**
1. test for blank
    - [x] singlestat -> edit
    - [x] miltistat -> add and edit
    - [x] graph -> add and edit
    - [x] grouped bar chart -> add and edit
    - [x] advantech water statistic -> add and edit
2. test for water template
    - [x] 1.2
    - [x] 2.2
    - [x] 3.1
    - [x] 3.2
    - [x] 3.3
    - [x] 3.6
3. test for equipment template
    - [x] 1.2
    - [x] 2.1
    - [x] 2.2
    - [x] 2.4

## 2022/2/11
### Tingwei
#### [Fix][Home]The card title is overflow to the near card in Japanese language condition. Fix by letting the box width fits the wrapper box, word-break use break-word.

**Purpose**
1. [Fix][Home]The card title is overflow to the near card in Japanese language condition. Fix by letting the box width fits the wrapper box, word-break use break-word.
2. [Fix] notInSpaceErrorMsg.zh_tw mistakenly fills zh_cn translation.

**Test**
1. test in ja language condition in different window width
    - [x] 2049 px
    - [x] 1921 px
    - [x] 1920 px
    - [x] 1761 px
    - [x] 1601 px
    - [x] 1441 px
    - [x] 1366 px
    - [x] en
    - [x] tw
2. test notInSpaceErrorMsg.zh_tw mistakenly fills zh_cn translation
    - [x] test by changing code to show the error 

## 2022/2/10
### Tingwei
#### [Fix] DeviceOn/BU to DeviceOn/BI

**Purpose**
1. [Fix] DeviceOn/BU to DeviceOn/BI
2. [Fix][Header] Fix language dropdown style bug appears in Japanese condition.
3. [Fix][Header] Fix language dropdown clicking event is not triggered when the user clicks at the dropdown item padding.

**Test**
1. test in /trial/trialAgreement?ssoOrCheckActivationCode=sso
- [x] local Storage activationCodes = 2 -> refresh -> terms 4.3 **...  DeviceOn/BI user interface**
- [x] -> click Print -> terms 4.3 **...  DeviceOn/BI user interface**
- [x] local Storage activationCodes = 4 -> refresh -> terms 4.3 **...  DeviceOn/BI user interface**
- [x] -> click Print -> terms 4.3 **...  DeviceOn/BI user interface**
- [x] ja -> check language dropdown style in the header
- [x] header -> setting -> language -> click at padding of 繁體中文 -> the language change to 繁體中文

## 2022/2/9
### Alice
#### feature/multilang-fix-and-add

**Purpose**
1. [fix] multilang fix and add
2. [change] add translations, fix symbols
3. [fix] fix cancel confirm type error
4. [fix] return multilang error(validate)

**Test**
1. test for pageDashboard
    - [x] Wizard - New Blank - Refresh Time
    - [x] Wizard - Graph - Edit X Axis, Time Interval
    - [x] Wizard - LogChart - ISO description
    - [x] Wizard - SaaS Composer - Select Object
    - [x] Wizard - Monitor - Span high, Span low
    - [x] pageDashboard - SORT BY, ORDER
    - [x] pageDashboard -> Menu List -> Create -> Select Link -> Search - No Org Found
    - [x] pageDashboard -> Menu List -> Create -> Menu Contents - no_menu_tree_description
2. test for pageNotification
    - [x] Filter - Alarm Group
    - [x] Filter - Alarm User Group
    - [x] Create Alarm Notification Group -> error message

3. test for pagePlugin
    - [x] Authentication List -> Delete Authentication
    - [x] Plugin List -> Delete Plugin
4. test for pageForwarding
    - [x] Forwarding List -> Delete Forwarding Rule
    - [x] Forwarding List -> Add Forwarding -> Select Parameter - select_data_source_tips_replace_keyword
5. test for add org/group
    - [x] Cancel Create Root Org/Sub Group -> Cancel Group tips
5. test for User Management
    - [x] userManagement - Registration Time
6. test for Device Management
    - [x] Grouping - Grouping tab
    - [x] Grouping - Event Count
    - [x] Grouping - Add Group
    - [x] Grouping - Summary
    - [x] Grouping - Manage Device Mode

## 2022/2/8
### Tingwei
#### [Change][getBLobInfo] Only Object and Archiving saving object data need to GET blob info. For await promise, also moving getBlobInfo from mutations to actions. And other features.


**Purpose**
1. [Change][getBLobInfo] Only Object and Archiving saving object data need to GET blob info. For await promise, also moving getBlobInfo from mutations to actions. 
2. [Fix][Create Object][Vue warn]: Invalid prop: type check failed for prop "showSteps". Expected Boolean, got String with value "true". 
3. [Fix][Edit group] Cannot set properties of undefined (setting 'blobSwitchNotDisabled'). The blob can be disabled even though `Days To Keep Object Data > 731` because this.$refs.blob is undefined at the first time dialog showing.

**Test**
1. test 1
    - [x] go to page Dashboard -> GET datapackerAPI/storage/[orgid] does not send
    - [x] page Object in the enable blob org (david-test19) -> edit object -> set `Days To Keep Object Data > 31` -> save object -> GET datapackerAPI/storage/[orgid] 200 with responsing data -> check PUT api/machine/update/[id] request in network, parameter item.dataKeptDays is equal to `Days To Keep Object Data`
    - [x] page Object in the disable blob org (tingwei-test) -> edit object -> set `Days To Keep Object Data > 31` -> save object -> GET datapackerAPI/storage/[orgid] 200 with responsing `null` -> check PUT api/machine/update/[id] request in network, parameter item.dataKeptDays is 31
    - [x] page Archiving in the enable blob org (david-test19) -> set `Days To Keep Object Data > 31` -> save object -> GET datapackerAPI/storage/[orgid] 200 with responsing data -> check PUT api/machine/update/[id] request in network, parameter item.dataKeptDays is equal to `Days To Keep Object Data`
    - [x] page Archiving in the disable blob org (tingwei-test) -> set `Days To Keep Object Data > 31` -> save object -> GET datapackerAPI/storage/[orgid] 200 with responsing `null` -> check PUT api/machine/update/[id] request in network, parameter item.dataKeptDays is 31
2. test 2
    - [x] create Objet -> no "[Vue warn]..." in Console
3. test 3
    - [x] in `Days To Keep Object Data > 731` group and its Blob is enabled -> refresh page -> edit group -> no that error in Console
    - [x] -> blob tab -> the Blob can not be disabled
    - [x] in `Days To Keep Object Data <= 731` group and its Blob is enabled -> refresh page -> edit group -> blob tab -> the Blob can be disabled

#### [Fix][Dashboard wizard][Associate Parameter] Edit an existing parameter data source, change object to another one, delete all parameter filter keywords by backspace of keyboard, click a parameter but changing parameter does not work. And other features.

**Purpose**
1. [Fix][Dashboard wizard][Associate Parameter] Edit an existing parameter data source, change object to another one, delete all parameter filter keywords by backspace of keyboard, click a parameter but changing parameter does not work. 
2. [Fix][Dashboard wizard][Associate Parameter] Edit an existing parameter data source, change some keywords, click a parameter but mistakenly assign filter keywords to the parameter name. 
3. [Change][Dashboard wizard][Associate Parameter] Clear the selected parameter when the object changes. If the parameter is not defined, the ASSOCIATE button is disabled.
4. [Fix][Dashboard List] Fix changing two week ago, `438418e`, `v-if="isDataLoaded..."` causes editing dashboard and saving, the cards do not show. The error is `Cannot read properties of undefined (reading 'renewData')` because this.$refs.slotParameterToolBar is undefined. Change v-if to v-show.

**Test**
1. test 1
    - [x] Edit an existing parameter data source -> change object to another one -> delete all parameter filter keywords by backspace -> click a parameter -> parameter change
2. test 2
    - [x] Edit an existing parameter data source -> change object to another one -> change some parameter filter keywords -> click a parameter -> parameter change to the correct parameter
3. test 3
    - [x] Edit an existing parameter data source -> change object to another one -> the parameter is cleared
    - [x] -> the ASSOCIATE button is disabled
    - [x] new data source but the parameter is not defined -> the ASSOCIATE button is disabled
4. test 4
    - [x] edit a dashboard -> save

## 2022/2/7
### Alice
#### feature/multilang-fix

**Purpose**
1. [fix] ringratio return data format error

**Test**
1. test for pageDashboard
    - [x] new blank -> add water statistic panel -> select parameter -> select function - ringRatio -> save -> preview -> check return data correct
    - [x] new from template -> select smart water 1.2 Single Factory Overview -> save -> preview -> check the json was added panelType in target
    - [x] new from existing -> select dahboard that has water statistic panel -> next -> change dashboard name -> save -> check return data correct
    - [x] edit existing dashboard that has water statistic panel -> save -> preview -> check the json was added panelType in target

## 2022/1/28
### Tingwei
#### [Fix][getUserList] On page Devices, when clicking "Manage Users", commit('getUserList') triggers commit('resetBiImages'), this clear all device images, and then get all device images again. Fix by adding 'account' type to clear account images only.


**Purpose**
1. [Fix][getUserList] On page Devices, when clicking "Manage Users", commit('getUserList') triggers commit('resetBiImages'), this clear all device images, and then get all device images again. Fix by adding 'account' type to clear account images only.

**Test**
1. test
    - [x] Devices -> open network tab of the chrome devtool -> Manage Users -> device images are not loading and only getting account image requests sent.
    - [x] User Management -> edit a user -> change image -> save -> make sure the user image updated

## 2022/1/27
### Tingwei

#### [Fix][Page Dashboard & Page User] Handle "Folder not found" response of below API from Grafana, Saving dashboard API, creating user API, and binding user API.

**Purpose**
1. [Fix][Page Dashboard & Page User] Handle "Folder not found" response of below API from Grafana, Saving dashboard API, creating user API, and binding user API. Also, add util.checkIsGrafanaFolderNotFound function in util.js.
2. [Fix] When make a resync request, loading does not show.
3. [Fix][Page User] When make a changing role request, setLoadingStart mistakenly triggers after the request reponsed. 
4. [Fix][Page Dashboard] Hide the toolbar and the cards util isDataLoaded

**Test**
1. test
    - [x] Create dashboard -> save -> resync dialog -> resync
    - [x] Create dashboard -> preview -> resync dialog -> resync
    - [x] Create User -> save -> resync dialog -> resync
    - [x] Bind User -> save -> resync dialog -> resync
    - [x] Delete current group folder in grafana -> add child group in BI (no need to change code)
2. test 2
    - [x] change network speed to slow 3G -> resync
3. test 3
    - [x] change network speed to slow 3G -> change role
4. test 4
    - [x] in page dashboard -> change network speed to slow 3G -> change org

### Alice
#### feature/multilang-fix

**Purpose**
1.  [change] User_List -> users, user_defineds -> user_defined, water_statistic_tip -> water_statistic_vertical_ratio_tip
2. [change] unified key-value in multiple languages

## 2022/1/22
### Tingwei

#### [Fix]The user changed in Grafana, switch to BI tab, the user mismatches the username of EIToken.

**Purpose**
1. [Fix]The user changed in Grafana, switch to BI tab, the user mismatches the username of EIToken.

**Test**
1. test in develop BI
    - [x] sign in to A -> change to B in Grafana in another tab -> back to BI -> show User Changed dialog
    - [x] -> Press OK to refresh -> the user switched to B

## 2022/1/17
### Alice
#### [change] remove staticSource multilang, fix default lang when multilang empty

**Purpose**
1. [change] remove staticSource multilang, fix default lang when multilang empty

**Test**
1. test
    - [x] pageDevice -> tab list
    - [x] header -> help
    - [x] index -> welcom & desc
    - [x] add group -> next -> cancel
    - [x] add object -> skip -> cancel 

## 2022/1/12
### Tingwei

#### [Update]When logout, if loginPageUrl in the cookies, redirect to loginPageUrl.

**Purpose**
1. [Update]When logout, if loginPageUrl in the cookies, redirect to loginPageUrl. 
2. [Update]login from BI /#/login page, delete loginPageUrl from the cookies
3. [Update] Add or delete logoutType when redirect to loginPageUrl. In the custom portal, if logoutType === 'timeout', show "Session Timeout!"
4. When redirect to /login from Trial relative pages, only redirect to /login even though loginPageUrl exists in the cookies.

**Test**
1. test in https://portal-custom-develop-eks002.hz.wise-paas.com.cn/#/admin
    - [x] login to BI -> check whether loginPageUrl in the cookies -> logout -> check whether redirect to https://portal-custom-develop-eks002.hz.wise-paas.com.cn/#/admin
2. test 2
    - [x] https://portal-custom-develop-eks002.hz.wise-paas.com.cn/#/admin login -> input /#/login in URL and go to BI login page ->  login -> logout -> redirect to BI login Page
3. test 3
    - [x] https://portal-custom-develop-eks002.hz.wise-paas.com.cn/#/admin login -> delete token from the cookies and localStorage -> change to any BI page -> timeout and redirect to https://portal-custom-develop-eks002.hz.wise-paas.com.cn/#/admin?logoutType=timeout -> show Session Timeout
4. test 4
    - [x] loginPageUrl exists in the cookies -> https://portal-deviceon-bi-develop-eks002.hz.wise-paas.com.cn/#/login -> Sign up -> click back -> login BI
    - [x] loginPageUrl exists in the cookies -> https://portal-deviceon-bi-develop-eks002.hz.wise-paas.com.cn/#/trial/wizardItem -> click GET START -> redirect to /login

### Alice
#### feature/multilang-fix

**Purpose**
1. [change] select width tweak
2. [fix] multilang fix

**Test**
1. test for create object
    - [x] create object from template -> check the select dropdown can accommodate Japanese text width

## 2022/1/10
### Tingwei

#### [Fix][Group inspection] Disable the inspection, active another tab, back to inspection tab again, the inspection is enabled, but it must be disabled actually. And other features.

**Purpose**
1. [Fix][Group inspection] Disable the inspection, active another tab, back to inspection tab again, the inspection is enabled, but it must be disabled actually.
2. [Fix][Group Dialog][Notification] In Notification, active WeChat tab, change to another Main tab, change back to Notification tab, we found the tab is email, but the tab content is WeChat. Fix by setting the old tab to the currentCustomTab. Also reset the Notification tab to email, when resetForm().
3. [Fix][Group Dialog][Lang] Select not default language, close dialog, then edit dialog, we found the active language tab is the default language, but its content is residual language kept from the dialog closing.
4. [Fix][Page Users] Show "No Search Results, yet" when searching found no result.

**Test**
1. test Inspection
    - [x] disable inpection -> change tab -> change back to inspection -> whether inspection is disabled
    - [x] -> close dialog -> edit group -> whether inspection is disabled
    - [x] -> enable inspection -> change back to inspection -> whether inspection is enabled
    - [x] -> close dialog -> edit group -> whether inspection is enabled
2. test Notification mismatching content
    - [x] active WeChat -> change to Basic Information -> change back to Notification -> whether WeChat tab matches WeChat content
    - [x] -> active Email -> change to Basic Information -> change back to Notification -> whether Email tab matches Email content
    - [x] active WeChat -> close dialog -> edit group -> Notification -> whether Email actived
3. test basic Information language mismatching content
    - [x] my default lang is EN -> edit group -> change to Ja -> close dialog -> edit group -> check whether language tab and content are both EN
4. test no searching result description in page Users
    - [x] no searching result -> show "No Search Results, yet. Please try different keyword or criteria."