Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_44739061
DolphinScheduler
提交
a64c2b38
DolphinScheduler
项目概览
weixin_44739061
/
DolphinScheduler
与 Fork 源项目一致
Fork自
apache / DolphinScheduler
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
DolphinScheduler
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
a64c2b38
编写于
6月 10, 2020
作者:
E
eights
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev' of
https://github.com/apache/incubator-dolphinscheduler
into dev
上级
822addac
2749c7e5
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
266 addition
and
37 deletion
+266
-37
e2e/src/test/java/org/apache/dolphinscheduler/data/security/AlertManageData.java
...pache/dolphinscheduler/data/security/AlertManageData.java
+36
-0
e2e/src/test/java/org/apache/dolphinscheduler/locator/security/AlertManageLocator.java
...dolphinscheduler/locator/security/AlertManageLocator.java
+35
-0
e2e/src/test/java/org/apache/dolphinscheduler/page/security/AlertManagePage.java
...pache/dolphinscheduler/page/security/AlertManagePage.java
+77
-0
e2e/src/test/java/org/apache/dolphinscheduler/testcase/TestLogin.java
.../java/org/apache/dolphinscheduler/testcase/TestLogin.java
+2
-2
e2e/src/test/java/org/apache/dolphinscheduler/testcase/testDeleteData/TestDeleteAlert.java
...hinscheduler/testcase/testDeleteData/TestDeleteAlert.java
+42
-0
e2e/src/test/java/org/apache/dolphinscheduler/testcase/testDeleteData/TestDeleteProject.java
...nscheduler/testcase/testDeleteData/TestDeleteProject.java
+3
-3
e2e/src/test/java/org/apache/dolphinscheduler/testcase/testDeleteData/TestDeleteTenant.java
...inscheduler/testcase/testDeleteData/TestDeleteTenant.java
+3
-3
e2e/src/test/java/org/apache/dolphinscheduler/testcase/testDeleteData/TestDeleteUser.java
...phinscheduler/testcase/testDeleteData/TestDeleteUser.java
+3
-3
e2e/src/test/java/org/apache/dolphinscheduler/testcase/testDeleteData/TestDeleteWorkflow.java
...scheduler/testcase/testDeleteData/TestDeleteWorkflow.java
+3
-3
e2e/src/test/java/org/apache/dolphinscheduler/testcase/testProject/TestCreateProject.java
...phinscheduler/testcase/testProject/TestCreateProject.java
+3
-3
e2e/src/test/java/org/apache/dolphinscheduler/testcase/testProject/TestCreateWorkflow.java
...hinscheduler/testcase/testProject/TestCreateWorkflow.java
+3
-3
e2e/src/test/java/org/apache/dolphinscheduler/testcase/testSecurity/TestAlertManage.java
...lphinscheduler/testcase/testSecurity/TestAlertManage.java
+36
-0
e2e/src/test/java/org/apache/dolphinscheduler/testcase/testSecurity/TestTenantManage.java
...phinscheduler/testcase/testSecurity/TestTenantManage.java
+3
-3
e2e/src/test/java/org/apache/dolphinscheduler/testcase/testSecurity/TestUserManage.java
...olphinscheduler/testcase/testSecurity/TestUserManage.java
+3
-3
e2e/testng.xml
e2e/testng.xml
+14
-11
未找到文件。
e2e/src/test/java/org/apache/dolphinscheduler/data/security/AlertManageData.java
0 → 100644
浏览文件 @
a64c2b38
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.apache.dolphinscheduler.data.security
;
public
class
AlertManageData
{
/**
* Alert Name
*/
public
static
final
String
ALERT_NAME
=
"selenium_alert_Name"
;
/**
* Alert Type
*/
public
static
final
String
ALERT_TYPE
=
"邮件"
;
/**
* Alert Description
*/
public
static
final
String
DESCRIPTION
=
"create alert test"
;
public
static
final
String
ALERT_MANAGE
=
"告警组管理 - DolphinScheduler"
;
}
e2e/src/test/java/org/apache/dolphinscheduler/locator/security/AlertManageLocator.java
0 → 100644
浏览文件 @
a64c2b38
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.apache.dolphinscheduler.locator.security
;
import
org.openqa.selenium.By
;
public
class
AlertManageLocator
{
//create alert locator
public
static
final
By
CLICK_ALERT_MANAGE
=
By
.
xpath
(
"//div[4]/div/a/div/a/span"
);
public
static
final
By
CLICK_CREATE_ALERT
=
By
.
xpath
(
"//div[1]/div[2]/div/div[2]/div[2]/div/div[1]/button/span"
);
public
static
final
By
INPUT_ALERT_NAME
=
By
.
xpath
(
"//div[2]/div/div[1]/div[2]/div/input"
);
public
static
final
By
CLICK_ALERT_TYPE
=
By
.
xpath
(
"//div[2]/div/div[2]/div/div[2]/div[2]/div/div[1]/div/input"
);
public
static
final
By
SELECT_ALERT_EMAIL
=
By
.
xpath
(
"//div[2]/div/div[2]/div/div[2]/div[2]/div/div[2]/div/div/div/ul/li[1]/span"
);
public
static
final
By
INPUT_ALERT_DESCRIPTION
=
By
.
xpath
(
"//textarea"
);
public
static
final
By
SUBMIT_ALERT
=
By
.
xpath
(
"//div[3]/button[2]/span"
);
//delete alert locator
public
static
final
By
DELETE_ALERT_BUTTON
=
By
.
xpath
(
"//span/button"
);
public
static
final
By
CONFIRM_DELETE_ALERT_BUTTON
=
By
.
xpath
(
"//div[2]/div/button[2]/span"
);
}
e2e/src/test/java/org/apache/dolphinscheduler/page/security/AlertManagePage.java
0 → 100644
浏览文件 @
a64c2b38
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.apache.dolphinscheduler.page.security
;
import
org.apache.dolphinscheduler.common.PageCommon
;
import
org.apache.dolphinscheduler.data.security.AlertManageData
;
import
org.apache.dolphinscheduler.locator.security.AlertManageLocator
;
import
org.openqa.selenium.WebDriver
;
public
class
AlertManagePage
extends
PageCommon
{
/**
* Unique constructor
* @param driver driver
*/
public
AlertManagePage
(
WebDriver
driver
)
{
super
(
driver
);
}
/**
* createTenant
*
* @return Whether to enter the specified page after create tenant
*/
public
boolean
createAlert
()
throws
InterruptedException
{
// click alert manage
clickElement
(
AlertManageLocator
.
CLICK_ALERT_MANAGE
);
Thread
.
sleep
(
2000
);
// click create alert button
clickElement
(
AlertManageLocator
.
CLICK_CREATE_ALERT
);
Thread
.
sleep
(
2000
);
// input alert data
sendInput
(
AlertManageLocator
.
INPUT_ALERT_NAME
,
AlertManageData
.
ALERT_NAME
);
clickElement
(
AlertManageLocator
.
CLICK_ALERT_TYPE
);
clickElement
(
AlertManageLocator
.
SELECT_ALERT_EMAIL
);
sendInput
(
AlertManageLocator
.
INPUT_ALERT_DESCRIPTION
,
AlertManageData
.
DESCRIPTION
);
// click button
clickButton
(
AlertManageLocator
.
SUBMIT_ALERT
);
// Whether to enter the specified page after submit
return
ifTitleContains
(
AlertManageData
.
ALERT_MANAGE
);
}
public
boolean
deleteAlert
()
throws
InterruptedException
{
// click user manage
clickElement
(
AlertManageLocator
.
CLICK_ALERT_MANAGE
);
// click delete user button
clickButton
(
AlertManageLocator
.
DELETE_ALERT_BUTTON
);
// click confirm delete button
clickButton
(
AlertManageLocator
.
CONFIRM_DELETE_ALERT_BUTTON
);
// Whether to enter the specified page after submit
return
ifTitleContains
(
AlertManageData
.
ALERT_MANAGE
);
}
}
e2e/src/test/java/org/apache/dolphinscheduler/testcase/
LoginTest
.java
→
e2e/src/test/java/org/apache/dolphinscheduler/testcase/
TestLogin
.java
浏览文件 @
a64c2b38
...
...
@@ -22,10 +22,10 @@ import org.testng.annotations.Test;
import
static
org
.
apache
.
dolphinscheduler
.
base
.
BaseTest
.
driver
;
@Test
(
groups
={
"functionTests"
,
"login"
})
public
class
LoginTest
{
public
class
TestLogin
{
private
LoginPage
loginPage
;
@Test
(
description
=
"
LoginTest"
,
priority
=
1
)
@Test
(
description
=
"
TestLogin"
)
public
void
testLogin
()
throws
InterruptedException
{
loginPage
=
new
LoginPage
(
driver
);
System
.
out
.
println
(
"==================================="
);
...
...
e2e/src/test/java/org/apache/dolphinscheduler/testcase/testDeleteData/TestDeleteAlert.java
0 → 100644
浏览文件 @
a64c2b38
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.apache.dolphinscheduler.testcase.testDeleteData
;
import
org.apache.dolphinscheduler.base.BaseTest
;
import
org.apache.dolphinscheduler.page.security.AlertManagePage
;
import
org.apache.dolphinscheduler.page.security.TenantManagePage
;
import
org.testng.annotations.Test
;
public
class
TestDeleteAlert
extends
BaseTest
{
private
AlertManagePage
alertManagePage
;
private
TenantManagePage
tenantManagePage
;
@Test
(
groups
={
"functionTests"
},
dependsOnGroups
=
{
"login"
,
"alert"
},
description
=
"TestDeleteAlert"
,
priority
=
8
)
public
void
testDeleteAlert
()
throws
InterruptedException
{
tenantManagePage
=
new
TenantManagePage
(
driver
);
System
.
out
.
println
(
"jump to testSecurity to delete alert"
);
tenantManagePage
.
jumpSecurity
();
alertManagePage
=
new
AlertManagePage
(
driver
);
//assert alert manage page
System
.
out
.
println
(
"start delete alert"
);
assert
alertManagePage
.
deleteAlert
();
System
.
out
.
println
(
"end delete alert"
);
System
.
out
.
println
(
"==================================="
);
}
}
e2e/src/test/java/org/apache/dolphinscheduler/testcase/
deleteData/DeleteProjectTes
t.java
→
e2e/src/test/java/org/apache/dolphinscheduler/testcase/
testDeleteData/TestDeleteProjec
t.java
浏览文件 @
a64c2b38
...
...
@@ -14,16 +14,16 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.apache.dolphinscheduler.testcase.
d
eleteData
;
package
org.apache.dolphinscheduler.testcase.
testD
eleteData
;
import
org.apache.dolphinscheduler.base.BaseTest
;
import
org.apache.dolphinscheduler.page.project.CreateProjectPage
;
import
org.testng.annotations.Test
;
public
class
DeleteProjectTes
t
extends
BaseTest
{
public
class
TestDeleteProjec
t
extends
BaseTest
{
private
CreateProjectPage
createProjectPage
;
@Test
(
groups
={
"functionTests"
},
dependsOnGroups
=
{
"login"
,
"project"
},
description
=
"
DeleteProjectTest"
,
priority
=
7
)
@Test
(
groups
={
"functionTests"
},
dependsOnGroups
=
{
"login"
,
"project"
},
description
=
"
TestDeleteProject"
)
public
void
testDeleteProject
()
throws
InterruptedException
{
createProjectPage
=
new
CreateProjectPage
(
driver
);
//jump to project manage page
...
...
e2e/src/test/java/org/apache/dolphinscheduler/testcase/
deleteData/DeleteTenantTes
t.java
→
e2e/src/test/java/org/apache/dolphinscheduler/testcase/
testDeleteData/TestDeleteTenan
t.java
浏览文件 @
a64c2b38
...
...
@@ -14,16 +14,16 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.apache.dolphinscheduler.testcase.
d
eleteData
;
package
org.apache.dolphinscheduler.testcase.
testD
eleteData
;
import
org.apache.dolphinscheduler.base.BaseTest
;
import
org.apache.dolphinscheduler.page.security.TenantManagePage
;
import
org.testng.annotations.Test
;
public
class
DeleteTenantTes
t
extends
BaseTest
{
public
class
TestDeleteTenan
t
extends
BaseTest
{
private
TenantManagePage
tenantManagePage
;
@Test
(
groups
={
"functionTests"
},
dependsOnGroups
=
{
"login"
,
"createTenant"
},
description
=
"
DeleteTenantTest"
,
priority
=
9
)
@Test
(
groups
={
"functionTests"
},
dependsOnGroups
=
{
"login"
,
"createTenant"
},
description
=
"
TestDeleteTenant"
)
public
void
testDeleteTenant
()
throws
InterruptedException
{
tenantManagePage
=
new
TenantManagePage
(
driver
);
//assert tenant manage page
...
...
e2e/src/test/java/org/apache/dolphinscheduler/testcase/
deleteData/DeleteUserTest
.java
→
e2e/src/test/java/org/apache/dolphinscheduler/testcase/
testDeleteData/TestDeleteUser
.java
浏览文件 @
a64c2b38
...
...
@@ -14,18 +14,18 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.apache.dolphinscheduler.testcase.
d
eleteData
;
package
org.apache.dolphinscheduler.testcase.
testD
eleteData
;
import
org.apache.dolphinscheduler.base.BaseTest
;
import
org.apache.dolphinscheduler.page.security.TenantManagePage
;
import
org.apache.dolphinscheduler.page.security.UserManagePage
;
import
org.testng.annotations.Test
;
public
class
DeleteUserTest
extends
BaseTest
{
public
class
TestDeleteUser
extends
BaseTest
{
private
UserManagePage
userManagePage
;
private
TenantManagePage
tenantManagePage
;
@Test
(
groups
={
"functionTests"
},
dependsOnGroups
=
{
"login"
,
"user"
},
description
=
"
DeleteUserTest"
,
priority
=
8
)
@Test
(
groups
={
"functionTests"
},
dependsOnGroups
=
{
"login"
,
"user"
},
description
=
"
TestDeleteUser"
)
public
void
testDeleteUser
()
throws
InterruptedException
{
tenantManagePage
=
new
TenantManagePage
(
driver
);
System
.
out
.
println
(
"jump to security to delete user"
);
...
...
e2e/src/test/java/org/apache/dolphinscheduler/testcase/
deleteData/DeleteWorkflowTest
.java
→
e2e/src/test/java/org/apache/dolphinscheduler/testcase/
testDeleteData/TestDeleteWorkflow
.java
浏览文件 @
a64c2b38
...
...
@@ -14,18 +14,18 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.apache.dolphinscheduler.testcase.
d
eleteData
;
package
org.apache.dolphinscheduler.testcase.
testD
eleteData
;
import
org.apache.dolphinscheduler.base.BaseTest
;
import
org.apache.dolphinscheduler.page.project.CreateProjectPage
;
import
org.apache.dolphinscheduler.page.project.CreateWorkflowPage
;
import
org.testng.annotations.Test
;
public
class
DeleteWorkflowTest
extends
BaseTest
{
public
class
TestDeleteWorkflow
extends
BaseTest
{
private
CreateWorkflowPage
createWorkflowPage
;
private
CreateProjectPage
createProjectPage
;
@Test
(
groups
={
"functionTests"
},
dependsOnGroups
=
{
"login"
,
"workflow"
},
description
=
"
DeleteWorkflowTest"
,
priority
=
6
)
@Test
(
groups
={
"functionTests"
},
dependsOnGroups
=
{
"login"
,
"workflow"
},
description
=
"
TestDeleteWorkflow"
)
public
void
testDeleteWorkflow
()
throws
InterruptedException
{
createProjectPage
=
new
CreateProjectPage
(
driver
);
//jump to project manage page
...
...
e2e/src/test/java/org/apache/dolphinscheduler/testcase/
project/CreateProjectTes
t.java
→
e2e/src/test/java/org/apache/dolphinscheduler/testcase/
testProject/TestCreateProjec
t.java
浏览文件 @
a64c2b38
...
...
@@ -14,16 +14,16 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.apache.dolphinscheduler.testcase.
p
roject
;
package
org.apache.dolphinscheduler.testcase.
testP
roject
;
import
org.apache.dolphinscheduler.base.BaseTest
;
import
org.apache.dolphinscheduler.page.project.CreateProjectPage
;
import
org.testng.annotations.Test
;
public
class
CreateProjectTest
extends
BaseTest
{
public
class
TestCreateProject
extends
BaseTest
{
private
CreateProjectPage
createProjectPage
;
@Test
(
groups
={
"functionTests"
,
"project"
},
dependsOnGroups
=
{
"login"
},
description
=
"CreateProjectTest"
,
priority
=
4
)
@Test
(
groups
={
"functionTests"
,
"project"
},
dependsOnGroups
=
{
"login"
},
description
=
"CreateProjectTest"
)
public
void
testCreateProject
()
throws
InterruptedException
{
createProjectPage
=
new
CreateProjectPage
(
driver
);
// enter user manage page
...
...
e2e/src/test/java/org/apache/dolphinscheduler/testcase/
project/CreateWorkflowTest
.java
→
e2e/src/test/java/org/apache/dolphinscheduler/testcase/
testProject/TestCreateWorkflow
.java
浏览文件 @
a64c2b38
...
...
@@ -14,19 +14,19 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.apache.dolphinscheduler.testcase.
p
roject
;
package
org.apache.dolphinscheduler.testcase.
testP
roject
;
import
org.apache.dolphinscheduler.base.BaseTest
;
import
org.apache.dolphinscheduler.page.project.CreateProjectPage
;
import
org.apache.dolphinscheduler.page.project.CreateWorkflowPage
;
import
org.testng.annotations.Test
;
public
class
CreateWorkflowTest
extends
BaseTest
{
public
class
TestCreateWorkflow
extends
BaseTest
{
private
CreateWorkflowPage
createWorkflowPage
;
private
CreateProjectPage
createProjectPage
;
@Test
(
groups
={
"functionTests"
,
"workflow"
},
dependsOnGroups
=
{
"login"
},
description
=
"
CreateWorkflowTest"
,
priority
=
5
)
@Test
(
groups
={
"functionTests"
,
"workflow"
},
dependsOnGroups
=
{
"login"
},
description
=
"
TestCreateWorkflow"
)
public
void
testCreateWorkflow
()
throws
InterruptedException
{
createProjectPage
=
new
CreateProjectPage
(
driver
);
System
.
out
.
println
(
"jump to the projectManage page to create workflow"
);
...
...
e2e/src/test/java/org/apache/dolphinscheduler/testcase/testSecurity/TestAlertManage.java
0 → 100644
浏览文件 @
a64c2b38
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.apache.dolphinscheduler.testcase.testSecurity
;
import
org.apache.dolphinscheduler.base.BaseTest
;
import
org.apache.dolphinscheduler.page.security.AlertManagePage
;
import
org.testng.annotations.Test
;
public
class
TestAlertManage
extends
BaseTest
{
private
AlertManagePage
alertManagePage
;
@Test
(
groups
={
"functionTests"
,
"alert"
},
dependsOnGroups
=
{
"login"
},
description
=
"AlertManagePage"
)
public
void
testAlertManage
()
throws
InterruptedException
{
alertManagePage
=
new
AlertManagePage
(
driver
);
//assert alert manage page
System
.
out
.
println
(
"start create alert"
);
assert
alertManagePage
.
createAlert
();
System
.
out
.
println
(
"end create alert"
);
System
.
out
.
println
(
"==================================="
);
}
}
e2e/src/test/java/org/apache/dolphinscheduler/testcase/
security/TenantManageTest
.java
→
e2e/src/test/java/org/apache/dolphinscheduler/testcase/
testSecurity/TestTenantManage
.java
浏览文件 @
a64c2b38
...
...
@@ -14,17 +14,17 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.apache.dolphinscheduler.testcase.
s
ecurity
;
package
org.apache.dolphinscheduler.testcase.
testS
ecurity
;
import
org.apache.dolphinscheduler.base.BaseTest
;
import
org.apache.dolphinscheduler.page.security.TenantManagePage
;
import
org.testng.annotations.Test
;
public
class
Te
nantManageTest
extends
BaseTest
{
public
class
Te
stTenantManage
extends
BaseTest
{
private
TenantManagePage
tenantManagePage
;
@Test
(
groups
={
"functionTests"
,
"createTenant"
},
dependsOnGroups
=
{
"login"
},
description
=
"Te
nantManageTest"
,
priority
=
2
)
@Test
(
groups
={
"functionTests"
,
"createTenant"
},
dependsOnGroups
=
{
"login"
},
description
=
"Te
stTenantManage"
)
public
void
testTenantManage
()
throws
InterruptedException
{
tenantManagePage
=
new
TenantManagePage
(
driver
);
//assert tenant manage page
...
...
e2e/src/test/java/org/apache/dolphinscheduler/testcase/
security/UserManageTest
.java
→
e2e/src/test/java/org/apache/dolphinscheduler/testcase/
testSecurity/TestUserManage
.java
浏览文件 @
a64c2b38
...
...
@@ -14,16 +14,16 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.apache.dolphinscheduler.testcase.
s
ecurity
;
package
org.apache.dolphinscheduler.testcase.
testS
ecurity
;
import
org.apache.dolphinscheduler.base.BaseTest
;
import
org.apache.dolphinscheduler.page.security.UserManagePage
;
import
org.testng.annotations.Test
;
public
class
UserManageTest
extends
BaseTest
{
public
class
TestUserManage
extends
BaseTest
{
private
UserManagePage
userManagePage
;
@Test
(
groups
={
"functionTests"
,
"user"
},
dependsOnGroups
=
{
"login"
},
description
=
"
UserManageTest"
,
priority
=
3
)
@Test
(
groups
={
"functionTests"
,
"user"
},
dependsOnGroups
=
{
"login"
},
description
=
"
TestUserManage"
)
public
void
testUserManage
()
throws
InterruptedException
{
userManagePage
=
new
UserManagePage
(
driver
);
//assert user manage page
...
...
e2e/testng.xml
浏览文件 @
a64c2b38
...
...
@@ -16,24 +16,27 @@
~ limitations under the License.
-->
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<suite
name=
"dolphinscheduler_e2e"
parallel=
"true
"
>
<suite
name=
"dolphinscheduler_e2e"
verbose=
"1
"
>
<test
name=
"dolphinscheduler_test"
preserve-order=
"true"
>
<groups>
<run>
<include
name=
"functionTests"
/>
</run>
</groups>
<classes>
<class
name=
"org.apache.dolphinscheduler.testcase.LoginTest"
></class>
<class
name=
"org.apache.dolphinscheduler.testcase.security.TenantManageTest"
></class>
<class
name=
"org.apache.dolphinscheduler.testcase.security.UserManageTest"
></class>
<class
name=
"org.apache.dolphinscheduler.testcase.project.CreateProjectTest"
></class>
<class
name=
"org.apache.dolphinscheduler.testcase.project.CreateWorkflowTest"
></class>
<class
name=
"org.apache.dolphinscheduler.testcase.deleteData.DeleteWorkflowTest"
></class>
<class
name=
"org.apache.dolphinscheduler.testcase.deleteData.DeleteProjectTest"
></class>
<class
name=
"org.apache.dolphinscheduler.testcase.deleteData.DeleteUserTest"
></class>
<class
name=
"org.apache.dolphinscheduler.testcase.deleteData.DeleteTenantTest"
></class>
<class
name=
"org.apache.dolphinscheduler.testcase.TestLogin"
></class>
<class
name=
"org.apache.dolphinscheduler.testcase.testSecurity.TestTenantManage"
></class>
<class
name=
"org.apache.dolphinscheduler.testcase.testSecurity.TestUserManage"
></class>
<class
name=
"org.apache.dolphinscheduler.testcase.testSecurity.TestAlertManage"
></class>
<class
name=
"org.apache.dolphinscheduler.testcase.testProject.TestCreateProject"
></class>
<class
name=
"org.apache.dolphinscheduler.testcase.testProject.TestCreateWorkflow"
></class>
<class
name=
"org.apache.dolphinscheduler.testcase.testDeleteData.TestDeleteWorkflow"
></class>
<class
name=
"org.apache.dolphinscheduler.testcase.testDeleteData.TestDeleteProject"
></class>
<class
name=
"org.apache.dolphinscheduler.testcase.testDeleteData.TestDeleteAlert"
></class>
<class
name=
"org.apache.dolphinscheduler.testcase.testDeleteData.TestDeleteUser"
></class>
<class
name=
"org.apache.dolphinscheduler.testcase.testDeleteData.TestDeleteTenant"
></class>
</classes>
</test>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录