Skip to content

Commit 55d469c

Browse files
committed
APIAuto: 解决回归测试场景串联及切换帐号查看结果时用例与帐号关联错误
1 parent 1420413 commit 55d469c

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

  • APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/api/js

‎APIJSON-Java-Server/APIJSONBoot-MultiDataSource/src/main/resources/static/api/js/main.js‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2588,8 +2588,8 @@ https://github.com/Tencent/APIJSON/issues
25882588
for (var i = 0; i < accounts.length; i ++) {
25892589
var acc = accounts[i]
25902590
if (acc != null && (acc.id == chain.testAccountId || ( acc.baseUrl = testInfo.baseUrl && (
2591-
(StringUtil.isNotEmpty(item.phone) && acc.phone == testInfo.phone)
2592-
|| (StringUtil.isNotEmpty(item.email) && acc.email == testInfo.email) )
2591+
(StringUtil.isNotEmpty(acc.phone) && acc.phone == testInfo.phone)
2592+
|| (StringUtil.isNotEmpty(acc.email) && acc.email == testInfo.email) )
25932593
))) {
25942594
this.currentAccountIndex = i
25952595
acc.isLoggedIn = true
@@ -4778,7 +4778,7 @@ https://github.com/Tencent/APIJSON/issues
47784778
var hasTests = JSONObject.isEmpty(tests) != true
47794779
if (hasTests || this.isChainShow || (reportId != null && reportId >= 0)) {
47804780

4781-
const lastAccountIndex = this.currentAccountIndex || 0
4781+
const lastAccountIndex = accountIndex || 0
47824782

47834783
for (var i = 0; i < allCount; i++) {
47844784
var item = testCases[i]
@@ -4796,11 +4796,11 @@ https://github.com/Tencent/APIJSON/issues
47964796
for (var i = 0; i < accounts.length; i ++) {
47974797
var acc = accounts[i]
47984798
if (acc != null && (acc.id == chain.testAccountId || ( acc.baseUrl = testInfo.baseUrl && (
4799-
(StringUtil.isNotEmpty(item.phone) && acc.phone == testInfo.phone)
4800-
|| (StringUtil.isNotEmpty(item.email) && acc.email == testInfo.email) )
4799+
(StringUtil.isNotEmpty(acc.phone) && acc.phone == testInfo.phone)
4800+
|| (StringUtil.isNotEmpty(acc.email) && acc.email == testInfo.email) )
48014801
))) {
48024802
if (! map[chain.testAccountId]) {
4803-
this.currentAccountIndex = i
4803+
accountIndex = i
48044804
acc.isLoggedIn = true
48054805
}
48064806

@@ -4821,7 +4821,7 @@ https://github.com/Tencent/APIJSON/issues
48214821
}
48224822
map[chain.testAccountId] = true
48234823

4824-
this.currentAccountIndex = lastAccountIndex || 0
4824+
accountIndex = lastAccountIndex || 0
48254825
curAccount.isLoggedIn = isLoggedIn
48264826
}
48274827

@@ -5315,7 +5315,7 @@ https://github.com/Tencent/APIJSON/issues
53155315
App.allCount = allCount
53165316
if (allCount > 0) {
53175317
if (! (this.isAllSummaryShow() || this.isCurrentSummaryShow())) {
5318-
this.showCompare4TestCaseList(show)
5318+
this.showCompare4TestCaseList(show, this.isChainShow)
53195319
}
53205320
return;
53215321
}
@@ -10921,11 +10921,11 @@ Content-Type: ` + contentType) + (StringUtil.isEmpty(headerStr, true) ? '' : hea
1092110921
for (var i = 0; i < accounts.length; i ++) {
1092210922
var acc = accounts[i]
1092310923
if (acc != null && (acc.id == chain.testAccountId || ( acc.baseUrl = testInfo.baseUrl && (
10924-
(StringUtil.isNotEmpty(item.phone) && acc.phone == testInfo.phone)
10925-
|| (StringUtil.isNotEmpty(item.email) && acc.email == testInfo.email) )
10924+
(StringUtil.isNotEmpty(acc.phone) && acc.phone == testInfo.phone)
10925+
|| (StringUtil.isNotEmpty(acc.email) && acc.email == testInfo.email) )
1092610926
))) {
1092710927
if (! map[chain.testAccountId]) {
10928-
this.currentAccountIndex = i
10928+
// this.currentAccountIndex = i
1092910929
acc.isLoggedIn = true
1093010930
}
1093110931

@@ -10947,7 +10947,7 @@ Content-Type: ` + contentType) + (StringUtil.isEmpty(headerStr, true) ? '' : hea
1094710947
map[chain.testAccountId] = true
1094810948
}
1094910949

10950-
this.currentAccountIndex = lastAccountIndex || 0
10950+
// this.currentAccountIndex = lastAccountIndex || 0
1095110951
curAccount.isLoggedIn = isLoggedIn
1095210952
}
1095310953

@@ -11882,8 +11882,8 @@ Content-Type: ` + contentType) + (StringUtil.isEmpty(headerStr, true) ? '' : hea
1188211882
for (var i = 0; i < accounts.length; i ++) {
1188311883
var acc = accounts[i]
1188411884
if (acc != null && (acc.id == testAccountId || ( acc.baseUrl = testInfo.baseUrl && (
11885-
(StringUtil.isNotEmpty(item.phone) && acc.phone == testInfo.phone)
11886-
|| (StringUtil.isNotEmpty(item.email) && acc.email == testInfo.email) )
11885+
(StringUtil.isNotEmpty(acc.phone) && acc.phone == testInfo.phone)
11886+
|| (StringUtil.isNotEmpty(acc.email) && acc.email == testInfo.email) )
1188711887
))) {
1188811888
chain.testAccountId = acc.id
1188911889
this.currentAccountIndex = i

0 commit comments

Comments
 (0)