mirror of https://github.com/apache/archiva.git
Trying to stabilize htmlunit tests
This commit is contained in:
parent
7abf559673
commit
a674bda129
|
@ -116,11 +116,11 @@ public abstract class AbstractArchivaTest
|
|||
|
||||
el.click();
|
||||
|
||||
wait.until(ExpectedConditions.textToBePresentInElementLocated(By.id("user-messages"),"User " + userName + " created." ));
|
||||
assertElementPresent( "users-grid-user-id-" + userName );
|
||||
|
||||
if ( valid )
|
||||
{
|
||||
wait.until(ExpectedConditions.textToBePresentInElementLocated(By.id("user-messages"),"User " + userName + " created." ));
|
||||
wait.until(ExpectedConditions.visibilityOfElementLocated( By.id("users-grid-user-id-" + userName) ));
|
||||
|
||||
//String[] columnValues = { userName, fullName, emailAd };
|
||||
//assertElementPresent( XPathExpressionUtil.getTableRow( columnValues ) );
|
||||
|
||||
|
|
|
@ -647,8 +647,14 @@ public abstract class AbstractSeleniumTest
|
|||
} catch (Exception e) {
|
||||
logger.info("Error: {}, {}, {}",count,e.getClass().getName(), e.getMessage());
|
||||
if (el!=null) {
|
||||
// Elements may be stale and throw an exception, if the location is requested
|
||||
try
|
||||
{
|
||||
Point elLoc = el.getLocation();
|
||||
logger.info( "Location: x={} y={}", elLoc.getX(), elLoc.getY() );
|
||||
} catch (Throwable e2) {
|
||||
logger.info("Could not determine location");
|
||||
}
|
||||
}
|
||||
ex = e;
|
||||
count--;
|
||||
|
|
Loading…
Reference in New Issue