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
7e774f54
Commit
7e774f54
authored
May 29, 2020
by
Su-Yi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增新手任务case
parent
56efd152
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
184 additions
and
79 deletions
+184
-79
NewTask.java
src/test/java/com/kjj/qa/cases/NewTask.java
+172
-77
NetworkUtil.java
src/test/java/com/kjj/qa/utils/NetworkUtil.java
+12
-2
NewTask.class
target/test-classes/com/kjj/qa/cases/NewTask.class
+0
-0
DingTalkUtil.class
target/test-classes/com/kjj/qa/utils/DingTalkUtil.class
+0
-0
NetworkUtil.class
target/test-classes/com/kjj/qa/utils/NetworkUtil.class
+0
-0
No files found.
src/test/java/com/kjj/qa/cases/NewTask.java
View file @
7e774f54
This diff is collapsed.
Click to expand it.
src/test/java/com/kjj/qa/utils/NetworkUtil.java
View file @
7e774f54
...
...
@@ -31,6 +31,15 @@ public class NetworkUtil {
public
Map
<
String
,
Object
>
getFileHeaders
()
{
return
agentHeaders
;
}
public
void
setFileHeadersHeaders
(
Map
<
String
,
Object
>
fileHeaders
)
{
this
.
fileHeaders
=
fileHeaders
;
}
//代理人的tku
public
String
agentTku
=
new
String
(
"T3gM31f18jAWdkgg3kyGYmYH8Vsrd5BdQJ7fpFfRikMJJQycJFXTTxtqATmEN3ECa4TnKjKvtbazYb3e3X"
);
public
String
getAgentTku
()
{
return
agentTku
;
}
public
void
setAgentTku
(
String
agentTku
)
{
this
.
agentTku
=
agentTku
;
}
//访客的tku
public
String
visitorTku
=
new
String
(
"QoEVdKqFrDvq89RmQPxDArCNwjwotBjn4sfHr62Dv8Z1A4gRH6cxqrSLJP42ywZHttE"
);
public
String
getVisitorTku
()
{
return
visitorTku
;
}
public
void
setVisitorTku
(
String
visitorTku
)
{
this
.
visitorTku
=
visitorTku
;
}
// 钉钉的 headers
public
Map
<
String
,
Object
>
dingTalkHeaders
=
new
HashMap
<
String
,
Object
>();
public
Map
<
String
,
Object
>
getDingTalkHeaders
()
{
return
dingTalkHeaders
;
}
...
...
@@ -52,7 +61,7 @@ public class NetworkUtil {
// 构造函数 初始化tku、content-type
private
NetworkUtil
(){
//cookies中的tku
agentCookies
.
put
(
"tku"
,
"T3gM31f18jAWdkgg3kyGYmYH8Vsrd5BdQJ7fpFfRikMJJQycJFXTTxtqATmEN3ECa4TnKjKvtbazYb3e3X"
);
agentCookies
.
put
(
"tku"
,
this
.
agentTku
);
//json类型的headers
agentHeaders
.
put
(
"Content-Type"
,
"application/json"
);
//二进制文件的headers
...
...
@@ -134,7 +143,8 @@ public class NetworkUtil {
public
static
void
main
(
String
[]
args
)
{
NetworkUtil
network
=
NetworkUtil
.
getInstance
();
System
.
out
.
println
(
network
.
agentTku
);
}
}
target/test-classes/com/kjj/qa/cases/NewTask.class
View file @
7e774f54
No preview for this file type
target/test-classes/com/kjj/qa/utils/DingTalkUtil.class
View file @
7e774f54
No preview for this file type
target/test-classes/com/kjj/qa/utils/NetworkUtil.class
View file @
7e774f54
No preview for this file type
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