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
6acfd434
Commit
6acfd434
authored
Dec 20, 2018
by
马博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ui add
parent
648b9661
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
76 additions
and
50 deletions
+76
-50
优惠券_Activity_ui.java
src/test/java/ui/cases/Activity/优惠券_Activity_ui.java
+17
-7
实物_Activity_ui.java
src/test/java/ui/cases/Activity/实物_Activity_ui.java
+8
-6
支付宝_Activity_ui.java
src/test/java/ui/cases/Activity/支付宝_Activity_ui.java
+6
-7
虚拟商品_Activity_ui.java
src/test/java/ui/cases/Activity/虚拟商品_Activity_ui.java
+7
-5
谢谢参与_Activity_ui.java
src/test/java/ui/cases/Activity/谢谢参与_Activity_ui.java
+7
-9
实物_ExchangeTest_ui.java
src/test/java/ui/cases/Exchange/实物_ExchangeTest_ui.java
+22
-8
支付宝_ExchangeTest_ui.java
src/test/java/ui/cases/Exchange/支付宝_ExchangeTest_ui.java
+9
-8
No files found.
src/test/java/ui/cases/Activity/优惠券_Activity_ui.java
View file @
6acfd434
...
@@ -2,6 +2,8 @@ package ui.cases.Activity;
...
@@ -2,6 +2,8 @@ package ui.cases.Activity;
import
base.DuibaBaseUi
;
import
base.DuibaBaseUi
;
import
org.testng.annotations.Test
;
import
org.testng.annotations.Test
;
import
ui.service.Activity_egg_Page
;
import
ui.service.HomePage
;
import
ui.service.MoblieLogin
;
import
ui.service.MoblieLogin
;
import
static
com
.
codeborne
.
selenide
.
Selenide
.
open
;
import
static
com
.
codeborne
.
selenide
.
Selenide
.
open
;
...
@@ -12,17 +14,25 @@ import static com.codeborne.selenide.Selenide.open;
...
@@ -12,17 +14,25 @@ import static com.codeborne.selenide.Selenide.open;
public
class
优惠券
_Activity_ui
extends
DuibaBaseUi
{
public
class
优惠券
_Activity_ui
extends
DuibaBaseUi
{
@Test
@Test
public
void
正常流程
()
throws
Exception
{
public
void
正常流程
()
throws
Exception
{
// new MoblieLogin("5074",this);
// clickByClass("btn-close");
// screenshot();
// clickByTextEqual("ui自动化-活动工具-优惠券");
// screenshot();
// clickByClass("egg jump");
//
// clickByTextEqual("ui自动化-优惠券(活动)");
// sleep(2);
// clickByClass("J_gotoDetail logandgo");
new
MoblieLogin
(
"5074"
,
this
);
new
MoblieLogin
(
"5074"
,
this
);
clickByClass
(
"btn-close"
);
//手机端楼层
screenshot
();
new
HomePage
(
"ui自动化-活动工具-优惠券"
,
this
);
clickByTextEqual
(
"ui自动化-活动工具-优惠券"
);
screenshot
();
clickByClass
(
"egg jump"
);
clickByTextEqual
(
"ui自动化-优惠券(活动)"
);
new
Activity_egg_Page
(
"ui自动化-优惠券(活动)"
,
this
);
sleep
(
2
);
sleep
(
2
);
clickByClass
(
"J_gotoDetail logandgo"
);
clickByClass
(
"J_gotoDetail logandgo"
);
// driver.findElementByXPath("")
}
}
...
...
src/test/java/ui/cases/Activity/实物_Activity_ui.java
View file @
6acfd434
...
@@ -2,6 +2,8 @@ package ui.cases.Activity;
...
@@ -2,6 +2,8 @@ package ui.cases.Activity;
import
base.DuibaBaseUi
;
import
base.DuibaBaseUi
;
import
org.testng.annotations.Test
;
import
org.testng.annotations.Test
;
import
ui.service.Activity_egg_Page
;
import
ui.service.HomePage
;
import
ui.service.MoblieLogin
;
import
ui.service.MoblieLogin
;
import
static
com
.
codeborne
.
selenide
.
Selenide
.
open
;
import
static
com
.
codeborne
.
selenide
.
Selenide
.
open
;
...
@@ -12,15 +14,15 @@ import static com.codeborne.selenide.Selenide.open;
...
@@ -12,15 +14,15 @@ import static com.codeborne.selenide.Selenide.open;
public
class
实物
_Activity_ui
extends
DuibaBaseUi
{
public
class
实物
_Activity_ui
extends
DuibaBaseUi
{
@Test
@Test
public
void
正常流程
()
throws
Exception
{
public
void
正常流程
()
throws
Exception
{
new
MoblieLogin
(
"5074"
,
this
);
new
MoblieLogin
(
"5074"
,
this
);
clickByClass
(
"btn-close"
);
//手机端楼层
screenshot
();
new
HomePage
(
"ui自动化-活动工具-实物"
,
this
);
clickByTextEqual
(
"ui自动化-活动工具-实物"
);
screenshot
();
clickByClass
(
"egg jump"
);
new
Activity_egg_Page
(
null
,
this
);
sleep
(
2
);
sleep
(
2
);
clickByClass
(
"J_gotoDetail logandgo"
);
clickByClass
(
"J_gotoDetail logandgo"
);
// driver.findElementByXPath("")
}
}
}
}
src/test/java/ui/cases/Activity/支付宝_Activity_ui.java
View file @
6acfd434
...
@@ -2,6 +2,8 @@ package ui.cases.Activity;
...
@@ -2,6 +2,8 @@ package ui.cases.Activity;
import
base.DuibaBaseUi
;
import
base.DuibaBaseUi
;
import
org.testng.annotations.Test
;
import
org.testng.annotations.Test
;
import
ui.service.Activity_egg_Page
;
import
ui.service.HomePage
;
import
ui.service.MoblieLogin
;
import
ui.service.MoblieLogin
;
import
static
com
.
codeborne
.
selenide
.
Selenide
.
open
;
import
static
com
.
codeborne
.
selenide
.
Selenide
.
open
;
...
@@ -12,16 +14,13 @@ import static com.codeborne.selenide.Selenide.open;
...
@@ -12,16 +14,13 @@ import static com.codeborne.selenide.Selenide.open;
public
class
支付宝
_Activity_ui
extends
DuibaBaseUi
{
public
class
支付宝
_Activity_ui
extends
DuibaBaseUi
{
@Test
@Test
public
void
正常流程
()
throws
Exception
{
public
void
正常流程
()
throws
Exception
{
new
MoblieLogin
(
"5074"
,
this
);
new
MoblieLogin
(
"5074"
,
this
);
clickByClass
(
"btn-close"
);
//手机端楼层
screenshot
();
new
HomePage
(
"ui自动化-活动工具-支付宝"
,
this
);
clickByTextEqual
(
"ui自动化-活动工具-支付宝"
);
screenshot
();
clickByClass
(
"egg jump"
);
// clickByTextEqual("ui自动化-优惠券(活动)"
);
new
Activity_egg_Page
(
null
,
this
);
sleep
(
2
);
sleep
(
2
);
clickByClass
(
"J_gotoDetail logandgo"
);
clickByClass
(
"J_gotoDetail logandgo"
);
// driver.findElementByXPath("")
}
}
}
}
src/test/java/ui/cases/Activity/虚拟商品_Activity_ui.java
View file @
6acfd434
...
@@ -2,6 +2,8 @@ package ui.cases.Activity;
...
@@ -2,6 +2,8 @@ package ui.cases.Activity;
import
base.DuibaBaseUi
;
import
base.DuibaBaseUi
;
import
org.testng.annotations.Test
;
import
org.testng.annotations.Test
;
import
ui.service.Activity_egg_Page
;
import
ui.service.HomePage
;
import
ui.service.MoblieLogin
;
import
ui.service.MoblieLogin
;
import
static
com
.
codeborne
.
selenide
.
Selenide
.
open
;
import
static
com
.
codeborne
.
selenide
.
Selenide
.
open
;
...
@@ -12,12 +14,12 @@ import static com.codeborne.selenide.Selenide.open;
...
@@ -12,12 +14,12 @@ import static com.codeborne.selenide.Selenide.open;
public
class
虚拟商品
_Activity_ui
extends
DuibaBaseUi
{
public
class
虚拟商品
_Activity_ui
extends
DuibaBaseUi
{
@Test
@Test
public
void
正常流程
()
throws
Exception
{
public
void
正常流程
()
throws
Exception
{
new
MoblieLogin
(
"5074"
,
this
);
new
MoblieLogin
(
"5074"
,
this
);
clickByClass
(
"btn-close"
);
//手机端楼层
screenshot
();
new
HomePage
(
"ui自动化-活动工具-支付宝"
,
this
);
clickByTextEqual
(
"ui自动化-活动工具-虚拟商品"
);
screenshot
();
new
Activity_egg_Page
(
null
,
this
);
clickByClass
(
"egg jump"
);
...
...
src/test/java/ui/cases/Activity/谢谢参与_Activity_ui.java
View file @
6acfd434
...
@@ -2,6 +2,8 @@ package ui.cases.Activity;
...
@@ -2,6 +2,8 @@ package ui.cases.Activity;
import
base.DuibaBaseUi
;
import
base.DuibaBaseUi
;
import
org.testng.annotations.Test
;
import
org.testng.annotations.Test
;
import
ui.service.Activity_egg_Page
;
import
ui.service.HomePage
;
import
ui.service.MoblieLogin
;
import
ui.service.MoblieLogin
;
import
static
com
.
codeborne
.
selenide
.
Selenide
.
open
;
import
static
com
.
codeborne
.
selenide
.
Selenide
.
open
;
...
@@ -12,16 +14,12 @@ import static com.codeborne.selenide.Selenide.open;
...
@@ -12,16 +14,12 @@ import static com.codeborne.selenide.Selenide.open;
public
class
谢谢参与
_Activity_ui
extends
DuibaBaseUi
{
public
class
谢谢参与
_Activity_ui
extends
DuibaBaseUi
{
@Test
@Test
public
void
正常流程
()
throws
Exception
{
public
void
正常流程
()
throws
Exception
{
new
MoblieLogin
(
"5074"
,
this
);
new
MoblieLogin
(
"5074"
,
this
);
clickByClass
(
"btn-close"
);
//手机端楼层
screenshot
();
new
HomePage
(
"ui自动化-活动工具-谢谢参与"
,
this
);
clickByTextEqual
(
"ui自动化-活动工具-优惠券"
);
screenshot
();
clickByClass
(
"egg jump"
);
clickByTextEqual
(
"ui自动化-优惠券(活动)"
);
new
Activity_egg_Page
(
null
,
this
);
sleep
(
2
);
clickByClass
(
"J_gotoDetail logandgo"
);
// driver.findElementByXPath("")
}
}
}
}
src/test/java/ui/cases/Exchange/实物_ExchangeTest_ui.java
View file @
6acfd434
...
@@ -2,6 +2,8 @@ package ui.cases.Exchange;
...
@@ -2,6 +2,8 @@ package ui.cases.Exchange;
import
base.DuibaBaseUi
;
import
base.DuibaBaseUi
;
import
org.testng.annotations.Test
;
import
org.testng.annotations.Test
;
import
ui.service.ExchangePage
;
import
ui.service.HomePage
;
import
ui.service.MoblieLogin
;
import
ui.service.MoblieLogin
;
import
static
com
.
codeborne
.
selenide
.
Selenide
.
open
;
import
static
com
.
codeborne
.
selenide
.
Selenide
.
open
;
...
@@ -12,17 +14,29 @@ import static com.codeborne.selenide.Selenide.open;
...
@@ -12,17 +14,29 @@ import static com.codeborne.selenide.Selenide.open;
public
class
实物
_ExchangeTest_ui
extends
DuibaBaseUi
{
public
class
实物
_ExchangeTest_ui
extends
DuibaBaseUi
{
@Test
@Test
public
void
实物兑换
_
正常流程
()
throws
Exception
{
public
void
实物兑换
_
正常流程
()
throws
Exception
{
// new MoblieLogin("5074",this);
// clickByClass("btn-close");
// screenshot();
// clickByTextEqual("ui自动化-实物");
// screenshot();
// clickByTextEqual("马上兑换");
// screenshot();
// clickByTextEqual("确定");
// screenshot();
// sleep(5);
// screenshot();
//通过dafuweng登陆手机端
new
MoblieLogin
(
"5074"
,
this
);
new
MoblieLogin
(
"5074"
,
this
);
clickByClass
(
"btn-close"
);
//手机端楼层
screenshot
();
new
HomePage
(
"ui自动化-实物"
,
this
);
clickByTextEqual
(
"ui自动化-实物"
);
//兑换页面
screenshot
();
new
ExchangePage
(
"马上兑换"
,
this
);
clickByTextEqual
(
"马上兑换"
);
screenshot
();
clickByTextEqual
(
"确定"
);
screenshot
();
sleep
(
5
);
sleep
(
5
);
screenshot
();
screenshot
();
}
}
}
}
src/test/java/ui/cases/Exchange/支付宝_ExchangeTest_ui.java
View file @
6acfd434
...
@@ -2,6 +2,8 @@ package ui.cases.Exchange;
...
@@ -2,6 +2,8 @@ package ui.cases.Exchange;
import
base.DuibaBaseUi
;
import
base.DuibaBaseUi
;
import
org.testng.annotations.Test
;
import
org.testng.annotations.Test
;
import
ui.service.ExchangePage
;
import
ui.service.HomePage
;
import
ui.service.MoblieLogin
;
import
ui.service.MoblieLogin
;
import
static
com
.
codeborne
.
selenide
.
Selenide
.
open
;
import
static
com
.
codeborne
.
selenide
.
Selenide
.
open
;
...
@@ -12,15 +14,14 @@ import static com.codeborne.selenide.Selenide.open;
...
@@ -12,15 +14,14 @@ import static com.codeborne.selenide.Selenide.open;
public
class
支付宝
_ExchangeTest_ui
extends
DuibaBaseUi
{
public
class
支付宝
_ExchangeTest_ui
extends
DuibaBaseUi
{
@Test
@Test
public
void
支付宝
_
正常流程
()
throws
Exception
{
public
void
支付宝
_
正常流程
()
throws
Exception
{
//通过dafuweng登陆手机端
new
MoblieLogin
(
"5074"
,
this
);
new
MoblieLogin
(
"5074"
,
this
);
clickByClass
(
"btn-close"
);
//手机端楼层
screenshot
();
new
HomePage
(
"支付宝充值"
,
this
);
clickByTextEqual
(
"支付宝充值"
);
//兑换页面
screenshot
();
new
ExchangePage
(
"马上兑换"
,
this
);
clickByTextEqual
(
"马上兑换"
);
screenshot
();
clickByTextEqual
(
"确定"
);
screenshot
();
sleep
(
5
);
sleep
(
5
);
screenshot
();
screenshot
();
...
...
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