Commit d807e7d3 authored by 马博's avatar 马博

update

parent 963b16a4
...@@ -65,8 +65,8 @@ public class DuibaBaseUi extends DuibaBase{ ...@@ -65,8 +65,8 @@ public class DuibaBaseUi extends DuibaBase{
String path=null; String path=null;
String url=null; String url=null;
if(ev){ if(ev){
File file = new File("C:\\image\\"); File file = new File("C:\\image");
path = file.getAbsolutePath(); path = file.getAbsolutePath()+"\\";
url = "http://172.16.80.106/"; url = "http://172.16.80.106/";
}else{ }else{
File file = new File(" "); File file = new File(" ");
...@@ -86,6 +86,7 @@ public class DuibaBaseUi extends DuibaBase{ ...@@ -86,6 +86,7 @@ public class DuibaBaseUi extends DuibaBase{
File srcFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); //执行屏幕截取 File srcFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE); //执行屏幕截取
FileUtils.copyFile(srcFile, new File(path + result.getName() +"_"+time+ ".jpg")); FileUtils.copyFile(srcFile, new File(path + result.getName() +"_"+time+ ".jpg"));
} }
@AfterClass @AfterClass
public final void close(){ 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