Commit d807e7d3 authored by 马博's avatar 马博

update

parent 963b16a4
......@@ -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(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment