Commit f45c684a authored by 马博's avatar 马博

ui update

parent 061d133f
...@@ -25,6 +25,7 @@ public class 实物_Activity_ui extends DuibaBaseUi{ ...@@ -25,6 +25,7 @@ public class 实物_Activity_ui extends DuibaBaseUi{
new Activity_egg_Page("立即领奖",this); new Activity_egg_Page("立即领奖",this);
new TakePrizeNewPage("马上领取",this); new TakePrizeNewPage("马上领取",this);
sleep(10); sleep(10);
screenshot();
Assert.assertTrue(isExistByText("收货人:uitest  "),"出奖弹层校验失败"); Assert.assertTrue(isExistByText("收货人:uitest  "),"出奖弹层校验失败");
......
...@@ -18,10 +18,13 @@ public class 首页插件_Plugin_ui extends DuibaBaseUi{ ...@@ -18,10 +18,13 @@ public class 首页插件_Plugin_ui extends DuibaBaseUi{
screenshot(); screenshot();
refresh(); refresh();
sleep(2); sleep(2);
screenshot();
clickByClass("plugin-open"); clickByClass("plugin-open");
clickByClass("plugin-img"); clickByClass("plugin-img");
sleep(2);
screenshot();
Assert.assertTrue(isExistByText("ui自动化-优惠券(活动)")); Assert.assertTrue(isExistByText("ui自动化-优惠券(活动)"));
Assert.assertTrue(isExistByText("券码:")); Assert.assertTrue(isExistByText("券码:"));
Assert.assertTrue(isExistByText("1111111")); Assert.assertTrue(isExistByText("1111111"));
......
...@@ -10,9 +10,14 @@ public class Activity_egg_Page { ...@@ -10,9 +10,14 @@ public class Activity_egg_Page {
father.sleep(3); father.sleep(3);
father.clickByClass("egg"); father.clickByClass("egg");
father.sleep(2);
father.screenshot();
if(name!=null)father.clickByTextEqual(name); if(name!=null){
father.clickByTextEqual(name);
father.screenshot();
}
} }
} }
...@@ -10,6 +10,8 @@ public class TakePrizeNewPage { ...@@ -10,6 +10,8 @@ public class TakePrizeNewPage {
public TakePrizeNewPage(String name,DuibaBaseUi father) throws Exception { public TakePrizeNewPage(String name,DuibaBaseUi father) throws Exception {
father.sleep(2); father.sleep(2);
father.clickByTextEqual(name); father.clickByTextEqual(name);
father.sleep(2);
father.screenshot();
father.clickByTextEqual("确定"); father.clickByTextEqual("确定");
} }
......
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