-
Type: Sprint Defect
-
Status: Done (View Workflow)
-
Priority: Critical
-
Resolution: Completed
-
Affects Version/s: CFA 2020R1
-
Fix Version/s: None
-
Component/s: Automation
-
Labels:
-
Sprint:CFAMX 2020R1 Hardening
Log File is attached
When I run the tests on FloodRunner the failure rate is %100. I have started the troubleshooting I think i know where it fails.
There is a loop while loop and never end in case no data:
I think we should prepare that for the data we are passing through CSV file. In that way we may need to have any extra loop. Just a suggestion. You may come up with a better solution. Once this is done if we can run it on Flood (There is a stream in Flood called Daily Deposits.) to prove it works that would be great.
// code placeholder WebElement toBeDeposited = driver.findElement(By.xpath("//input[@ng-value='DailyDepositSummary.MoniesToBeDeposited | currency']")); String toDeposit = toBeDeposited.getAttribute("value").substring(1); while (toDeposit.equalsIgnoreCase("0.00")) { clickAndWait(driver, "//button[@ng-click='NextDay()']"); toBeDeposited = driver.findElement(By.xpath("//input[@ng-value='DailyDepositSummary.MoniesToBeDeposited | currency']")); toDeposit = toBeDeposited.getAttribute("value").substring(1); }