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
7351480c
Commit
7351480c
authored
Oct 16, 2018
by
马博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
fdeb0172
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
255 deletions
+23
-255
DuibaReporter.java
src/test/java/base/DuibaReporter.java
+0
-255
TestListener.java
src/test/java/base/TestListener.java
+3
-0
http1_Test.java
src/test/java/http/cases/http1_Test.java
+20
-0
No files found.
src/test/java/base/DuibaReporter.java
deleted
100644 → 0
View file @
fdeb0172
This diff is collapsed.
Click to expand it.
src/test/java/base/TestListener.java
View file @
7351480c
...
@@ -19,9 +19,11 @@ public class TestListener implements ITestListener {
...
@@ -19,9 +19,11 @@ public class TestListener implements ITestListener {
ITestNGMethod
method
=
failedTest
.
getMethod
();
ITestNGMethod
method
=
failedTest
.
getMethod
();
if
(
context
.
getFailedTests
().
getResults
(
method
).
size
()
>
1
)
{
if
(
context
.
getFailedTests
().
getResults
(
method
).
size
()
>
1
)
{
listOfFailedTests
.
remove
();
listOfFailedTests
.
remove
();
logger
.
info
(
"context.getFailedTests().getResults(method).size() > 1"
);
}
else
{
}
else
{
if
(
context
.
getPassedTests
().
getResults
(
method
).
size
()
>
0
)
{
if
(
context
.
getPassedTests
().
getResults
(
method
).
size
()
>
0
)
{
listOfFailedTests
.
remove
();
listOfFailedTests
.
remove
();
logger
.
info
(
"context.getPassedTests().getResults(method).size() > 0"
);
}
}
}
}
}
}
...
@@ -52,5 +54,6 @@ public class TestListener implements ITestListener {
...
@@ -52,5 +54,6 @@ public class TestListener implements ITestListener {
public
void
onStart
(
ITestContext
context
)
{
public
void
onStart
(
ITestContext
context
)
{
// TODO Auto-generated method stub
// TODO Auto-generated method stub
logger
.
info
(
"onStart~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
);
}
}
}
}
\ No newline at end of file
src/test/java/http/cases/http1_Test.java
View file @
7351480c
...
@@ -14,6 +14,9 @@ import java.sql.ResultSetMetaData;
...
@@ -14,6 +14,9 @@ import java.sql.ResultSetMetaData;
import
java.sql.SQLException
;
import
java.sql.SQLException
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.Map
;
import
java.util.Map
;
import
java.util.concurrent.ExecutorService
;
import
java.util.concurrent.Executors
;
import
java.util.concurrent.ThreadPoolExecutor
;
/**
/**
* Created by mabo on 2018/9/30
* Created by mabo on 2018/9/30
...
@@ -86,6 +89,23 @@ public class http1_Test extends DuibaBase {
...
@@ -86,6 +89,23 @@ public class http1_Test extends DuibaBase {
// MysqlUtils sql = new MysqlUtils();
// MysqlUtils sql = new MysqlUtils();
// Map<String,Object> map = sql.findSimpleResultBybds("select * from dafuweng.user where id=2709");
// Map<String,Object> map = sql.findSimpleResultBybds("select * from dafuweng.user where id=2709");
// System.out.println("hello");
// System.out.println("hello");
ExecutorService
tp
=
Executors
.
newFixedThreadPool
(
100
);
int
i
=
0
;
while
(
i
<
100
){
tp
.
execute
(
new
Runnable
()
{
@Override
public
void
run
()
{
try
{
Thread
.
sleep
(
1000
);
}
catch
(
InterruptedException
e
)
{
e
.
printStackTrace
();
}
System
.
out
.
println
(
Thread
.
currentThread
().
getName
());
}
});
i
--;
}
...
...
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