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
57e0a8e9
Commit
57e0a8e9
authored
Nov 20, 2018
by
马博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
cb6d1d2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test.java
src/test/java/ui/cases/test.java
+1
-1
No files found.
src/test/java/ui/cases/test.java
View file @
57e0a8e9
...
@@ -85,7 +85,7 @@ public class test {
...
@@ -85,7 +85,7 @@ public class test {
File
file
=
new
File
(
"C:/image"
);
File
file
=
new
File
(
"C:/image"
);
Reporter
.
setCurrentTestResult
(
result
);
Reporter
.
setCurrentTestResult
(
result
);
Reporter
.
log
(
file
.
getAbsolutePath
());
Reporter
.
log
(
file
.
getAbsolutePath
());
Reporter
.
log
(
"<img src='"
+
file
.
getAbsolutePath
()
+
"/"
+
result
.
getName
()
+
".jpg' hight='400' width='400'/>"
);
Reporter
.
log
(
"<img src='"
+
"http://172.16.80.106"
+
"/"
+
result
.
getName
()
+
".jpg' hight='400' width='400'/>"
);
File
srcFile
=
((
TakesScreenshot
)
driver
).
getScreenshotAs
(
OutputType
.
FILE
);
//执行屏幕截取
File
srcFile
=
((
TakesScreenshot
)
driver
).
getScreenshotAs
(
OutputType
.
FILE
);
//执行屏幕截取
FileUtils
.
copyFile
(
srcFile
,
new
File
(
file
.
getAbsolutePath
()
+
"/"
+
result
.
getName
()
+
".jpg"
));
FileUtils
.
copyFile
(
srcFile
,
new
File
(
file
.
getAbsolutePath
()
+
"/"
+
result
.
getName
()
+
".jpg"
));
...
...
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