# Grafana Panel RD Test scenario 2020/01~2020/12
---
###### tags: `Panel`
---
## 2020/11/17
### Alice
### feature/fix na shown when data existing
**Purpose**
1. [ fix ] fix the panel still displays N/A, when the data exists
2. [ change ] update ver & date
**Test Case**
1. test
- [x] change switch panel to the object that has no FlowIn/Out value
- [x] change switch panel to the object that has FlowIn/Out value
- [x] data name change test
## 2020/09/23
### Alice
### feature/ratio-type-and-feature-change
**Purpose**:
1. [Change]
- add ratio type & targetsName,
- change separator text from '/' to '|'
- value position interchange
2. [Change] old version compatibility
3. [Change] Update Version & Date
**Test Case**
1. test RingRatio data
- [x] have ratio type
- [x] no ratio type
- [x] day button and checkbox change
- [x] month button and checkbox change
2. test YoY data
- [x] have ratio type
- [x] no ratio type
- [x] day button
- [x] month button
- [x] year button
3. test VerticalRatio data
- [x] have ratio type
- [x] no ratio type
- [x] description text replace by targets name
- [x] day button
- [x] month button
- [x] year button
https://dashboard-develop-eks002.hz.wise-paas.com.cn/d/AlKWdCdMz/water-statistic-test_2020-09-23?orgId=29
## 2020/09/10
### Alice
### feature/support-YoY-VR-function-type
**Purpose**:
1. [Add] add Year button and switch data by "yearpercent"
2. [Change] add check box to change whole yesterday/whole last month percent -> same time yesterday / last month percent
3. [Add] check box in module
4. [Change] change same time text font size
5. [Change] 1. save switch setting in panel data 2. change the right value when check box is checked
6. [Change] Update Version & Date
**Test Case**
1. detect if "yearpercent" exist in datapoint -> show the 'year' button for data switch -> click the 'year' button -> check data change correct
2. & 3. detect if "yearpercent" not exist in datapoint -> show checkbox for same hour/day -> click check box it would be change percent mode at whole yesterday/last mouth -> same hour/day
4. upload plugin -> check the label that after checkbox font size is same as button
5. save dashboard -> check setting was kept & switch day & month button check right value was changed
## 2020/08/17
### Alice
### feature/fix title list error
**Purpose**:
- filter legal title as options
**Test Case**
1. upload plugin -> add datasource -> check title1 -> check select options is legal
2. use fake data test punit/unit -> check title1/title2 -> select unit -> checking punit/unit was shown
## 2020/08/12
### Tingwei
### [Fix]Defect #21172: When switch changed, login Successfully and the role is Admin but the user got Permission Denied message.
**Purpose**:
1. Defect #21172: When switch changed, login Successfully and the role is Admin but the user got Permission Denied message.
**Test Case**
1. test for purpose 1 on [Here](https://dashboard-develop-eks002.hz.wise-paas.com.cn/d/ZvrjzaIMz/controller-switch-fix-test?tab=visualization&orgId=24&fullscreen&edit&panelId=2)
- [x] add a test version **"Controller Switch - Fix Test"** panel -> click switch and login successfully
- [x] -> click switch -> input invalid password -> check whether login failed and get **"Invalid username or password"**
## 2020/08/11
### Alice
### feature/circuit-panel-default-img-center
**Purpose**:
- [fix][CircuitPanel] default image position is already center
-
**Test Case**
- [x] add a circuit panel -> fill image url -> show image -> check image is align center
## 2020/06/08
### Alice
### water flow in-out
#### feature/compatible-old-new-keys
[ change ] compatible punit and unit
**Purpose**:
- Compatible unit and new punit
**Test Case**
1. use new data source that with punit(develop) -> check use data source unit is usable
2. use new data source that without unit(develop) -> check use data source unit is no error
3. use old data source that with unit(showcase) -> check use data source unit is usable
## 2020/06/04
### Alice
### pie chart
#### feature/compatible-old-new-keys
[ change ] compatible punit and unit
**Purpose**:
- Compatible unit and new punit
**Test Case**
1. use new data source that with punit -> check use data source unit is usable
2. use new data source that without unit -> check use data source unit is no error
3. use old data source that with unit(showcase) -> check use data source unit is usable
### water level pumps
#### feature/compatible-old-new-keys
[ change ] compatible punit and unit
**Purpose**:
- Compatible unit and new punit
**Test Case**
1. use new data source that with punit -> check use data source unit is usable
2. use new data source that without unit -> check use data source unit is no error
3. use old data source that with unit(showcase) -> check use data source unit is usable
### water achieving rate
#### feature/compatible-old-new-keys
[ change ] compatible punit and unit
**Purpose**:
- Compatible unit and new punit
**Test Case**
1. use new data source that with punit -> check use data source unit is usable
2. use new data source that without unit -> check use data source unit is no error
3. use old data source that with unit(showcase) -> check use data source unit is usable
### water statistic
#### feature/compatible-old-new-keys
[ change ] compatible punit and unit
**Purpose**:
- Compatible unit and new punit
**Test Case**
1. use old data source that with unit(ringRatio) -> check use data source unit is usable
2. use new data source that with punit -> check use data source unit is usable
### multistat
#### feature/change-punit-regex-threshold
[ change ] unit -> punit, title1 & title2 display unit -> punit || unit, init data struct change, thresholds regex change
[ change ] update version, date, CHANGELOG
[1.0.10] - Jun 04, 2020
#### Fixed
- Compatible with new and old formats : unit and punit, use data source unit, title1 & title2 display unit
- Init data struct add/change
- Thresholds regex change
**Purpose**:
1. new and old formats compatible test (punit/unit)
2. Init data struct add/change
3. Thresholds regex change
**Test Case**
1. test punit & unit
- [x] fake data that with punit and unit, title select unit/punit display correct value
- [x] fake data that with punit and unit, use datasource display correct value
2. test data struct
- [x] add a new multistat panel, check data struct is complete
3. test threshold coloring response
- [x] coloring without threshold value
- [x] input single threshold test: value > threshold & threshold < value
- [x] test multi - threshold:value < threshold1 & threshold1 < value < threshold2 & threshold1 < threshold2 < value
https://dashboard-develop-eks002.hz.wise-paas.com.cn/d/m3g6FzmMk/multistat-test_2020-06-04?orgId=29
## 2020/06/03
### Alice
### water statistic
#### feature/threshold-format-unite
[ change ] update version & date, add CHANGELOG data, uglify code
[1.0.4] - Jun. 03, 2020
#### Fix
- Support single threshold
- Support no threshold coloring
- The format of the unified threshold is a string
- Change the regular expression specification
## 2020/06/02
### Alice
#### feature/threshold-format-unite
[ change ] threshold value uniformly uses string format
**Purpose**:
1. unite threshold value format
**Test Case**
1. test threshold coloring response
- [x] no threshold but Coloring --- first color
- [x] single threshold: 200.1 > value(200) === green(threshold[0])
- [x] single threshold: 199.9 < value(200) === orange(threshold[1])
- [x] single threshold: -100.1 < value(-100) === orange(threshold[1])
- [x] single threshold: -99.9 > value(-100) === green(threshold[0])
- [x] delete threshold: value color === green(threshold[0])
- [x] multiple threshold: -100, 200 | value(200) === red(threshold[2]),value(-100) === orange(threshold[1])
- [x] multiple threshold: 100,201 | value(200) === orange(threshold[1]), value(-100) === green(threshold[0])
https://dashboard-develop-eks002.hz.wise-paas.com.cn/d/72rEItkMz/water-statistic-test_2020-06-02?orgId=29
## 2020/05/27
### Alice
#### feature/diff-threshold-mode
[ fix ] single threshold and no threshold coloring
**Purpose**:
1. coloring when no threshold or single value
**Test Case**
1. test threshold coloring response
- [x] no threshold but Coloring --- first color
- [x] single threshold,(201) >= (threshold = 200) === orange
- [x] single threshold,(199) < (threshold = 200) === green
- [x] single threshold,(-99) >= (threshold = -100) === orange
- [x] single threshold,(-101) < (threshold = -100) === green
- [x] multiple threshold,(-101) < -100 < 200 === green
- [x] multiple threshold,-100 < (0) < 200 === orange
- [x] multiple threshold,-100 < 200 < (201)=== red
https://dashboard-develop-eks002.hz.wise-paas.com.cn/d/72rEItkMz/water-statistic-test_2020-05-27?orgId=29
## 2020/04/08
#### [ fix ] text coloring color[2] when value equal max thresholds value
**Purpose**:
1. value equal max thresholds color is still color[0]
**Test Case**:
1. set value equal max thresholds -> check color is color[2]
### [ fix ] text coloring determine if thresholds is single value or null, '', non-numeric random string
**Purpose**:
1. text coloring when thresholds is single value(when coloring is true)
2. text coloring when thresholds is non-numeric random string(when coloring is true)
**Test Case**:
1. add multistat panel -> check coloring -> input thresholds (single value) -> refresh value -> check text color will switch between thresholds [0] & [1] color
2. add multistat panel -> check coloring -> input thresholds (Non-numeric random string) -> check text color keep at color[0]
## 2020/04/07
#### [ fix ] text coloring by first threshold color, if coloring check is true
**Purpose**:
1. coloring text when coloring is true
**Test Case**:
1. add multistat panel -> check coloring -> Value or Prefix or Postfix -> check font color is the first color in colors
## 2020/04/06
#### [ fix ]
1. current text error
2. current value over max value lead bar overflow column
3. current value more than secondThreshold, bar that is second color has error length
#### [ change ] tweak cell width
**Purpose**:
1. fix current and max text error
2. fix bar length error
**Test Case**:
1. check after As Bar is true, the current value that be assigned unit after translation is correct.
2. change the current value as firstThreshold
3. change the current value as secondThreshold
4. change the current value as max value
5. change the current value over max value
## 2020/04/01
#### [ fix ] fix maximum value unit error when column styles's type use array and as bar is true.
**Purpose**:
fix max value error when assign unit (before fix : 216000(m) => unit minutes will be 21 min, now will be 2 day)
**Test Case**:
1. set switch panel
2. input datatable metrics GroupPath: $Organization0 & $Organization1, ObjectParam: RunTime, FunctionType: objectsMonitor
3. Options -> Rows per page: 20
4. Display -> check Table Setting
- Info Enabled
- Cell Borders
- Compact Rows
- Striped Rows
5. Column Styles add objectname, almstat, status & objruntime
6. objruntime Type Array, Unit select minutes(m), Decimals 0, As Bar true
7. check after As Bar is true, the max value that be assign unit is correct.