Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
4 changed files
with
69 additions
and
11 deletions.
There are no files selected for viewing
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
62 changes: 62 additions & 0 deletions
62
...dingertest/src/test/java/com/evolveum/midpoint/testing/schrodinger/page/TaskPageTest.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,62 @@ | ||
/* | ||
* Copyright (c) 2010-2019 Evolveum and contributors | ||
* | ||
* This work is dual-licensed under the Apache License 2.0 | ||
* and European Union Public License. See LICENSE file for details. | ||
*/ | ||
package com.evolveum.midpoint.testing.schrodinger.page; | ||
|
||
import com.codeborne.selenide.Selenide; | ||
|
||
import com.evolveum.midpoint.schrodinger.component.AssignmentHolderBasicTab; | ||
import com.evolveum.midpoint.schrodinger.component.common.PrismForm; | ||
import com.evolveum.midpoint.schrodinger.page.AssignmentHolderDetailsPage; | ||
import com.evolveum.midpoint.schrodinger.page.task.ListTasksPage; | ||
import com.evolveum.midpoint.schrodinger.page.task.TaskPage; | ||
import com.evolveum.midpoint.schrodinger.page.user.ListUsersPage; | ||
import com.evolveum.midpoint.schrodinger.page.user.UserPage; | ||
import com.evolveum.midpoint.testing.schrodinger.AbstractSchrodingerTest; | ||
import com.evolveum.midpoint.xml.ns._public.common.common_3.UserType; | ||
|
||
import org.testng.Assert; | ||
import org.testng.annotations.Test; | ||
|
||
/** | ||
* @author skublik | ||
*/ | ||
|
||
public class TaskPageTest extends AbstractSchrodingerTest { | ||
|
||
@Test | ||
public void test001createNewTask() { | ||
|
||
String name = "NewTest"; | ||
String handler = "http://midpoint.evolveum.com/xml/ns/public/model/synchronization/task/recompute/handler-3"; | ||
TaskPage task = basicPage.newTask(); | ||
task.selectTabBasic().form().addAttributeValue("handlerUri", handler); | ||
Selenide.sleep(2000); | ||
task.selectTabBasic() | ||
.form() | ||
.addAttributeValue("name", name) | ||
.selectOption("recurrence","Single") | ||
.selectOption("objectType","User") | ||
.and() | ||
.and() | ||
.clickSave(); | ||
|
||
ListTasksPage tasksPage = basicPage.listTasks(); | ||
PrismForm<AssignmentHolderBasicTab<AssignmentHolderDetailsPage>> taskForm = tasksPage | ||
.table() | ||
.search() | ||
.byName() | ||
.inputValue(name) | ||
.updateSearch() | ||
.and() | ||
.clickByName(name) | ||
.selectTabBasic() | ||
.form(); | ||
|
||
Assert.assertTrue(taskForm.compareInputAttributeValue("name", name)); | ||
Assert.assertTrue(taskForm.compareInputAttributeValue("handlerUri", handler)); | ||
} | ||
} |
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