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
8130659d
Commit
8130659d
authored
Nov 03, 2018
by
赵然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zr
parent
3e571570
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
58 deletions
+3
-58
开发者账户余额校验测试_ExchangeTest.java
...ava/http/cases/ExchangeTest/开发者账户余额校验测试_ExchangeTest.java
+3
-1
Server.java
src/test/java/http/cases/PluginActivityTest/Server.java
+0
-57
No files found.
src/test/java/http/cases/ExchangeTest/开发者账户余额校验测试_ExchangeTest.java
View file @
8130659d
...
...
@@ -17,7 +17,9 @@ import java.lang.reflect.Method;
import
java.util.Map
;
/**
* Created by lvwenyan on 2018/06/08.
* Created by zhaoran on 2018/11/03.
* Mark : 涉及到开发者账户余额校验的普兑case,都需写在此类下面。
* 测试开发者账号:zhaoran@duiba.com.cn , 用户uid:4386
*/
public
class
开发者账户余额校验测试
_ExchangeTest
extends
DuibaTestBase
{
...
...
src/test/java/http/cases/PluginActivityTest/Server.java
deleted
100644 → 0
View file @
3e571570
package
http
.
cases
.
PluginActivityTest
;
import
base.DuibaLog
;
import
base.SFExpress
;
import
base.ServiceDoctor
;
import
org.testng.SkipException
;
import
org.testng.annotations.BeforeSuite
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
* Created by hanzhanli on 2017/9/21.
*/
public
class
Server
{
private
DuibaLog
logger
=
DuibaLog
.
getLogger
();
private
Map
<
String
,
String
>
fromMap
=
new
HashMap
<>();
private
Map
<
String
,
List
<
String
>>
logMap
=
new
HashMap
<>();
@BeforeSuite
public
void
onStart
()
{
//logger.info("job-name:"+System.getProperty("JOB_NAME"));
//logger.info("属性:"+System.getProperties());
logger
.
info
(
"duiba-server开始检测"
);
ServiceDoctor
serviceDoctor
=
new
ServiceDoctor
(
"duiba-server.properties"
);
SFExpress
.
addToBeTestedServices
(
serviceDoctor
.
getToBeTestedServices
());
//fromMap.putAll(serviceDoctor.getLogLenth());
SFExpress
.
addExceptionService
(
serviceDoctor
.
getExceptionService
(
60
*
2
));
logger
.
info
(
"duiba-server检测完毕"
);
logger
.
info
(
"duiba-server-center开始检测"
);
serviceDoctor
=
new
ServiceDoctor
(
"duiba-server-center.properties"
);
SFExpress
.
addToBeTestedServices
(
serviceDoctor
.
getToBeTestedServices
());
//fromMap.putAll(serviceDoctor.getLogLenth());
SFExpress
.
addExceptionService
(
serviceDoctor
.
getExceptionService
(
60
*
2
));
logger
.
info
(
"duiba-server-center检测完毕"
);
if
(
SFExpress
.
getExceptionServices
().
size
()>
0
){
logger
.
info
(
"服务未启动:"
+
SFExpress
.
getExceptionServices
().
toString
());
throw
new
SkipException
(
"被测服务未全部启动"
);
}
}
public
static
void
main
(
String
[]
args
)
{
// String s = "最近变更:2018-1-3 13:48:07-activity-access-web:疯狂打气球—jiangxixi/疯狂打气球—jiangxixi/\n";
// String name = s.split("—")[1].split("/")[0];
// System.out.println(name);
// List<String> list = new ArrayList<>();
// list.clear();
// Map<String,Object> map = new HashMap<>();
// map.put("name",list);
ServiceDoctor
serviceDoctor
=
new
ServiceDoctor
(
"duiba-server.properties"
);
}
}
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