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
d807e7d3
Commit
d807e7d3
authored
Nov 22, 2018
by
马博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
963b16a4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
DuibaBaseUi.java
src/test/java/base/DuibaBaseUi.java
+3
-2
No files found.
src/test/java/base/DuibaBaseUi.java
View file @
d807e7d3
...
...
@@ -65,8 +65,8 @@ public class DuibaBaseUi extends DuibaBase{
String
path
=
null
;
String
url
=
null
;
if
(
ev
){
File
file
=
new
File
(
"C:\\image
\\
"
);
path
=
file
.
getAbsolutePath
();
File
file
=
new
File
(
"C:\\image"
);
path
=
file
.
getAbsolutePath
()
+
"\\"
;
url
=
"http://172.16.80.106/"
;
}
else
{
File
file
=
new
File
(
" "
);
...
...
@@ -86,6 +86,7 @@ public class DuibaBaseUi extends DuibaBase{
File
srcFile
=
((
TakesScreenshot
)
driver
).
getScreenshotAs
(
OutputType
.
FILE
);
//执行屏幕截取
FileUtils
.
copyFile
(
srcFile
,
new
File
(
path
+
result
.
getName
()
+
"_"
+
time
+
".jpg"
));
}
@AfterClass
public
final
void
close
(){
...
...
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