Development

Using JMeter I have been trying to produce a CSV of the ID of all the database IDs that my web app creates. I’m simply looking to save one column of strings without any spaces, however when I do that I get inconsistent outcomes in the CSV file. Sometimes there are skipped lines and sometimes there are no skipped lines. I have tried working on this with JSR223 and Flexible File Writer but both give the same result, always the same issue. I thought there was whitespace or a line break in my variable but the debug listener indicates that is not the case (also when I remove the ‘n’ character from Flexible File Writer the entire output prints to a single line, so I think there are no line breaks present)

Lets assume that I have a list of web elements:
private List<WebElement> listOf250Movies;

To action/process the list I need to implement explicit wait.
In accordence to single responsibility principle should I create a method to deal with the wait explicitly:
public void waitForVisibilityOfElement() {
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(5));
wait.until(ExpectedConditions.visibilityOfAllElements(listOf250Movies));
}

OR
Is it acceptable to implement the WebDriverWait into a method that aim to achive the end result – e.g. straming the output into a console?
public void printToConsole() {
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(5));
wait.until(ExpectedConditions.visibilityOfAllElements(listOf250Movies));
for (WebElement movie : listOf250Movies) {
System.out.println(movie.getText());

}
}

Should we decouple waits from the actions or treat them as an inherent part of the process/behaviour?
Side note:
I assume, the wait method might be further decoupled by creating Utilieties class for common actions:
public void waitForVisibilityOfElement(WebDriver driver, WebElement webElement) {
WebDriverWait wait = new WebDriverWait(driver, Duration.ofSeconds(5));
wait.until(ExpectedConditions.visibilityOfAllElements(webElement));
}

Simplicity is a principle to follow in design. Overcomplicating your design won’t make it better in most cases. Beautiful designs…

Question

One can clone a test plan from Microsoft Test Manager 2017 (desktop application).
How is that done from the TFS Test Hub (TFS web interface)?

Context

In Microsoft Test Manager 2017, one can clone a test plan; see documentation Copying and cloning test suites and test cases and screenshot:

Microsoft seems to be moving more and more of the Microsoft Test Manager features into the TFS web interface called TFS Test Hub

However, not all features of Microsoft Test Manager seem to be available in the TFS web interface
Now, I’m not sure whether the clone feature hasn’t been implemented yet, or whether I haven’t found it yet on the UI or whether there is a new concept which replaces the cloning of a test plan

Links

See some TFS Test Hub screenshots here: Planning manual tests using the web portal
Or here: TFS Test Hub: What Does It All Mean? – Benjamin Day Consulting, Inc.