Skip to content

Commit a77bd3c

Browse files
committed
fix: fix history page display
1 parent 7802f5a commit a77bd3c

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

console/atest-ui/src/views/TestCase.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ function setTestCaseWithSuite(e, suite) {
401401
suiteName: suite,
402402
data: e
403403
} as TestCaseWithSuite;
404+
if (isHistoryTestCase.value == true){ testCaseWithSuite.value.data.request.api = `${testCaseWithSuite.value.data.suiteApi}${testCaseWithSuite.value.data.request.api}` }
404405
}
405406
406407
load()

pkg/server/remote_server.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,6 @@ func (s *server) Run(ctx context.Context, task *TestTask) (reply *TestResult, er
281281
loader := s.getLoader(ctx)
282282
defer loader.Close()
283283
for _, testCaseResult := range reply.TestCaseResult {
284-
for i, item := range suite.Items {
285-
suite.Items[i].Request.API = fmt.Sprintf("%s/%s", suite.API, item.Request.API)
286-
}
287284
err = loader.CreateHistoryTestCase(ToNormalTestCaseResult(testCaseResult), suite)
288285
if err != nil {
289286
remoteServerLogger.Info("error create history")

0 commit comments

Comments
 (0)