Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oto
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
龚小红
oto
Commits
5692dbb6
Commit
5692dbb6
authored
Aug 05, 2020
by
Su-Yi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
动态获取访客tku
parent
5fa924b1
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
476 additions
and
468 deletions
+476
-468
Pay.java
src/test/java/com/kjj/qa/cases/Pay.java
+5
-0
BasicConfig.java
src/test/java/com/kjj/qa/config/BasicConfig.java
+9
-6
Article.class
target/test-classes/com/kjj/qa/cases/Article.class
+0
-0
BasicConfig.class
target/test-classes/com/kjj/qa/config/BasicConfig.class
+0
-0
report.html
test-output/report.html
+462
-462
No files found.
src/test/java/com/kjj/qa/cases/Pay.java
View file @
5692dbb6
...
@@ -25,6 +25,11 @@ public class Pay {
...
@@ -25,6 +25,11 @@ public class Pay {
// 创建用户 并传到network里
// 创建用户 并传到network里
AGENT_TKU
=
BaseUtils
.
createTku
();
AGENT_TKU
=
BaseUtils
.
createTku
();
network
.
agentCookies
.
put
(
"tku"
,
AGENT_TKU
);
network
.
agentCookies
.
put
(
"tku"
,
AGENT_TKU
);
System
.
out
.
println
(
"代理人tku:"
+
AGENT_TKU
);
// 获取访客tku
VISITOR_TKU
=
BaseUtils
.
getTku
(
VISITOR_USERID
);
System
.
out
.
println
(
"访客tku:"
+
VISITOR_TKU
);
}
}
@Test
(
description
=
"默认付费_付费页"
,
priority
=
1
)
//priority 方法执行优先级
@Test
(
description
=
"默认付费_付费页"
,
priority
=
1
)
//priority 方法执行优先级
...
...
src/test/java/com/kjj/qa/config/BasicConfig.java
View file @
5692dbb6
...
@@ -6,18 +6,21 @@ public class BasicConfig {
...
@@ -6,18 +6,21 @@ public class BasicConfig {
// 是否开启钉钉机器人推送
// 是否开启钉钉机器人推送
public
static
final
boolean
isPushReport
=
true
;
//true
public
static
final
boolean
isPushReport
=
true
;
//true
// 代理人 TKU
public
static
String
AGENT_TKU
=
null
;
// 访客 TKU
public
static
final
String
VISITOR_TKU
=
"T3gM31f18jAW2hicRDxbwHFSuwA4MMVLLeHZ5G4yvb3kN2o2rJ1ieFVyFF4YAnAgs6QwYpG3n2Fjs6LAoK"
;
// 代理人微信昵称
// 代理人微信昵称
public
static
final
String
WECHAT_NAME
=
"客集集-梦晨"
;
//true
public
static
final
String
WECHAT_NAME
=
"客集集-梦晨"
;
//true
// 代理人的openid(固定)
// 代理人的openid(固定)
public
static
final
String
OPEN_ID
=
"osi5w5l1lGC9T8f-sLNNurqvfS4A"
;
public
static
final
String
OPEN_ID
=
"osi5w5l1lGC9T8f-sLNNurqvfS4A"
;
// 代理人 TKU
public
static
String
AGENT_TKU
=
null
;
// 访客 TKU
public
static
String
VISITOR_TKU
=
null
;
// 访客的userId(固定)
public
static
final
int
VISITOR_USERID
=
4425
;
// 客集云公众号的oaSourceId(固定)
// 客集云公众号的oaSourceId(固定)
public
static
final
String
OASOURCE_ID
=
"gh_3b9884c7b0ee"
;
public
static
final
String
OASOURCE_ID
=
"gh_3b9884c7b0ee"
;
...
...
target/test-classes/com/kjj/qa/cases/Article.class
View file @
5692dbb6
No preview for this file type
target/test-classes/com/kjj/qa/config/BasicConfig.class
View file @
5692dbb6
No preview for this file type
test-output/report.html
View file @
5692dbb6
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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