Line 117: | Line 117: | ||
function showClassDetail1(cid, count) { | function showClassDetail1(cid, count) { | ||
var id_list = Array(count); | var id_list = Array(count); | ||
− | var | + | var toHide1 = 1; |
for (var i = 0; i < count; i++) { | for (var i = 0; i < count; i++) { | ||
tid0 = 'a' + cid.substr(1) + '.' + (i+1); | tid0 = 'a' + cid.substr(1) + '.' + (i+1); | ||
Line 128: | Line 128: | ||
id_list[i] = tid; | id_list[i] = tid; | ||
if (tr.className) { | if (tr.className) { | ||
− | + | toHide1 = 0; | |
} | } | ||
} | } | ||
for (var i = 0; i < count; i++) { | for (var i = 0; i < count; i++) { | ||
tid = id_list[i]; | tid = id_list[i]; | ||
− | if ( | + | if (toHide1) { |
document.getElementById('div_'+tid).style.display = 'none' | document.getElementById('div_'+tid).style.display = 'none' | ||
document.getElementById(tid).className = 'hiddenRow'; | document.getElementById(tid).className = 'hiddenRow'; | ||
Line 145: | Line 145: | ||
function showClassDetail2(cid, count) { | function showClassDetail2(cid, count) { | ||
var id_list = Array(count); | var id_list = Array(count); | ||
− | var | + | var toHide2 = 1; |
for (var i = 0; i < count; i++) { | for (var i = 0; i < count; i++) { | ||
tid0 = 'b' + cid.substr(1) + '.' + (i+1); | tid0 = 'b' + cid.substr(1) + '.' + (i+1); | ||
Line 156: | Line 156: | ||
id_list[i] = tid; | id_list[i] = tid; | ||
if (tr.className) { | if (tr.className) { | ||
− | + | toHide2 = 0; | |
} | } | ||
} | } | ||
for (var i = 0; i < count; i++) { | for (var i = 0; i < count; i++) { | ||
tid = id_list[i]; | tid = id_list[i]; | ||
− | if ( | + | if (toHide2) { |
document.getElementById('div_'+tid).style.display = 'none' | document.getElementById('div_'+tid).style.display = 'none' | ||
document.getElementById(tid).className = 'hiddenRow'; | document.getElementById(tid).className = 'hiddenRow'; | ||
Line 173: | Line 173: | ||
function showClassDetail3(cid, count) { | function showClassDetail3(cid, count) { | ||
var id_list = Array(count); | var id_list = Array(count); | ||
− | var | + | var toHide3 = 1; |
for (var i = 0; i < count; i++) { | for (var i = 0; i < count; i++) { | ||
tid0 = 'c' + cid.substr(1) + '.' + (i+1); | tid0 = 'c' + cid.substr(1) + '.' + (i+1); | ||
Line 184: | Line 184: | ||
id_list[i] = tid; | id_list[i] = tid; | ||
if (tr.className) { | if (tr.className) { | ||
− | + | toHide3 = 0; | |
} | } | ||
} | } | ||
for (var i = 0; i < count; i++) { | for (var i = 0; i < count; i++) { | ||
tid = id_list[i]; | tid = id_list[i]; | ||
− | if ( | + | if (toHide3) { |
document.getElementById('div_'+tid).style.display = 'none' | document.getElementById('div_'+tid).style.display = 'none' | ||
document.getElementById(tid).className = 'hiddenRow'; | document.getElementById(tid).className = 'hiddenRow'; | ||
Line 201: | Line 201: | ||
function showClassDetail4(cid, count) { | function showClassDetail4(cid, count) { | ||
var id_list = Array(count); | var id_list = Array(count); | ||
− | var | + | var toHide4 = 1; |
for (var i = 0; i < count; i++) { | for (var i = 0; i < count; i++) { | ||
tid0 = 'd' + cid.substr(1) + '.' + (i+1); | tid0 = 'd' + cid.substr(1) + '.' + (i+1); | ||
Line 212: | Line 212: | ||
id_list[i] = tid; | id_list[i] = tid; | ||
if (tr.className) { | if (tr.className) { | ||
− | + | toHide4 = 0; | |
} | } | ||
} | } | ||
for (var i = 0; i < count; i++) { | for (var i = 0; i < count; i++) { | ||
tid = id_list[i]; | tid = id_list[i]; | ||
− | if ( | + | if (toHide4) { |
document.getElementById('div_'+tid).style.display = 'none' | document.getElementById('div_'+tid).style.display = 'none' | ||
document.getElementById(tid).className = 'hiddenRow'; | document.getElementById(tid).className = 'hiddenRow'; | ||
Line 229: | Line 229: | ||
function showClassDetai5(cid, count) { | function showClassDetai5(cid, count) { | ||
var id_list = Array(count); | var id_list = Array(count); | ||
− | var | + | var toHide5 = 1; |
for (var i = 0; i < count; i++) { | for (var i = 0; i < count; i++) { | ||
tid0 = 'e' + cid.substr(1) + '.' + (i+1); | tid0 = 'e' + cid.substr(1) + '.' + (i+1); | ||
Line 240: | Line 240: | ||
id_list[i] = tid; | id_list[i] = tid; | ||
if (tr.className) { | if (tr.className) { | ||
− | + | toHide5 = 0; | |
} | } | ||
} | } | ||
for (var i = 0; i < count; i++) { | for (var i = 0; i < count; i++) { | ||
tid = id_list[i]; | tid = id_list[i]; | ||
− | if ( | + | if (toHide5) { |
document.getElementById('div_'+tid).style.display = 'none' | document.getElementById('div_'+tid).style.display = 'none' | ||
document.getElementById(tid).className = 'hiddenRow'; | document.getElementById(tid).className = 'hiddenRow'; |
Revision as of 20:34, 25 October 2017
Unit Test 1
Start Time: 2017-10-05 23:50:48Duration: 0:00:11.468128
Status: Pass 6
Test Group/Test case | Count | Pass | Fail | Error | View |
Test | 6 | 6 | 0 | 0 | Detail |
test_randomPage |
pass
pt1.1: |
||||
test_randomPageWiththeme |
pass
pt1.2: |
||||
test_TurnPage |
pass
pt1.3: |
||||
test_getCache |
pass
pt1.4: |
||||
test_getDetailNone |
pass
pt1.5: |
||||
test_getDetail |
pass
pt1.6: |
||||
Total | 6 | 6 | 0 | 0 |
Unit Test 2
Start Time: 2017-10-05 23:50:53Duration: 0:00:00.443314
Status: Pass 10
Test Group/Test case | Count | Pass | Fail | Error | View |
Test | 10 | 10 | 0 | 0 | Detail |
test_getTeamIdExist |
pass
pt1.1: |
||||
test_getTeamIdNone |
pass
pt1.2: |
||||
test_getdetailbyidExist |
pass
pt1.3: |
||||
test_getdetailbyidFail |
pass
pt1.4: |
||||
test_getPartTeam1 |
pass
pt1.5: |
||||
test_getPartTeam2 |
pass
pt1.6: |
||||
test_getTeamWiki |
pass
pt1.7: |
||||
test_getTeamWikiFailOne |
pass
pt1.8: |
||||
test_getPartDetailExist |
pass
pt1.9: |
||||
test_getPartDetailNone |
pass
pt1.10: |
||||
Total | 10 | 10 | 0 | 0 |
Unit Test 3
Start Time: 2017-10-07 01:29:23Duration: 0:00:08.978347
Status: Pass 3
Test Group/Test case | Count | Pass | Fail | Error | View |
Test | 3 | 3 | 0 | 0 | Detail |
test_changePassword |
pass
pt1.1: |
||||
test_changePasswordError |
pass
pt1.2: |
||||
test_diffPassword |
pass
pt1.3: |
||||
Total | 3 | 3 | 0 | 0 |
Unit Test 4
Start Time: 2017-10-07 01:30:31Duration: 0:00:09.161845
Status: Pass 9
Test Group/Test case | Count | Pass | Fail | Error | View |
Test | 9 | 9 | 0 | 0 | Detail |
test_registerSucc |
pass
pt1.1: |
||||
test_registerNoUsername |
pass
pt1.2: |
||||
test_registerNoEmail |
pass
pt1.3: |
||||
test_registerUsername |
pass
pt1.4: |
||||
test_registerEmail |
pass
pt1.5: |
||||
test_passwordError |
pass
pt1.6: |
||||
test_rightLogin |
pass
pt1.7: |
||||
test_wrongUser |
pass
pt1.8: |
||||
test_loginFaile |
pass
pt1.9: |
||||
Total | 9 | 9 | 0 | 0 |
Unit Test 5
Start Time: 2017-10-09 02:23:46Duration: 0:00:03.104095
Status: Pass 6
Test Group/Test case | Count | Pass | Fail | Error | View |
searchRelationTestCase | 6 | 6 | 0 | 0 | Detail |
test_search_relation |
pass
pt1.1: |
||||
test_search_genes |
pass
pt1.2: |
||||
test_search_papers |
pass | ||||
test_search_one_sentence |
pass | ||||
test_search_three_sentence |
pass | ||||
test_search_related_disease |
pass | ||||
Total | 6 | 6 | 0 | 0 |