-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix getDisplayValue() crash on FieldMap (#29)
- Loading branch information
Showing
3 changed files
with
49 additions
and
7 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
selenium-tests/src/test/java/com/nuodb/selenium/advanced/RandomClicks.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// (C) Copyright 2024 Dassault Systemes SE. All Rights Reserved. | ||
package com.nuodb.selenium.advanced; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertNotEquals; | ||
|
||
import java.util.List; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
import com.nuodb.selenium.Constants; | ||
import com.nuodb.selenium.TestRoutines; | ||
import com.nuodb.selenium.basic.BannerTest; | ||
|
||
public class RandomClicks extends TestRoutines { | ||
|
||
@Test | ||
public void testRandomClicks() { | ||
login(Constants.ADMIN_ORGANIZATION, Constants.ADMIN_USER, Constants.ADMIN_PASSWORD); | ||
for(int i=0; i<3; i++) { | ||
String projectName = createProject(); | ||
String databaseName = createDatabase(projectName); | ||
createBackup(projectName, databaseName); | ||
} | ||
|
||
// Verify client doesn't produce a call stack by quickly clicking around (async reload issues) | ||
long start = System.currentTimeMillis(); | ||
while(System.currentTimeMillis() - start < 30*1000) { | ||
// get all the menu items | ||
List<String> menuItems = getTextList("menu-button-", BannerTest.expectedMenuItems.size()); | ||
|
||
assertNotEquals(0, menuItems.size()); | ||
|
||
int index = (int)(Math.random()*menuItems.size()); | ||
waitElement("menu-button-" + index).click(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters