# WISE.M+ Portal RD Test scenario 2020/04~2020/06 --- ###### tags: `WISE.M+` ## 2020/06/20 ### Tingwei #### [Change][Profile][Add Shared Code]change multiple language 'share_code' to 'shared_code' **Purpose**: 1. Refer title **Test Case** 1. test - [x] check "Add Shared Code Dialog" #### [Fix][Menu]Fix Menu Dialog -> Menu Contents -> page info is invalid, but disable Control Buttons failed. and more... **Purpose**: 1. [Fix][Menu][Menu Dialog]Fix menu -> Menu Contents -> page info is invalid, disable Controll Buttons failed. 2. [Change][subTabsHasDefaultActiveValue] Support "item.langKey", avoid mixing purpose of "key"(use in type, editType) and "multiple lang key" in "item.key". 3. [Fix][Menu]The Earth icon and Sync Button disable when page info is invalid. 4. [Fix][Menu]Menu Contents -> change "page setting" to "Page Setting" by css text-transform. 5. [Fix][fakeTab]Add cursor:not-allow when .is-disabled. **Test Case** - test purpose 1 ,3 and 5, Menu Dialog -> Menu Contents -> not fill title in page name -> check disabled status on below - [x] lang tab button - [x] edit type button - [x] The Earth button - [x] Sync button - [x] Add page/Fold button - [x] menu item dropdown - [x] save - test purpose 2, make sure after change subTabsHasDefaultActiveValue, multiple lang and change type still work in another dialog - [x] object profile dialog -> constant dialog - [x] object profile dialog -> calculation dialog - [x] object profile dialog -> primitive dialog - [x] object dialog -> constant dialog - [x] object dialog -> calculation dialog - [x] object dialog -> primitive dialog - test purpose 4 - [x] Menu Contents -> check "Page Setting" ## 2020/06/18 ### Tingwei #### [Fix][Profile]Fix manage codes button etc. **Purpose**: 1. Refer title 2. [Fix][dialog.scss]Fix double border in --0-51.dialog-4 version dialog. Remove redundant border-bottom in .profile-dialog--0-51.dialog-4 .el-dialog__body or .el-dialog__wrapper--0-51.dialog-4 .el-dialog__body. There is border-top in all size of --0-51 version .el-dialog__footer. 3. [Fix][deleteDialog] header padding-bottom and .el-dialogh__body wod-wrap **Test Case** 1. test - [x] manage codes button - [x] sort button 2. test Purpose 2 - [x] delete org - [x] confirm cancel from edit object dialog - [x] delete parameter from object dialog - [x] confirm cancel from srpdashboard - [x] delete profile - [x] sync menu dialog 3. test purpose 3 - [x] delete profile #### [Fix][SRPDashboard][Log Chart]Word "Data Source" to "Select Parameter" etc. **Purpose**: 1. [Fix][SRPDashboard][Log Chart]Word "Data Source" to "Select Parameter" 2. [Fix][SRPDashboard][Infographic][Multistat]No space between "Select Parameter" and "(" 3. [Fix][SRPDashboard][Log Chart]Edit dialog title show "Add New Item" when "edit". 4. [Fix][SRPDashboard][Log Chart]Fix use "x_axis_settings" in "Y Axis Setting" 5. [Fix][SRPDashboard][Log Chart]In X/Y Axis Setting table, exchange time format with unit . 6. [Fix][SRPDashboard][Log Chart]The showed time format is not the same as the user saw at the select label. **Test Case** 1. test - [x] check log chart: Word "Data Source" to "Select Parameter" 2. test purpose 2 - [x] check infographic: Add space between "Select Parameter" and "(" - [x] check : Add space between "Select Parameter" and "(" 3. test purpose 3 - [x] add item -> check dialog title - [x] edit item -> check dialog title 4. test purpose 4 - [x] edit X/Y Axis Setting -> check "Y Axis Setting" 5. test purpose 5 - [x] in X/Y Axis Setting table, whether X:time-format Y:unit 6. test purpose 6 - [x] in X/Y Axis Setting table, whether time-format is the same as the time-format of label at the select ## 2020/06/17 ### Tingwei #### [Fix]no $i18n crash **Purpose**: 1. Refer title **Test Case** 1. test - [x] go to http://localhost:8080/#/index/organizationManagement #### [Add][Profile][Share Code]share code generate uuid3 md5(16 char) and dropdown **Purpose**: 1. [Add][Profile][Share Code]Generate uuid3 md5(16 char) when dialog show 2. [Add][Profile][Share Code]Auto fill when click **Test Case** 1. test - [x] choose "Share" -> focus input -> click 'use suggested code' - [x] choose "Share" -> input @#$% -> click 'use suggested code' ### Alice #### feature/threshold-format-fix [ change ] threshold save format fix ( multistat, water statistic) [ change ] simplify ( multistat ) **Purpose**: 1. change the threshold format for 2.0.0 multistat and water statistic **Test Case** #### multistat 1. srpsetup threshold test - [x] add 1 threshold that > value in setup - [x] add 1 threshold that < value in setup - [x] add 2 threshold that threshold1 > value in setup - [x] add 2 threshold that threshold1 =< value in setup - [x] add 2 threshold that threshold2 < value in setup - [x] select color no add threshold check font coloring - [x] built-in threshold test #### water statistic 1. srpsetup threshold test - [x] add 1 threshold that > value in setup - [x] add 1 threshold that < value in setup - [x] add 2 threshold that threshold1 > value in setup - [x] add 2 threshold that threshold1 =< value in setup - [x] add 2 threshold that threshold2 < value in setup - [x] select color no add threshold check font coloring - [x] built-in threshold test ## 2020/6/16 ### Tingwei #### [Add][Manage Shared Code][Shared With Me]Shared With Me of Manage Shared Code **Purpose**: 1. [Add][Manage Shared Code][Shared With Me]Shared With Me 2. [Upgrade][fakeTab]fakeTab.vue support .show-all-border-bottom and .full-width 3. [Upgrade][deleteButton]deleteButton.vue add class="delete-button" and this.$emit("click"); 4. [Add][mplus-table]mplus-table.scss. Add class="mplus-table" at <el-table> to over-write element-ui table style 5. [change]change share code maxlength rule to 64 **Test Case** 1. shared with me (description of summary can not test before Api Support) - [x] click manage codes - [x] add share code input maxlength more than 16 - [x] add share code input special char - [x] add share code input duplicate share code -> submit -> change code -> submit - [x] click '+number' when more than 6 proifls in a share code row - [x] hover profile image -> show dropdown - [x] delete share code -> cancel - [x] delete share code -> esc - [x] delete share code -> click 'Delete' - [x] close manage share code dialog -> add share profile -> then open again - [x] sort share code #### [Fix][Add Share Code]Correct error message of util.js -> specialErrorMsgShareCode **Purpose**: 1. [Fix][Add Share Code]Correct error message of util.js -> specialErrorMsgShareCode 2. trim() share code when input **Test Case** 1. test - [x] input "#$%^&" at share code input - [x] input "duplicate share code" at share code input and submit - [x] paste " xxx " at share code input #### [Fix][Share Code Management][Shared With Me]Set default sort asc **Purpose**: 1. [Fix][Share Code Management][Shared With Me]Set default sort asc **Test Case** 1. test - [x] open share code management #### [Fix][Profile][Share Code] **Purpose**: 1. [Fix][Profile]Click another lang in share code invalid condition, but not reject change language. 2. [Fix][Profile]share code use rule of blockType when mode is not 'shared'. 3. [change][Profile]change Label "Share Code" to "Share" 4. [change][Profile]share code trim when change 5. [Fix]Correct util.js -> specialErrorMsgShareCode.en **Test Case** 1. test - [x] select share -> input empty into share code -> click another lang tab - [x] -> input more than 16 into share code -> click another lang tab - [x] -> input @#$% into share code -> click another lang tab - [x] -> select private -> click another lang tab - [x] -> select share -> input tingwei-share into share code -> click another lang tab - [x] paste " xxx " at share code input -> blur ## 2020/6/4 ### Tingwei #### [Fix][SRPDashboard][Monitor]Normal color was not carry when choose "L" and "LL" **Purpose**: 1. Refer to title **Test Case** 1. chech in alarm mode value threshold - [x] L LL - [x] L - [x] LL - [x] L H - [x] L HH - [x] LL H - [x] LL HH - [x] H HH - [x] H - [x] HH #### [Add][SRPDashboard][Preview Dashboard]Add Preview Dashboard **Purpose**: 1. Add Preview Dashboard 2. delete 'preview-dashboard-xxx' when close dialog. 3. filter 'preview-dashboard-' from dashboard list in srp-dashboard 4. filter 'preview-dashboard-' from dashboard list in menu-select-dialpog 5. validate whether dashboard name starting with 'preview-dashboard-' **Test Case** 1. Add Preview Dashboard: - [x] create dashboard -> click 'Preview' - [x] -> make some change -> click 'Preview' - [x] edit dialog -> click 'Preview' 2. delete 'preview-dashboard-xxx' when close dialog. - [x] click 'Preview' -> save dashboard - [x] click 'Preview' -> cancel dashboard - [x] click 'Preview' -> press esc - [x] click 'Preview' -> click 'Previous' 3. filter 'preview-dashboard-' from dashboard list in srp-dashboard - [x] click 'Preview' -> check dashboard list in srp-dashboard at another browser tab/window 4. filter 'preview-dashboard-' from dashboard list in menu-select-dialpog - [x] click 'Preview' -> check dashboard list in menu-select-dialog at another browser tab/window 5. validate whether dashboard name starting with 'preview-dashboard-' - [x] input 'preview-dashboard-' -> save will be rejected - [x] input 'preview-dashboard-a' -> will be rejected - [x] input 'apreview-dashboard-' -> save will be pass - [x] input 'preview-dashboard' -> save will be pass #### [Add][SRPDashboard]Add color highlight of water statistic, singlestat(text), multistat, water pump status **Purpose**: 1. Refer to title **Test Case** 1. chech hightlight - [x] water statistic threshold - [x] singlestat(Text) threshold - [x] multistat threshold - [x] water pump status - Machine State Color (ON) - [x] water pump status - Bar color (Current Color) ## 2020/6/3 ### Tingwei #### [Merge]Merge feature/infinite scroll into dev **Purpose**: 1. Merge feature/infinite scroll into dev **Test Case** 1. go to profileManagement #### [Change][SRPDashboard][Monitor]1.Add displayname automatically (displayname is same as title or deviceparam ). 2.validate duplicate displayname **Purpose**: 1. Add displayname automatically (displayname is same as title or deviceparam ). 2. validate duplicate displayname **Test Case** 1. check Add displayname automatically - [x] create dashboard -> select monitor -> save dashboard directly -> check displayname in grafana datasource 2. validate displayname - [x] edit dashboard -> select monitor -> select same parameter(same desc) -> save item will be rejected - [x] -> input duplicate item title/display name -> save item will be rejected - [x] -> input empty item title/display name -> save item will be rejected - [x] -> input unique item title/display name -> save ## 2020/6/2 ### Tingwei #### [fix][SRPDashboard]feature/fix-value-threshold-symbol-etc **Purpose**: 1. Fix wrong symbol of alarm mode value threshold(LL and L are <, H and HH are ≥) 2. Manual mode value threshold support import symbol from setting 3. Show symbol of first threshold when threshold length > 1 4. Progress bar apply custom symbols in value threshold(replace < with ≤ , replace ≥ with > ) 5. [Change][SRPDashboard][Monitor]In default status(never saved item), If display is not using threshold, set use-thresholds true and set default-color as the first color. **Test Case** 1. Fix wrong symbol of alarm mode value threshold - [x] chech symbol of alarm mode value threshold in water 3.3 multiStat 2. Purpose2,4: - [x] check symbol of alarm/manual mode value threshold in water 3.3 progress bar 3. Show symbol of first threshold when threshold length > 1 - [x] delete any manual thresholds until length === 1 in water 3.3 multiStat 4. In default status(never saved item), If display is not using threshold, set use-thresholds true and set default-color as the first color. - [x] create dashboard, select 3.1, select monitor -> edit (Center Status/Center Circle/Left Circle/Right Circle) -> save - [x] normal case: -> edit monitor, select monitor -> edit add manual threshold of Center Circle/Left Circle/Right Circle until length === 3 -> save - [x] normal case: -> edit monitor, add one alarm threshold -> save ## 2020/5/29 ### Alice #### [ fix ] share code validate rewrite profileData Validate **Purpose**: 1. fix rewrite profileData validate **Test Case** 1. save when mode is shared without code check if failed validate 2. cancel after verification failed and create again, check validate clear 3. save when mode is shared with code and check if other validation processing ## 2020/5/28 ### Tingwei ### 1.[Fix][Profile]Fix show "None Profile Matched" when loading 2.[Fix][Profile][New Profile Searcher]Fix in keyword exist condition, click reset but clear keyword was trigger. **Purpose**: 1. Refer to the title 2. Refer to the title **Test Case** 1. test purpose 1 in slow network condition - [x] sumit search 2. test purpose 2 - [x] input keyword and modify search options -> click reset ## 2020/5/27 ### Tingwei ### [Fix][Loading] Two loading icon in "nodepage Objects/Devices" and position wrong in infographic **Purpose**: 1. Refer to the title **Test Case** 1. test in slow network condition(search v-loading in all files) - [x] in index/organizationManagement , change org, check loading on Ojects/Devices - [x] create alarm group from Neihu -> click AirHand-1 - [x] create object from profile -> change category - [x] create srpdashboard -> select parameter - [x] Saas Composer -> Add Item -> change Organization - [x] merge to dev-equipment-srpdashboard -> select 'infographic' -> check loading in picture setting and edit picture - [x] merge to infinite scroll -> check loading at the bottom of profile cards ### [Change][Profile][Validate Duplicate Name] Validate Duplicate Name by Profile Server. **Purpose**: 1. Refer to the title **Test Case** 1. test - [x] create profile -> input duplicate name -> save - [x] -> valid name -> save - [x] edit profile -> save - [x] edit profile -> input duplicate name -> save - [x] -> valid name -> save - [x] edit Anonymous Profile -> input duplicate name -> save - [x] -> valid name -> save - [x] duplicate insensitive profile name -> save ## 2020/5/26 ### Alice #### [ change ] 1. profile library api change 2. change build by me shared profile icon **Purpose**: 1. profile api change to http://api-profile-mplus-develop-eks002.hz.wise-paas.com.cn 2. build by me but shared profile card icon change **Test Case** 1. test api response - [x] profile management check list response ok - [x] check create profile and upload alarm code to save ok - [x] check after edit profile save ok - [x] check upload profile and save is ok 2. check icon is shared - add profile and mode set shared -> save -> check profile card icon is shared - edit profile and change the mode to shared -> save -> check profile card icon is shared #### [ fix ] 1. mode for Lan test, not just for Local 2. menu item border-top tweak 3. dashboard proxy table api add http's' **Purpose**: 1. Allow other computers in the Lan to connect for test 2. Setup dashboard left menu item inner border is not obvious enough and multiple outer border 3. For back-end cross domain access request **Test Case** 1. switch otehr computer -> connect M+ with Lan IP address -> check login ok and can be used normally 2. dashboard setup open -> check left menu border color and check if the line is repeated 3. open dashboard setup -> Choose template -> check json back -> save -> check ok ### Tingwei #### [ Change ][ Loading ] Change loading icon of not full-screen condition **Purpose**: 1. Refer to the title **Test Case** 1. test in slow network condition - [x] in SRPDashboard, select parameter #### [ Change ][ SRPDashboard ] Replace 'other_settings' as 'other_setting' **Purpose**: 1. Refer to the title **Test Case** 1. Test of infographic is waitting for multiple language updated. ## 2020/5/25 ### Tingwei #### [ change ] New design profile searcher and sortBy/orderBy **Purpose**: 1. new searcher 2. new sortBy/orderBy 3. reset all "search/sort/order" data when "Save Profile" and "Add Share Code" **Test Case** 1. test search - [x] no keyword - [x] keyword - [x] keyword validate max length 64 - [x] keyword cause no profile response - [x] owner (default, me and anonymous:share) - [x] owner me:public - [x] owner anonymous - [x] no category - [x] category - [x] search options dropdown show and hide - [x] disabled and auto-check me.share when check me.private - [x] reset in dropdown - [x] showing results for with a lot of categorys - [x] test loading in dropdown when fetch profile statistic in slow network 2. test sort snd order - [x] sort name/ase - [x] sort name/desc - [x] sort createDate/asc - [x] sort createDate/desc 3. test reset all "search/sort/order" data when "Save Profile" and "Add Share Code" - [x] create profile -> save - [x] edit profile -> save - [x] add share code -> save ###### tags: `WISE.M+` ## 2020/5/22 ### Alice #### [ add ] When uploading profile excel files, check if multiple rule names of a single parameter are duplicated **Purpose**: 1. check if rules name are duplicated **Test Case** 1. upload correct profile excel -> check pass 2. copy the same rules and shuffle the order of parameter names in alarm rules -> upload the profile that shuffle rules -> check if there are duplicate error messages for rules name ## 2020/5/21 ### Alice #### [ change ] change share code verification method and timing #### [ fix ] do not call verification when component initialization is not complete (display hide or none) **Purpose**: 1. validate share code input when switching back from other modes and share code has value 2. fixed the situation where the validate function was not established but was called during initialization **Test Case** 1. create profile -> choose share code mode -> click input and blur -> change mode -> check verification is cleared -> switching back -> input special symbol -> change mode -> check that the input field still has a shared code -> switching back share mode -> check if the field is verified 2. edit profile -> save -> wait profile list refresh -> check if init error show -> add share code -> input share code (that already bind) -> save -> check input error -> delete 1 char from input -> check error message is hidden -> input 1 special symbol -> delete the symbol -> check error message is hidden 3. ## 2020/5/19 ### Alice #### [ add ] update list when add share code **Purpose**: 1. refresh profile list after add share code 2. share icon on profile card **Test Case** 1. open add share code dialog -> input share code that is shared profiles -> check if profile list add the new 2. after input share code that is shared profiles -> check cards icon are share icon ## 2020/5/18 ### Alice #### [ add ] add share code rule, validate, component reset #### **Purpose**: 1. clear validate when the mode is not share 2. when back end response duplicate, add is-error class type and tips 3. reset dialog input when close dialog 4. change validate rules for share code **Test Case** 1. create profile -> select mode - share -> click input and no input or input length > 16 char or add special symbol let the validate failed -> click other mode -> check the input error style is clear 2. input share code that already bind -> check the error message is duplicate 3. input something in share code input -> close or save -> open add share code dialog -> check no residue left 4. input share code with dash - or lodash _ -> check input is normal and save ok ## 2020/5/15 ### Alice #### [ add ] add share code binding and rules #### [ chage ] other mode for list show, change private -> share #### **Purpose**: 1. allow shared code data to be correctly stored in the database 2. confirm whether the share code binding is successful and the displayed list is correct & add basic rules validate 3. delete profile share code **Test Case** 1. switch to profile management page -> clcik profile drop down -> create profile -> change mode to share code ->set share code -> save -> check profile data struct confirm that the share code field has value and the mode is private -> edit -> check mode and share code data was brought out 2. open add share dialog -> input share code -> save -> check network status code is 200 -> check profile list was added the shared profile -> edit the shared profile check it usable 3. create profile -> change mode to private or public -> save -> check the profile data structs that the shareCode has been cleared ## 2020/5/14 ### Alice #### [ add ] add share profile style, store api bind **Purpose**: 1. add share code mode with input in profile 2. share code input dialog 3. complementary mutilang translation **Test Case** 1. switch to profile management page -> clcik profile drop down -> create profile -> check share code radio button was already be add in the modes -> check input hover & active style & word style at input 2. switch to profile management page -> clcik profile drop down -> check the add share code in the options -> open dialog -> check title & frame size & input style & footer style 3. add mutilang to csv cooperation file ## 2020/5/13 ### Tingwei #### [Fix][Notification][Preview Notification] dropdown of email, wechat and line etc **Purpose**: 1. dropdown of email, wechat and line 2. Same as fix at 0.84.003. Fix .el-icon-circle-close(clearable icon) look like triangle 3. Same as fix at 0.84.003.Fix triangle color of ".el-select" and ".el-dropdown > .el-button--like-select" when focus 4. Fix "Variable Library" placeholder color as black and add "..." 5. others "font-weight: normal;" **Test Case** - dropdown of email, wechat and line - test select: check menu dialog -> Org.Name - test dropdown(.el-button--like-select) check formula -> Formula Library - check "Variable Library" placeholder color and "..." - check "font-weight: normal;" of "Others" #### [Fix][css]feature/fix-select-close-icon-disappear-and-triangle-style **Purpose**: 1. Fix .el-icon-circle-close(clearable icon) look like triangle 2. Fix triangle color of ".el-select" and ".el-dropdown > .el-button--like-select" when focus **Test Case** - test select: check menu dialog -> Org.Name - test dropdown(.el-button--like-select) check formula -> Formula Library #### [Add][NotificationGroup][Notification Preview]Support Preview Notification **Purpose**: 1. Support Preview Notification 2. validate notifyType, alarmTagGroupId and alarmUserGroupId before send compose API. 3. Fix getNotificationGroup twice 4. find-tune editor style. **Test Case** - In "Neihu" edit or create notification group, select "preview All Type" as "Alarm User Group", fill message, change Notification Type below in testing progress - [x] email - [x] wechat - [x] line - [x] email and wechat - [x] email and line - [x] wechat and line - [x] all - [x] none - validate before send compose API - [x] message - [x] notify type - [x] alarm tag group - [x] alarm user group - Fix getNotificationGroup twice test - [x] click edit notification group, check network - find-tune editor style. - [x] check editor(Message) ## 2020/5/12 ### Alice #### feature/log-chart-with-design **Purpose**: 1. [ add ] X/Y edit sample prompt add 2. [ add ] assign sample class when edit 3. [ add ] logchart edit item symbol sample change & option prompt **Test Case** 1. click edit X/Y axis -> click timeformat check sample prompt position -> change different class -> check mask is changed correct level -> click unit check sample prompt position 2. inherit process 1 -> save -> open edit item -> confirm that the class shown on the sample is correct 3. add item -> change symbol type -> check sample symbol change -> save -> edit the item and check sample and symbol type ## 2020/5/11 ### Tingwei #### [Change][SRPDashboard][grouped bar chart] Support Line Shadow **Purpose**: 1. [Change][SRPDashboard][grouped bar chart] Support Line Shadow **Test Case** - test in water 3.3 - [x] bar - [x] solid line - [x] dashed line - [x] dotted line - [x] solid line (Line shadow) - [x] dashed line (Line shadow) - [x] dotted line (Line shadow) - [x] highlight - left line color - [x] highlight - left bar color - [x] highlight - left threshold color (manual) - [x] highlight - left threshold color (alarm) - [x] highlight - right line color - [x] highlight - right bar color - [x] highlight - right threshold color (manual) - [x] highlight - right threshold color (alarm) #### [Fix][Profile][Alarm]Fix: alarm was added by mistake even through alarm type is "none" when save parameter. **Purpose**: 1. [Fix][Profile][Alarm]Fix: alarm was added by mistake even through alarm type is "none" when save parameter. **Test Case** - test in network (request feature.alarm) - [x] save alarm "None" parameter - [x] change alarm type from "Range" to "None", save parameter - [x] save alarm "Range" parameter ## 2020/5/6 ### Tingwei #### [Change][SRPDashboard][infographic]infographic with Design **Purpose**: 1. Refer to the title **Test Case** - test picture dialog and picture setting - [x] change img url -> blur - [x] empty img url -> blur - [x] base64 img -> blur - [x] error img url(response no image) -> blur - [x] change img url -> click save - [x] empty img url -> click save - [x] base64 img -> click save - [x] error img url(response no image) -> click save - [x] error img url(response no image) -> empty url -> click save - [x] set img url as http://dummyimage.com/400x2000 -> blur -> save - [x] Auto Width Yes and width 300px -> save dashboard - [x] Auto Width No and width 300px -> save dashboard - [x] Auto Width Yes and no width -> save dashboard - [x] Auto Width No and no width -> save dashboard - [x] Disable cache in network, set slow 3G(or custom slow network) -> switch from another to infographic - [x] Disable cache in network, set slow 3G(or custom slow network) -> change image url - test select parameter list and edit item - [x] new dashboard -> edit Current, change parameter, change displayname, change decimals, unit -> save item - [x] -> add item(Current) -> save item - [x] -> delete Temperature -> save dashboard - [x] test displayname duplicate - [x] delete all - [x] select model -> check disabled of unit and decimals - [x] -> select isAlarm -> check disabled of unit and decimals - [x] select Current -> check disabled of unit and decimals - [x] select PowerSum -> check disabled of unit and decimals - test column setting and column dialog - [x] edit column setting -> change column number, change font color - [x] test empty column number -> save item -> check item list -> save dashboard #### [0.84.003][Fix][SRPDashboard][Worldmap]Fix orgUrl is not delete when save as template. **Purpose**: 1. Refer to title **Test Case**: 1. create worldmap card and select group -> save as template -> create worldmap card and select template just created -> click Next ### Alice **Purpose**: #### [ add ] 1. add selected line color in datasource list 2. add unit and timeformat in setting list 3. add tool tip after axis setting title 4. add symbol icon in the list of selected symbol types #### [ change ] 1. list title change 2. dialog main title and sub title change 3. disable other option and input when parameter no select 4. hide the axis setting when the data source list has no items **Test Case**: - add 1. add new item -> select parameter -> change line color -> save -> check data source list color that after item name 2. edit X/Y Axis Settings -> change time format and unit -> save -> check X/Y Axis Settings item X: and Y: is correct time format and unit 3. check if the tool tip is added after the X / Y axis title 4. add/edit item -> check symbol type list was added symbol icon before label - change 1. check list title is Data Source and X/Y Axis Settings 2. add new/edit item -> check main title and subtitle is correct 3. add new title -> check options than other than select parameter are disabled 4. delete data source item until no data -> check X/Y Axis Settings is hide ## 2020/5/6 ### Alice #### feature/range-alarm-rule-check **Purpose**: [ fix ] 1. status was not assigned the key 2. the name that add ---i will hinder the integration and filtering of the alarm range **Test Case**: 1. upload profile excel -> check data struct 2. upload profile excel -> open parameter that with alarm range -> check value, name display and status key (data struct) 3. upload profile excel -> save -> edit the profile -> check data struct ## 2020/5/5 ### Alice #### feature/range-alarm-rule-check **Purpose**: 1. [ change ] update profile guide & template 2. [ add ] check alarm range and error message **Test Case**: 1. switch to profile management page -> upload profile excel -> check template is correct 2. edit that parameter's alarm type is High-Low, intentionally entered wrong alarm rule name -> upload profile excel -> check error message is displayed correctly ### Tingwei #### [Fix][SRPDashboard][Worldmap]Fix orgUrl is not delete when save as template. **Purpose**: 1. Refer to title **Test Case**: 1. create worldmap card and select group -> save as template -> create worldmap card and select template just created -> click Next ## 2020/5/4 ### Tingwei #### feature/fix infographic edit button ellipsis **Purpose**: 1. [Fix][SRPDashboard][Infographic]Fix by add '!important' in srp-dashboard-table.scss . 2. [Fix][SRPDashboard]Fix padding-top and padding-bottom of .edit-button > .el-button--mini are not 0. **Test Case**: test in production (not test yet) 1. check edit-button of infographic ## 2020/4/30 ### Tingwei #### [Fix][SRPDashboard][Infographic]Fix error image position is not vertical center in Picture Setting table **Purpose**: 1. Refer title **Test Case**: test both in mac and windows 1. check error icon position in Picture Setting table ## 2020/4/29 ### Tingwei #### [Fix][Profile]ProfileManagement style bug when no profile and no category . **Purpose**: 1. ProfileManagement style bug when no profile and no category . 2. Avoid category \<div> disappear when v-if="categoryList.length > 1". It cause scroll all page. **Test Case**: test both in mac and windows 1. Purpose 1: validate by no data : open profileManagement.vue, change code at line 122, ```categoryList``` change to ```[]``` change code at line 151, ```listSource``` change to ```[]``` 2. Purpose 1: validate by normal data 3. Purpose 2: open profileManagement.vue, change code at line 118, ```categoryList.length > 1``` change to ```false``` ## 2020/4/24 ### Tingwei #### [Fix][Profile]defaultValue was replaced as empty string('') when value is 0. **Purpose**: 1. defaultValue was replaced as empty string('') when value is 0. **Test Case**: 1. open profileParameterFormat.js, add ``` console.log(this.basicInfoData.defaultValue); debugger ``` at the end of 'edit_format_basicInfo_data' function -> create profile by upload excel -> edit srpType -> check console #### [Add][SRPDashboard][infographic]1.Picture preview in picture dialog. 2.Picture loading before on loaded or on error **Purpose**: 1. Refer to the title **Test Case** - Purpose 1 - [x] change img url - [x] empty img url - [x] error img url(response no image) - Purpose 2 - [x] Disable cache in network, set slow 3G(or custom slow network) -> switch from another to infographic - [x] Disable cache in network, set slow 3G(or custom slow network) -> change image url ### Alice #### [ change ] update profile template & guide #### [ fix ] alarm level original value push & use level id for error detection #### [ add ] alarm level & category error option list tips **Purpose**: 1. Change to last version template & guide 2. Change detect value to id 3. Provide user prompts so that they can correct entered values **Test Case**: 1. click Profile Management -> upload profile -> download gide & template -> compare content and file size with last version file -> import downloads template for check 2. upload edited template -> check parameter alarm level is correct 3. upload edited template (In order to test the error, fill in the level that is not in the list) -> check error message that reference options should be provided ## 2020/4/23 ### Alice #### feature/excel-upload-check-alarm-level-category #### [ add ] profile excel upload check: confirm that the user filled alarm level and alarm category is already exist in the store and can be called #### [ fix ] match import alarm category to nameLangId **Purpose**: 1. Check whether the alarm level filled in by the user exists in the existing list 2. Check whether the alarm category filled in by the user exists in the existing list 3. Alarm category circle icon transparent, it should be coloring **Test Case**: 1. edit sample profile excel's alarm rules level (string, number, negative number, null, space) -> upload this profile excel -> check is it successful after comparing the store alarm level list -> chek the show error that must include cell, parameter name and alarm level value 2. edit sample profile excel's alarm rules category (string, number, negative number, null, space) -> upload this profile excel -> check is it successful after comparing the store alarm level list -> chek the show error that must include cell, parameter name and alarm level value 3. upload this profile excel -> check the parameter -> check alarm's category label is correct and with circle ### Tingwei #### [Add][SRPDashboard][infographic]feature/panel infographic **Purpose**: 1. panel infographic(no design) **Test Case**:(refer trello card) 1. new dashboard -> edit Current, change parameter, change displayname, change decimals, unit -> save item 2. -> add item -> save item -> save dashboard 3. test displayname duplicate 4. edit column setting -> change column number, change font color 5. test empty column number -> save item -> check item list -> save dashboard 6. edit picture setting -> change picture url, width and position 7. test empty picture url 8. test base64 picture url 9. test error picture url(response is no image) 10. test empty picture width ## 2020/4/22 ### Alice #### feature/log-chart-dashboard-setting **Purpose**: 1. can create and edit log chart **Test Case**: 1. add dashboard 2.4 -> next -> save dashboard -> check preview dashboard 2. add dashboard 2.4 -> next -> edit Left Y Axis Setting -> change time format to hh:mm -> change vibration severity to class III -> change unit mm/s to in/s -> save edit item -> save dashboard -> preview dashboard -> check time format, level mask, unit are correct 3. add dashboard 2.4 -> next -> add target -> select parameter -> associate -> save edit item -> save dashboard -> preview dashboard -> check new parameters and line style 4. add dashboard 2.4 -> next -> add target(reteat 3 times, change legend symbol and line color) -> check 6/6 can't add -> save dashboard -> preview dashboard -> check targets count is 6, check style same as the previous setting 5. add dashboard 2.4 -> next -> add target(reteat 3 times, change legend symbol and line color) -> save dashboard -> edit existing dashboard that just generated -> delete one target of data source -> save dashboard -> preview dashboard -> check targets count is 5, and the style also has been deleted 6. edit existing dashboard 2.4 -> edit targets -> change display name -> change datatype -> change legend symbol -> change color -> save item -> save dashboard -> preview dashboard -> check target data type and custom style setting 7. edit existing dashboard 2.4 -> delete target -> check datasource list and item style are correct -> save dashboard -> preview dashboard -> check targets is correct and custom style setting also 8. edit existing dashboard 2.4 -> delete all targets -> save dashboard -> preview dashboard -> check targets and custom style setting is null ## 2020/4/14 ### Tingwei #### [Change][Profile]Support show profile cards before fetching all images finish. **Purpose**: 1. Refer title. 2. Fix two scroll bar Profile Management(but there is min-height in card-block, prevent height of card-block is too small in small screen, in that condition, two scroll bar will appreance ) **Test Case**: prepare two browser: 1. change image of profile 2 at browser 2 -> refresh page at browser 1 -> validate differ 2. change image of profile 2 at browser 2 -> create profile 1 (upload image) -> validate differ 3. change image of profile 2 at browser 2 -> edit profile 1 (change image) -> validate differ 4. change image of profile 2 at browser 2 -> edit profile 1 (delete image) -> validate differ 5. change image of profile 2 at browser 2 -> click "Device Management" -> click "Profile Management" -> validate differ 6. delete profile -> validate differ ## 2020/4/10 ### Tingwei #### Feature/replace $object as select device etc **Purpose**: 1. [Fix][SRPDashboard]In 3.1 grouped bar chart and 3.1 water pump status, replace $Object as "select device". 2. [Fix][SRPDashboard]current parameter was reset when save. **Test Case**: 1. Purpose 1:create 3.1 -> save dashboard -> check in grafana 2. -> From 1, edit same dashboard, set "Dedicate Object and Parameter" in grouped bar chart and water pump status -> select parameter -> save dashboard -> check in grafana 3. -> From 2, edit same dashboard -> set "Fix Parameter Only" in grouped bar chart and water pump status -> save dashboard -> check in grafana 4. Purpose 1: create 3.3 -> save dashboard -> check whether all of $Object were not replace 5. Purpose 2: edit grouped bar chart -> select parameter -> change parameter -> save parameter 6. Purpose 2: edit grouped bar chart -> select parameter -> change parameter -> cancel 7. Purpose 2: edit grouped bar chart -> select parameter -> change parameter -> press 'Esc' ## 2020/4/9 ### Alice #### [Fix][Profile] Sorting is no longer stored according to type, and it is independent now #### [Fix][Profile] clear icon position fix **Purpose**: 1. name, date, owner has different sorting setting 2. search input's clear button position error **Test Case**: 1. ckick Profile Management -> change sorting type -> change sort by desc -> check profile sort correct -> change original type -> check sort by desc no change 2. search input-> check clear button position ## 2020/4/8 ### Tingwei #### [Fix][Profile]profile preview fixed height etc **Purpose**: 1. [Fix][Profile]profile preview fixed height 2. [Add]add custom scroll bar to slotDialog(when .fixed-height) and slotParameterTable(when .scroll-body) 3. [Fix]Fix API of api-portal in axios/index.js was CORS in dev mode **Test Case**: 1. Purpose 1: check profile detail 2. Purpose 2: check profile dialog 3. Purpose 2: parameter list of below 1.profile detail 2.select code soruce dialog 3.select alarm code dialog 4. Purpose 3:edit notification group 5. Purpose 3:edit menu 6. Purpose 3:edit profile 6. Purpose 3:edit srpDashboard ### Tingwei #### [Fix][SRPDashboard]Feature/fix select parameter dialog network slow cancel **Purpose**: 1. [Fix][SRPDashboard][select parameter dialog]Before get parameter data finish, user click cancel, current parameter was be changed. 2. [Fix][SRPDashboard][select parameter dialog]Before getMachineAllTempStatus finish, user click cancel, current parameter was be changed. 3. [Fix][SRPDashboard][select parameter dialog]When closed by "Press Esc", current parameter was not reset. **Test Case**: 1. Purpose 1 (switch devtool of chrome to "Slow 3G" or slower condition): refresh page -> create dashboard -> select 1.2 -> select parameter -> before loading finish -> click cancel -> check whether parameter was changed 2. Purpose 2 (switch devtool of chrome to "Slow 3G" or slower condition) -> select Parameter -> click other object, before loading finish, click cancel -> check whether parameter was changed 3. Purpose 3: select parameter -> press Esc ## 2020/4/7 ### Tingwei #### [Fix][SRPDashboard]fix water statistic function type... etc. **Purpose**: 1. [Fix][SRPDashboard][water statistic] Function type was reset as 'select function type' in 'water statistic' when select parameter 2. [Fix][SRPDashboard][grouped bar chart] Always replace devicename when select parameter associate 3. [Fix][SRPDashboard][Select Parameter Dialog]When network speed is too slow, objects data were not ready, this cause select parameter dialog crash. 4. [Fix][SRPDashboard][Select Parameter Dialog]New keys were not deleted when cancel. 5. [Fix][SRPDashboard][Select Parameter Dialog]Create dashboard, then click select parameter. User didn't click parameter, but clicked associate directly. We found details(e.g. object, unit , decimals...) of parameter were not updated. 6. [Fix][SRPDashboard]ScreenShot of 2.2 and 4.1 **Test Case**: 1. Purpose 1: create 1.2 -> edit water statistic -> edit item -> select parameter -> save dashboard 2. Purpose 2: create 3.1 -> edit grouped bar chart -> edit item -> select parameter -> check whether displayname was replace as deviceparam 3. Purpose 3 (test In slow speed network or switch devtool of chrome to "Fast 3G" or slower condition): refresh page -> create dashboard -> select 1.2 -> select parameter 4. Purpose 4: select parameter -> click other parameter -> cancel -> check target in console(activePanel) or save dashboard and then check in network 5. Purpose 5: create 3.1 -> edit grouped bar chart -> edit item -> click select parameter, but don't click any parameter, only click associate directly. -> save item -> check whether full path is showing 6. Purpose 6: chech screenshot. ### Alice #### Feature/bug-fix-menu-sync-muti-to-tablang **Purpose**: 1. [ Fix ] The menu sync dialog content language follows the tab language **Test Case**: 1. click menu management -> create menu -> click "menu contents" tab -> change language tab which is not the first -> click sync -> check the language is follows the tab, not system language ## 2020/4/6 #### Feature/3.3 progress bar style **Purpose**: 1. [Fix][Progress bar]color of value threshold were not hide at alarm mode. 2. [Fix][Progress bar]Color of Three color circle behind "Panel Setyles" word are not same as selected color **Test Case**: 1. Purpose 1: edit item -> check value threshold table at alarm mode 2. Purpose 2: edit panel styles -> select different color both in bar 1 to bar 3 and then save -> check Color of Three color circle behind "Panel Setyles" word