Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
test-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
马博
test-platform
Commits
f45c684a
Commit
f45c684a
authored
Jan 09, 2019
by
马博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ui update
parent
061d133f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
1 deletion
+12
-1
实物_Activity_ui.java
src/test/java/ui/cases/Activity/实物_Activity_ui.java
+1
-0
首页插件_Plugin_ui.java
src/test/java/ui/cases/Plugin/首页插件_Plugin_ui.java
+3
-0
Activity_egg_Page.java
src/test/java/ui/service/Activity_egg_Page.java
+6
-1
TakePrizeNewPage.java
src/test/java/ui/service/TakePrizeNewPage.java
+2
-0
No files found.
src/test/java/ui/cases/Activity/实物_Activity_ui.java
View file @
f45c684a
...
...
@@ -25,6 +25,7 @@ public class 实物_Activity_ui extends DuibaBaseUi{
new
Activity_egg_Page
(
"立即领奖"
,
this
);
new
TakePrizeNewPage
(
"马上领取"
,
this
);
sleep
(
10
);
screenshot
();
Assert
.
assertTrue
(
isExistByText
(
"收货人:uitest "
),
"出奖弹层校验失败"
);
...
...
src/test/java/ui/cases/Plugin/首页插件_Plugin_ui.java
View file @
f45c684a
...
...
@@ -18,10 +18,13 @@ public class 首页插件_Plugin_ui extends DuibaBaseUi{
screenshot
();
refresh
();
sleep
(
2
);
screenshot
();
clickByClass
(
"plugin-open"
);
clickByClass
(
"plugin-img"
);
sleep
(
2
);
screenshot
();
Assert
.
assertTrue
(
isExistByText
(
"ui自动化-优惠券(活动)"
));
Assert
.
assertTrue
(
isExistByText
(
"券码:"
));
Assert
.
assertTrue
(
isExistByText
(
"1111111"
));
...
...
src/test/java/ui/service/Activity_egg_Page.java
View file @
f45c684a
...
...
@@ -10,9 +10,14 @@ public class Activity_egg_Page {
father
.
sleep
(
3
);
father
.
clickByClass
(
"egg"
);
father
.
sleep
(
2
);
father
.
screenshot
();
if
(
name
!=
null
)
father
.
clickByTextEqual
(
name
);
if
(
name
!=
null
){
father
.
clickByTextEqual
(
name
);
father
.
screenshot
();
}
}
}
src/test/java/ui/service/TakePrizeNewPage.java
View file @
f45c684a
...
...
@@ -10,6 +10,8 @@ public class TakePrizeNewPage {
public
TakePrizeNewPage
(
String
name
,
DuibaBaseUi
father
)
throws
Exception
{
father
.
sleep
(
2
);
father
.
clickByTextEqual
(
name
);
father
.
sleep
(
2
);
father
.
screenshot
();
father
.
clickByTextEqual
(
"确定"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment