How to Deal With Defects Not-Producible?

Understand why defects cannot be easily reproduced.

1. Due to specific OS with specific memory
2. Due to memory location accessed outside specific location.
3. Outside the scope of debugger.
4. Due to specific environment change in OS
5. Sequential events occurred in line.

How to get it fixed?

1, Document the steps and repeat under different environment and find it again.
2. Ask for more information from Client/Customer regarding the reproduciblity if bug is unable to reproduce.
3. If bug stopped reappearing on Client/Customer side, close the bug as unpronounceable.
4. Capture much info as possible to write a new test case for same test steps under different environment.
5. Check logging software in background to identify system sources when bug was found.
6. Ask Client/Customer to use screenshot recording tool to record the bug.
7. Compare environment log and software debugger log before and after noticing such bugs.
8. Examine the test  execution result and evaluate the changes in the test.
9. Examine the test data and modify as Client input to reproduce the bug
10. Add test step that get test execution close to bug.
11. Keep screenshot or documentation of error message that appeared during bug occurrence.
12. Address to manager/lead regarding the unreproduced bug if cannot talk to Client end.


Adjust Long Text

apply following css

    .wordHide {
        vertical-align: middle;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 603px;

just reference to class:

<td class="wordHide">


Set Invisible Element to Visible Using Javascript in Selenium

Automation with selenium requires target element to be set visible.
While when element is designed to be displayed: none or visibility = hidden,  we have to manually set element css style to be visible using Javascript for selenium to catch on.

Here is the code:

IWebElement checkbox = driver.FindElement(By.Id("identifierOrOther"));
IJavaScriptExecutor executor = (IJavaScriptExecutor)driver;
executor.ExecuteScript("arguments[0].style.display = 'block'", checkbox);

style.display = block can be replaced any other code, just inspect the hidden element and find out hidden css line.

Setup VNC on Ubuntu 20.04

  sudo apt update sudo apt install xfce4 xfce4-goodies sudo apt install tigervnc-standalone-server sudo apt install tightvncserver vncserver...