# Deep Dive Example 2

### Eng.QAIntegrationTesting

| Failure                               | Link                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | 5 Why                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | Root Cause                                                                | Solution                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1. JVHOPST-5815 failed quality review | <p><a href="https://drive.google.com/file/d/14MPNCuTNT6Quha5N9Uimk-eLPsz27BWd/view?usp=sharing">screen</a></p><p><a href="https://jira.devfactory.com/browse/JVHOPST-5815">JIRA link</a></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | <p>1. Why ticket failed to pass review?</p><p>Protractor Typescript Rule PR9 (<a href="https://confluence.devfactory.com/display/ENQAT/PR9%3A+Negative+impact+by+changes+on+existing+code?src=contextnavpagetreemode">Negative impact by changes on existing code</a>) was violated.</p><p>2. Why PR9 was claimed to be violated?</p><p><a href="https://drive.google.com/file/d/1Y_DuMW2LR465lM10ixPcgtyeWXwx2fuD/view?usp=sharing">Due to the usage of Random helper class</a><a href="https://drive.google.com/file/d/1Y_DuMW2LR465lM10ixPcgtyeWXwx2fuD/view?usp=sharing">.</a></p><p>3. Why Random helper class shouldn't be used?</p><p><a href="https://drive.google.com/file/d/1abJnRjsxbVk2wJkfyiZWzYyQTzRhTHgP/view?usp=sharing">It is expected to use PageHelper.getUniqueId() for generation of random strings.</a></p><p>4. Why it was used?</p><p>There is no enforcement for IC's to follow XO coding standards</p> | no enforcement to assure that submitted code follows XO codings standards | <p>Use <a href="https://drive.google.com/file/d/1tcTBNC8NS8tcml2m80S_e--uJ5YsX5al/view?usp=sharing">following script</a> (<a href="https://drive.google.com/file/d/1Db5j1S4gjCqNDehTgIL_VavP8MWSa4iF/view?usp=sharing">screen</a>) to check if <a href="https://drive.google.com/file/d/1qhCqDihAk4S2xQKI9fc6jg8LGkKCa76A/view?usp=sharing">PR9: “random string” rule</a> is not violated in your proposed code.</p><p>Implementation plan:</p><p>1. Manager to prepare initial set of rules to comply with. Update script. Share with the team (use most common errors T8W). (1d)</p><p>2. IC’s to install PHP interpreter + scan all files before sending for review (5m)</p><p>3. Include results of the tool to JIRA ticket (to be checked by Quality Enforcement Team)</p><p>Impact on quality:<br>> reduction of <strong>39.47%</strong> of failures (<a href="https://docs.google.com/spreadsheets/d/1OZJV1tSdKg430a3fu934EcUQR_MjqiLWbi7Pl9wLeLg/edit#gid=1265085939&#x26;range=A17">calculation</a>)<br>> improvement of FTAR by <strong>2.73%</strong> (<a href="https://docs.google.com/spreadsheets/d/1OZJV1tSdKg430a3fu934EcUQR_MjqiLWbi7Pl9wLeLg/edit#gid=1265085939&#x26;range=A17">calculation</a>)</p>     |
| 2. MOBADM-3843 failed quality review  | <p><a href="https://drive.google.com/file/d/1S0H2aUYTzvkp0u3bUJAO7nWoByma8fRM/view?usp=sharing">screen</a></p><p><a href="https://jira.devfactory.com/issues/?jql=type%20%3D%20%22Integration%20Test%22%20AND%20status%20changed%20to%20Done%20during%20(startOfWeek(-8)%2C%20endOfWeek(-1))%20%20AND%20(labels%20is%20EMPTY%20OR%20labels%20!%3D%20Ignite.Eng.QATestAuto)%20AND%20status%20%3D%20Done%20AND%20%22Automation%20Category%22%20not%20in%20(%22Code%20review%22)%20AND%20status%20changed%20from%20%22In%20Review%22%20to%20%22In%20progress%22%20%20AND%20(assignee%20%3D%20vsolovyev%20OR%20assignee%20%3D%20tle%20OR%20assignee%20%3D%20skidwai%20OR%20assignee%20%3D%20rchandrawat%20OR%20assignee%20%3D%20pkothari%20OR%20assignee%20%3D%20pchowdry%20or%20assignee%20%3D%20prchowdry%20OR%20assignee%20%3D%20cganioglu%20OR%20assignee%20%3D%20arao%20)">JIRA link</a></p>             | <p>1. Why ticket failed to pass review?</p><p>Pull Request was not containing all <a href="https://drive.google.com/file/d/1_GJcenzUXZh88Frdi7R8oZnX5jhc4uo4/view?usp=sharing">required information</a></p><p>2. Why pull request was not containing all required information?</p><p>IC failed to provide required information</p><p>3. Why IC failed to provide required information?</p><p>There is no enforcement of checklist for pull requests.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | no enforcement to assure that pull request data is complete.              | <p>Introduce new IQB.New\.2. JIRA will require update of new “Pull Request link” field while doing transition from “In progress” to “In review” state. Correctness of link could be assured by <a href="https://drive.google.com/file/d/1M0iRA7vOoztoCH5W7wBdj06lorLM6sV0/view?usp=sharing">webhook</a> <a href="https://drive.google.com/file/d/1M0iRA7vOoztoCH5W7wBdj06lorLM6sV0/view?usp=sharing">(</a><a href="https://drive.google.com/file/d/1M0iRA7vOoztoCH5W7wBdj06lorLM6sV0/view?usp=sharing">GitHub-JIRA)</a>.<br>Implementation plan:</p><p>1. Manager to create webhook and new field to JIRA (2h)<br>Impact on quality:<br><strong>></strong> reduction of 20% of failures (<a href="https://docs.google.com/spreadsheets/d/1OZJV1tSdKg430a3fu934EcUQR_MjqiLWbi7Pl9wLeLg/edit#gid=737208536&#x26;range=A4">calculation</a>)<br>> improvement of FTAR by <strong>1.38%</strong> (<a href="https://docs.google.com/spreadsheets/d/1OZJV1tSdKg430a3fu934EcUQR_MjqiLWbi7Pl9wLeLg/edit#gid=737208536&#x26;range=A4">calculation</a>)</p>                                                                                                                                                                            |
| 3. JVHOPST-5656 failed quality review | <p><a href="https://drive.google.com/file/d/1VSNeL7fIHoFxjhOaaKOt1O8rsFbgb8vS/view?usp=sharing">screen</a></p><p><a href="https://jira.devfactory.com/browse/JVHOPST-5656?jql=type%20%3D%20%22Integration%20Test%22%20AND%20status%20changed%20to%20Done%20during%20(startOfWeek(-8)%2C%20endOfWeek(-1))%20%20AND%20(labels%20is%20EMPTY%20OR%20labels%20!%3D%20Ignite.Eng.QATestAuto)%20AND%20status%20%3D%20Done%20AND%20%22Automation%20Category%22%20not%20in%20(%22Code%20review%22)%20AND%20status%20changed%20from%20%22In%20Review%22%20to%20%22In%20progress%22%20%20AND%20(assignee%20%3D%20vsolovyev%20OR%20assignee%20%3D%20tle%20OR%20assignee%20%3D%20skidwai%20OR%20assignee%20%3D%20rchandrawat%20OR%20assignee%20%3D%20pkothari%20OR%20assignee%20%3D%20pchowdry%20or%20assignee%20%3D%20prchowdry%20OR%20assignee%20%3D%20cganioglu%20OR%20assignee%20%3D%20arao%20)">JIRA link</a></p> | <p>1. Why ticket failed to pass review?</p><p><a href="https://drive.google.com/file/d/1g9nVadTz3fETr0wCV_iUnT3B0hNC1T63/view?usp=sharing">Typescript Code Rules</a> were violated.</p><p>2. Why Code Standards were violated?</p><p><a href="https://drive.google.com/file/d/1px3ii61IZ9j_OYNCngpUs5cOjOl9B7jW/view?usp=sharing">Code was too long (more than 500 lines)</a> (<a href="https://drive.google.com/file/d/19OIzvnLlOdPZcBYSKk9_ro_pqkG08aeB/view?usp=sharing">generic rules for coding practices</a>)</p><p>3. Why monolithic class was committed?</p><p>IC failed to recognize this as an error</p><p>4.. Why?</p><p>There is no enforcement for IC's to follow XO coding standards</p>                                                                                                                                                                                                                            | no enforcement to assure that submitted code follows XO codings standards | <p>Use <a href="https://drive.google.com/file/d/1tcTBNC8NS8tcml2m80S_e--uJ5YsX5al/view?usp=sharing">following script</a> (<a href="https://drive.google.com/file/d/1Db5j1S4gjCqNDehTgIL_VavP8MWSa4iF/view?usp=sharing">screen</a>) to check if <a href="https://drive.google.com/file/d/1t-hVBbdScPtO1Vv1lcUa3BUYrAJcJq2m/view?usp=sharing">“monolithic file” rule</a> is not violated in your proposed code.</p><p>Implementation plan:</p><p>1. Manager to prepare initial set of rules to comply with. Update script. Share with the team (use most common errors T8W). (1d)</p><p>2. IC’s to install PHP interpreter + scan all files before sending for review (5m)</p><p>3. Include results of the tool to JIRA ticket (to be checked by Quality Enforcement Team)</p><p>Impact on quality:</p><p>> reduction of <strong>39.47%</strong> of failures (<a href="https://docs.google.com/spreadsheets/d/1OZJV1tSdKg430a3fu934EcUQR_MjqiLWbi7Pl9wLeLg/edit#gid=1265085939&#x26;range=A17">calculation</a>)<br>> improvement of FTAR T8W by <strong>2.73%</strong> (<a href="https://docs.google.com/spreadsheets/d/1OZJV1tSdKg430a3fu934EcUQR_MjqiLWbi7Pl9wLeLg/edit#gid=1265085939&#x26;range=A17">calculation</a>)</p> |
