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
188603d6
Commit
188603d6
authored
Aug 01, 2019
by
马博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
020b3eeb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
DuibaBaseUi.java
src/test/java/base/DuibaBaseUi.java
+15
-0
duiba.properties
src/test/profiles/aliyun/duiba.properties
+7
-0
No files found.
src/test/java/base/DuibaBaseUi.java
View file @
188603d6
...
...
@@ -456,6 +456,14 @@ public class DuibaBaseUi extends DuibaBase{
}
}
/**
* 输入,通过xpath
* @param xpath
* @param text
* @param index 元素的下标
* @throws Exception
*/
public
final
void
inputByXpath
(
String
xpath
,
String
text
,
int
index
)
throws
Exception
{
int
i
=
5
;
...
...
@@ -480,10 +488,17 @@ public class DuibaBaseUi extends DuibaBase{
}
/**
* 滑动窗口到顶部
*/
public
void
scrollToTop
(){
((
JavascriptExecutor
)
driver
).
executeScript
(
"window.scrollTo(document.body.scrollHeight,0)"
);
}
/**
* 滑动窗口到底部
*/
public
void
scrollToDown
(){
((
JavascriptExecutor
)
driver
).
executeScript
(
"window.scrollTo(0,document.body.scrollHeight)"
);
...
...
src/test/profiles/aliyun/duiba.properties
View file @
188603d6
...
...
@@ -85,3 +85,10 @@ ui.names=mabo
ui.group
=
自动化
ui.resultUrl
=
http://101.68.72.146:18080/job/duiba_ui/HTML_20Report/suite1_test1_results.html
ui.job
=
duiba_ui
uiCms.project
=
界面自动化核心业务
uiCms.names
=
mabo
uiCms.group
=
自动化
uiCms.resultUrl
=
http://10.254.187.25/job/duiba_ui/HTML_20Report/suite1_test1_results.html
uiCms.job
=
duiba_cms_ui
\ No newline at end of file
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