Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xm-sportstest
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiamai-test
xm-sportstest
Commits
63aec8c2
Commit
63aec8c2
authored
Mar 06, 2025
by
yangfangfang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
随机生成的短信充值订单是3位,已经有可能存在了,改成6了
parent
d3d2e8db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
src/main/java/com/xiaomai/cases/polar/config/TestGetSmsRechargeOrderStatus.java
+2
-1
No files found.
src/main/java/com/xiaomai/cases/polar/config/TestGetSmsRechargeOrderStatus.java
View file @
63aec8c2
...
@@ -35,7 +35,7 @@ public class TestGetSmsRechargeOrderStatus extends XMBaseTest {
...
@@ -35,7 +35,7 @@ public class TestGetSmsRechargeOrderStatus extends XMBaseTest {
public
void
testGetSmsRechargeOrderStatus
(){
public
void
testGetSmsRechargeOrderStatus
(){
//随机生成订单id
//随机生成订单id
String
orderId
=
RandomStringUtil
.
randomNumber
(
3
,
""
);
String
orderId
=
RandomStringUtil
.
randomNumber
(
6
,
""
);
JSONObject
object
=
new
JSONObject
();
JSONObject
object
=
new
JSONObject
();
object
.
put
(
"orderId"
,
orderId
);
object
.
put
(
"orderId"
,
orderId
);
...
@@ -46,6 +46,7 @@ public class TestGetSmsRechargeOrderStatus extends XMBaseTest {
...
@@ -46,6 +46,7 @@ public class TestGetSmsRechargeOrderStatus extends XMBaseTest {
//调用请求
//调用请求
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
object
.
toJSONString
(),
headers
);
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
object
.
toJSONString
(),
headers
);
boolean
flag
=
Boolean
.
parseBoolean
(
XMJSONPath
.
readPath
(
xmAppApi
.
getBodyInJSON
(),
"$.success"
));
boolean
flag
=
Boolean
.
parseBoolean
(
XMJSONPath
.
readPath
(
xmAppApi
.
getBodyInJSON
(),
"$.success"
));
if
(
flag
==
false
){
if
(
flag
==
false
){
Assert
.
assertEquals
(
XMJSONPath
.
readPath
(
xmAppApi
.
getBodyInJSON
(),
"$.message"
),
"充值订单不存在"
);
Assert
.
assertEquals
(
XMJSONPath
.
readPath
(
xmAppApi
.
getBodyInJSON
(),
"$.message"
),
"充值订单不存在"
);
}
else
{
}
else
{
...
...
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