Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
holmes
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
QA
holmes
Commits
bfba25e9
Commit
bfba25e9
authored
Mar 26, 2021
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口自动化
parent
dbbc3af8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
65 additions
and
0 deletions
+65
-0
pom.xml
pom.xml
+7
-0
SingleTestcaseExecution.java
...ain/java/cn/qg/holmes/common/SingleTestcaseExecution.java
+29
-0
Testcase.java
src/main/java/cn/qg/holmes/entity/auto/Testcase.java
+29
-0
No files found.
pom.xml
View file @
bfba25e9
...
@@ -116,6 +116,13 @@
...
@@ -116,6 +116,13 @@
<version>
4.4
</version>
<version>
4.4
</version>
</dependency>
</dependency>
<!-- https://mvnrepository.com/artifact/org.testng/testng -->
<dependency>
<groupId>
org.testng
</groupId>
<artifactId>
testng
</artifactId>
<version>
7.3.0
</version>
</dependency>
</dependencies>
</dependencies>
<build>
<build>
...
...
src/main/java/cn/qg/holmes/common/SingleTestcaseExecution.java
0 → 100644
View file @
bfba25e9
package
cn
.
qg
.
holmes
.
common
;
import
cn.qg.holmes.entity.auto.Testcase
;
import
org.testng.annotations.AfterClass
;
import
org.testng.annotations.BeforeClass
;
import
org.testng.annotations.Test
;
/**
* 单接口用例执行器
* @author libo
*/
public
class
SingleTestcaseExecution
{
Testcase
testcase
;
SingleTestcaseExecution
(
Testcase
testcase
)
{
this
.
testcase
=
testcase
;
}
@BeforeClass
()
public
void
beforeClass
()
{}
@Test
public
void
executeTestcase
()
{}
@AfterClass
()
public
void
afterClass
()
{}
}
src/main/java/cn/qg/holmes/entity/auto/Testcase.java
0 → 100644
View file @
bfba25e9
package
cn
.
qg
.
holmes
.
entity
.
auto
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.Data
;
import
java.util.Date
;
/**
* 单接口用例实体类
*/
@TableName
(
"testcase"
)
@Data
public
class
Testcase
{
@TableId
(
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
Integer
interfaceId
;
private
String
preAction
;
private
String
postAction
;
private
String
headers
;
private
String
parameter
;
private
String
validate
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
createTime
;
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
private
Date
updateTime
;
}
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