setTimeout |
30000 |
|
open |
restAPI/systemLog?token=dolog&level=WARN&message=----- Selenium testVocabulariesManagement |
|
open |
logout |
|
open |
|
|
type |
username |
Administrator |
type |
password |
Administrator |
clickAndWait |
Submit |
|
clickAndWait |
Link=Admin Center |
|
clickAndWait |
link=Vocabularies |
|
verifyTextPresent |
continent |
|
verifyTextPresent |
country |
|
verifyTextPresent |
topic |
|
verifyTextPresent |
subtopic |
|
verifyTextPresent |
subject |
|
verifyTextPresent |
search_operators |
|
verifyTextPresent |
predicates |
|
verifyTextPresent |
inverse_predicates |
|
verifyTextPresent |
language |
|
verifyTextPresent |
nature |
|
watchA4jRequests |
|
|
select |
selectDirectoryForm:directoriesList |
label=country |
waitForA4jRequest |
10000 |
|
watchA4jRequests |
|
|
select |
selectDirectoryForm:directoriesList |
label=continent |
waitForA4jRequest |
10000 |
|
verifyText |
viewDirectoryEntries:nxl_vocabulary_1:nxw_vocabulary_id_1 |
africa |
verifyText |
viewDirectoryEntries:nxl_vocabulary_1:nxw_vocabulary_label_1 |
label.directories.continent.africa |
verifyText |
viewDirectoryEntries:nxl_vocabulary_1:nxw_vocabulary_obsolete_1_no |
No |
verifyText |
viewDirectoryEntries:nxl_vocabulary_1:nxw_vocabulary_order_1 |
10,000,000 |
verifyElementPresent |
//input[@id="viewDirectoryEntries:nxl_vocabulary_1:nxl_vocabulary_1_editButton"] |
|
verifyElementPresent |
//input[@id="viewDirectoryEntries:nxl_vocabulary_1:nxl_vocabulary_1_deleteButton"] |
|
verifyText |
viewDirectoryEntries:nxl_vocabulary_2:nxw_vocabulary_id_2 |
antarctica |
verifyText |
viewDirectoryEntries:nxl_vocabulary_2:nxw_vocabulary_label_2 |
label.directories.continent.antarctica |
verifyText |
viewDirectoryEntries:nxl_vocabulary_2:nxw_vocabulary_obsolete_2_no |
No |
verifyText |
viewDirectoryEntries:nxl_vocabulary_2:nxw_vocabulary_order_2 |
10,000,000 |
verifyElementPresent |
//input[@id="viewDirectoryEntries:nxl_vocabulary_2:nxl_vocabulary_2_editButton"] |
|
verifyElementPresent |
//input[@id="viewDirectoryEntries:nxl_vocabulary_2:nxl_vocabulary_2_deleteButton"] |
|
watchA4jRequests |
|
|
click |
//input[@id="viewDirectoryEntries:nxl_vocabulary_2:nxl_vocabulary_2_editButton"] |
|
waitForA4jRequest |
10000 |
|
verifyText |
editDirectoryEntry:nxl_vocabulary:nxw_vocabulary_id |
antarctica |
verifyValue |
editDirectoryEntry:nxl_vocabulary:nxw_vocabulary_order |
10,000,000 |
verifyValue |
editDirectoryEntry:nxl_vocabulary:nxw_vocabulary_label |
label.directories.continent.antarctica |
type |
editDirectoryEntry:nxl_vocabulary:nxw_vocabulary_label |
label.directories.continent.antarctica.modified |
watchA4jRequests |
|
|
click |
//input[@value="Save"] |
|
waitForA4jRequest |
10000 |
|
verifyTextPresent |
Vocabulary entry edited |
|
verifyText |
viewDirectoryEntries:nxl_vocabulary_2:nxw_vocabulary_label_2 |
label.directories.continent.antarctica.modified |
watchA4jRequests |
|
|
click |
//input[@id="viewDirectoryEntries:nxl_vocabulary_2:nxl_vocabulary_2_editButton"] |
|
waitForA4jRequest |
10000 |
|
type |
editDirectoryEntry:nxl_vocabulary:nxw_vocabulary_label |
label.directories.continent.antarctica |
watchA4jRequests |
|
|
click |
//input[@value="Save"] |
|
waitForA4jRequest |
10000 |
|
verifyText |
viewDirectoryEntries:nxl_vocabulary_2:nxw_vocabulary_label_2 |
label.directories.continent.antarctica |
verifyElementPresent |
link=Add a new vocabulary entry |
|
watchA4jRequests |
|
|
click |
link=Add a new vocabulary entry |
|
waitForA4jRequest |
10000 |
|
type |
addEntryView:addEntryForm:nxl_vocabulary:nxw_vocabulary_id |
africa |
watchA4jRequests |
|
|
click |
//input[@value="Create"] |
|
waitForA4jRequest |
10000 |
|
verifyTextPresent |
The identifier already exists |
|
type |
addEntryView:addEntryForm:nxl_vocabulary:nxw_vocabulary_id |
aatlantide |
type |
addEntryView:addEntryForm:nxl_vocabulary:nxw_vocabulary_label |
label.continent.atlantide |
click |
addEntryView:addEntryForm:nxl_vocabulary:nxw_vocabulary_obsolete_checkbox:1 |
|
watchA4jRequests |
|
|
click |
//input[@value="Create"] |
|
waitForA4jRequest |
10000 |
|
verifyTextPresent |
Vocabulary entry added |
|
assertText |
viewDirectoryEntries:nxl_vocabulary_1:nxw_vocabulary_id_1 |
aatlantide |
assertText |
viewDirectoryEntries:nxl_vocabulary_1:nxw_vocabulary_label_1 |
label.continent.atlantide |
assertText |
viewDirectoryEntries:nxl_vocabulary_1:nxw_vocabulary_obsolete_1_yes |
Yes |
assertText |
viewDirectoryEntries:nxl_vocabulary_1:nxw_vocabulary_order_1 |
10,000,000 |
watchA4jRequests |
|
|
click |
//input[@id="viewDirectoryEntries:nxl_vocabulary_1:nxl_vocabulary_1_deleteButton"] |
|
assertConfirmation |
Delete selected vocabulary entry? |
|
waitForA4jRequest |
10000 |
|
verifyTextPresent |
Vocabulary entry deleted |
|
assertText |
viewDirectoryEntries:nxl_vocabulary_1:nxw_vocabulary_id_1 |
africa |
watchA4jRequests |
|
|
click |
//input[@id="viewDirectoryEntries:nxl_vocabulary_1:nxl_vocabulary_1_deleteButton"] |
|
assertConfirmation |
Delete selected vocabulary entry? |
|
waitForA4jRequest |
10000 |
|
verifyTextPresent |
This entry is referenced in another vocabulary |
|
open |
logout |
|