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
1d30bd83
Commit
1d30bd83
authored
Apr 13, 2024
by
xyy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
短信管理case
parent
2d7e6f3f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
1 deletions
+42
-1
src/main/java/com/xiaomai/cases/polar/config/TestCurrentUser.java
+40
-1
src/main/java/com/xiaomai/cases/polar/config/TestGetTenantSmsRecordPage.java
+2
-0
No files found.
src/main/java/com/xiaomai/cases/polar/config/TestCurrentUser.java
View file @
1d30bd83
package
com
.
xiaomai
.
cases
.
polar
.
config
;
package
com
.
xiaomai
.
cases
.
polar
.
config
;
public
class
TestCurrentUser
{
import
com.alibaba.fastjson.JSONObject
;
import
com.xiaomai.enums.ApiModule
;
import
com.xiaomai.enums.LoginAccount
;
import
com.xiaomai.enums.RequestType
;
import
com.xiaomai.enums.Terminal
;
import
com.xiaomai.utils.XMJSONPath
;
import
org.testng.Assert
;
import
org.testng.annotations.BeforeMethod
;
import
org.testng.annotations.Test
;
import
com.xiaomai.utils.XMBaseTest
;
/**
* @Author: xyy
* @CreateTime: 2024-04-13 11:48
* @Description:获取当前使用者
* @Version: 1.0
*/
public
class
TestCurrentUser
extends
XMBaseTest
{
@BeforeMethod
public
void
beforeTest
(){
xmAppApi
.
setApiModule
(
ApiModule
.
Polar_Config
)
.
setApiName
(
"API_currentUser"
)
.
setLoginUser
(
LoginAccount
.
YFF_DEV
)
.
setTerminal
(
Terminal
.
B
);
dal
.
setCase_owner
(
"xyy"
)
.
setCase_name
(
Thread
.
currentThread
().
getStackTrace
()[
1
].
getFileName
().
split
(
"\\."
)[
0
]);
super
.
beforeTest
();
}
@Test
(
description
=
"获取当前使用者"
)
public
void
testCurrentUser
(){
xmAppApi
.
doRequest
(
RequestType
.
JSON
,
params
,
"{}"
,
headers
).
assetsSuccess
(
true
);
JSONObject
response
=
xmAppApi
.
getBodyInJSON
();
Assert
.
assertEquals
(
XMJSONPath
.
readPath
(
response
,
"$.message"
),
"操作成功!"
);
Assert
.
assertTrue
(
response
.
getJSONArray
(
"result"
).
size
()
>=
0
);
}
}
}
src/main/java/com/xiaomai/cases/polar/config/TestGetTenantSmsRecordPage.java
View file @
1d30bd83
...
@@ -36,6 +36,8 @@ public class TestGetTenantSmsRecordPage extends XMBaseTest {
...
@@ -36,6 +36,8 @@ public class TestGetTenantSmsRecordPage extends XMBaseTest {
JSONObject
object
=
new
JSONObject
();
JSONObject
object
=
new
JSONObject
();
object
.
put
(
"current"
,
0
);
object
.
put
(
"current"
,
0
);
object
.
put
(
"size"
,
20
);
object
.
put
(
"size"
,
20
);
object
.
put
(
"beginTime"
,
null
);
object
.
put
(
"endTime"
,
null
);
object
.
put
(
"msgTypes"
,
null
);
object
.
put
(
"msgTypes"
,
null
);
object
.
put
(
"studioId"
,
xmAppApi
.
getLoginInfo
().
getStudioId
());
object
.
put
(
"studioId"
,
xmAppApi
.
getLoginInfo
().
getStudioId
());
...
...
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