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
968f75f4
Commit
968f75f4
authored
Nov 28, 2018
by
钱雯君
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
d9e95519
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
新集卡_助力发集卡_DuibaTest.java
...ttp/cases/NewCollectActivityTest/新集卡_助力发集卡_DuibaTest.java
+6
-8
No files found.
src/test/java/http/cases/NewCollectActivityTest/新集卡_助力发集卡_DuibaTest.java
View file @
968f75f4
...
...
@@ -11,6 +11,7 @@ import base.DuibaLog;
import
base.DuibaTestBase
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
http.model.CollectGoodsInfo
;
import
http.service.Activity.NewCollectActivityService
;
import
http.service.Manager.EditManagerInfoService
;
...
...
@@ -18,6 +19,7 @@ import io.restassured.response.Response;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.testng.Assert
;
import
org.testng.annotations.Test
;
import
utils.GetCookieUtil
;
import
java.util.HashMap
;
import
java.util.List
;
...
...
@@ -242,15 +244,11 @@ public class 新集卡_助力发集卡_DuibaTest extends DuibaTestBase {
Response
response
=
editManagerInfoService
.
createUser
(
"新用户助力"
,
appId
);
Map
<
String
,
Object
>
user
=
jdbc
.
findSimpleResult
(
"select * from dafuweng.user where name = '新用户助力' and app_id = ?\n"
,
appId
);
String
uid
=
user
.
get
(
"id"
).
toString
();
String
url
=
"http://47.97.214.108/user/loginDuiba?uid="
+
uid
;
Response
login
=
given
().
get
(
url
);
Map
<
String
,
Object
>
consumer
=
jdbc
.
findSimpleResult
(
"select * from new_consumer.consumer_0010 where partner_user_id =? and app_id = ?\n"
,
uid
,
app_id
);
String
consumerId
=
consumer
.
get
(
"id"
).
toString
();
Boolean
res
=
jdbc
.
update
(
"UPDATE new_consumer.consumer_0010 set addr_name = 'qwj' , addr_phone = '18143476563' ,addr_province = '浙江省' ,addr_city = '杭州市' "
+
", addr_area = '西湖区' , addr_detail = '奖池花印' where partner_user_id = ? and app_id = ?\n"
,
uid
,
app_id
);
String
url
=
GetCookieUtil
.
genUrl
(
uid
,
"3erv8LvBxKBSyuGK5i8FSGyYoFD1"
);
JSONObject
cookie
=
GetCookieUtil
.
getConsumerIdFromCookie
(
url
);
map
.
put
(
"uid"
,
uid
);
map
.
put
(
"consumerId"
,
co
nsumerId
);
logger
.
info
(
"用户信息为,uid="
+
uid
+
"consumerId="
+
co
nsumerId
);
map
.
put
(
"consumerId"
,
co
okie
.
get
(
"cid"
).
toString
()
);
logger
.
info
(
"用户信息为,uid="
+
uid
+
"consumerId="
+
co
okie
.
get
(
"cid"
).
toString
()
);
return
map
;
}
...
...
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