---
# System prepended metadata

title: Patrol Inspection App RD Test scenario 2022/01~2022/06
tags: [Patrol Inspection App]

---

# Patrol Inspection App RD Test scenario 2022/01~2022/06
---
###### tags: `Patrol Inspection App`
## Tingwei
### [Fix] Personal field is not reset when logout. And other features.
- [🔗 test Advantech APK v.106003](https://drive.google.com/file/d/1wXJd4GE-Mqkt4dctptVukZbW9wcBop7Q/view?usp=sharing)
- [🔗 test pjsslj APK v.106003](https://drive.google.com/file/d/1ijOeouWspvBlNdCcemsE3ElxpDtxeIHt/view?usp=sharing)
- [🔗 test banninger APK v.106003](https://drive.google.com/file/d/1tNYCdz_39xkR_N3MX0Y237hghGuS-Y36/view?usp=sharing)
- testflight

**Purpose**
1. [Fix] Personal field is not reset when logout. 
2. [Fix] Loading does not hide in turning off wifi and mobile network condition 
3. [Fix][Select Area Dialog] Active the selected area radio button, when the dialog shows.
4. [Update] dialog widget.dart extends footer. Make sure the dialog footer buttons fix at the bottom. 
5. [Update] Adding initRWD into RootModel to fine-tune small device dialog. In some small devices, some button text breaks, i.g., Confirm. Fine-tune some space of dialog to reduce words broken. 
6. [Fix][Task Info] Status and its comment are clipped when overflow. Fix by wrapping text.

**Test**
1. test 1
    - [x] logout -> login -> turn off wifi and mobile network -> click My Tasks -> click the area filter -> there is only All-area radio button
2. test 2
    - [x] Turn off wifi and mobile network -> home task page -> loading hides
3. test 3 in My Tasks
    - [x] default filter value is "All area" -> click the area filter -> "All area" is actived
    - [x] -> change to 天龍皇城一號 -> confirm -> click the area filter -> 天龍皇城一號 is actived
    - [x] -> click 天龍國2號 -> cancel -> click the area filter -> 天龍皇城一號 is actived
    - [x] -> cancel -> click a task -> click the back button -> filter value is "天龍皇城一號" -> click the area filter -> 天龍皇城一號 is actived
4. test 4, fixed dialog footer and scroll dialog body by android emulator, Nexus S
    - [x] My Tasks -> click the area filter -> check dialog footer
    - [x] Abnormal events -> click an event which contains a reported task ->  Tasks management tab -> Reported tab -> click a task -> Reported results tab -> review the task -> check dialog footer
5. test 5 by android emulator, Nexus S
    - [x] My Tasks -> click the area filter -> The dialog margin is smaller and the dialog is more fitted to the small mobile screen.
    - [x] My Tasks -> click the area filter -> choose any task -> click back to tasks -> The dialog margin is smaller and the dialog is more fitted to the small mobile screen.
6. test 6 by android emulator, Nexus S
    - [x] Abnormal events -> click an event which contains a long status text task and long comment ->  Tasks management tab -> completed tab -> click a task -> check whether the task status and the task comment wrap text

### [Update][Settings Edit Info] Field length Validation & other features.
- [🔗 test Advantech APK v.106002](https://drive.google.com/file/d/1A4AtHENEQFDiFCIi3YdAeuXJmPpr7M1t/view?usp=sharing)
- [🔗 test pjsslj APK v.106002](https://drive.google.com/file/d/1057eVa2_NX9mkqtGGUh2zP_SUDLjrkNT/view?usp=sharing)
- testflight

**Purpose**
1. [Update][Settings Edit Info] Validate Field length with text.trim(). Also trim(), when submit.  
2. [Update][Utility.dart]Add validateStringLength() 
3. [Update][bbutton_widget.dart] RaisedButton is deprecated, refer Flutter suggestion, use ElevatedButton instead. Also add disabled state colors. 
4. [Update][text_field_widget.dart]Extend label & floatingLabelBehavior.
5. [Update][keyboard type][Settings Edit Info & Login & Forget Password & reset ] Focus Email or Account input, show email keyboard. Focus Mobile or Phone input, show phone keyboard. Focus Domain URL input, show URL keyboard. Focus name input, show name keyboard. Focus password input, show visible password keyboard.
6. [Update][iOS] Localization display app name and some permission descriptions. 
7. [Update][Android] Localization display app name. Also support new version Android api Platform.localeName in the app, other langs of Hant or Hans, i.g., zh-Hant-HK shows Traditional Chinese, zh-Hans-HK shows Simplified Chinese.
8. [Fix][iOS] Fix permission dialog does not show when uploading photos and uploading audio

** Test **
1. Validate Field length and errors in the multiple langs
- Setting 
    - [x] first name > 32 -> reject
    - [x] first name < 1 -> reject
    - [x] last name > 32 -> reject
    - [x] last name < 1 -> reject
    - [x] email > 128 -> reject
    - [x] phone > 16 -> reject
    - [x] mobile > 16 -> reject
    - [x] `Up to $1 characters` in en
    - [x] `最多 $1 個字元` in tw
    - [x] `最多 $1 个字符` in cn
    - [x] `Must be within $1 to $2 characters` in cn
    - [x] `至少 $1 個字元，最多 $2 個字元` in tw
    - [x] `至少 $1 个字符，最多 $2 个字符` in cn
2. validate keyboard type
    - setting edit info
        - [x] first name -> look no different
        - [x] last name -> look no different
        - [x] email -> email keyboard(show @)
        - [x] phone -> phone keyboard
        - [x] mobile -> phone keyboard
    - setting password
        - [x] password name -> look no different
        - [x] confirm password -> look no different
    - Login
        - [x] Domain URL -> Url keyboard(show /)
        - [x] account ->  -> email keyboard(show @)
        - [x] password -> look no different
    - forget password 
        - [x] Domain URL -> Url keyboard(show /)
        - [x] email -> email keyboard(show @)
        - [x] account ->  -> email keyboard(show @)
    - reset password
        - [x] password name -> look no different
        - [x] confirm password -> look no different
3. test iOS localization and permission dialog
    - 簡體中文
        - [x] app name
        - [x] scan QR Code, access to camera description
        - [x] upload a photo, access to photo library description
        - [x] upload audio file, access to audio files description
        - [x] record a video, access to microphone description
    - 繁體中文
        - [x] app name
        - [x] scan QR Code, access to camera description
        - [x] upload a photo, access to photo library description
        - [x] upload audio file, access to audio files description
        - [x] record a video, access to microphone description
    - EN
        - [x] app name
        - [x] scan QR Code, access to camera description
        - [x] upload a photo, access to photo library description
        - [x] upload audio file, access to audio files description
        - [x] record a video, access to microphone description
    - Test ja
        - [x] App name. If the languages listed in iPhone settings match en, zh-TW, or zh-CN, iPhone uses the matched language. if there is no matched language, iPhone uses the default description in info.list, it is en now. But in the app, we could not get all languages added in iPhone Settings, we just use en.
        - [x] scan QR Code, access to camera description
        - [x] upload a photo, access to photo library description
        - [x] upload audio file, access to audio files description
        - [x] record a video, access to microphone description
4. test Android app name ＆ translation in the app
    - [x] 繁體中文（台灣）->  繁體 app name
    - [x] -> 繁體 in app
    - [x] 簡體中文（中國）-> 簡體 app name
    - [x] -> restart app -> 簡體 in app
    - [x] 繁體中文（香港）-> 繁體 app name
    - [x] -> restart app -> 繁體 in app
    - [x] 簡體中文（香港）-> 簡體 app name
    - [x] -> restart app -> 簡體 in app
    - [x] en -> en app name
    - [x] -> restart app -> en in app
    - [x] Ja -> en app name