Difference between revisions of "Team:HFUT-China/Unit Test"

Line 256: Line 256:
  
  
function showTestDetail(div_id){
+
function showTestDetail1(div_id){
 
     var details_div = document.getElementById(div_id)
 
     var details_div = document.getElementById(div_id)
 
     var displayState = details_div.style.display
 
     var displayState = details_div.style.display
Line 269: Line 269:
 
}
 
}
  
 +
function showTestDetail2(div_id){
 +
    var details_div = document.getElementById(div_id)
 +
    var displayState = details_div.style.display
 +
    // alert(displayState)
 +
    if (displayState != 'block' ) {
 +
        displayState = 'block'
 +
        details_div.style.display = 'block'
 +
    }
 +
    else {
 +
        details_div.style.display = 'none'
 +
    }
 +
}
 +
 +
function showTestDetail3(div_id){
 +
    var details_div = document.getElementById(div_id)
 +
    var displayState = details_div.style.display
 +
    // alert(displayState)
 +
    if (displayState != 'block' ) {
 +
        displayState = 'block'
 +
        details_div.style.display = 'block'
 +
    }
 +
    else {
 +
        details_div.style.display = 'none'
 +
    }
 +
}
 +
 +
function showTestDetail4(div_id){
 +
    var details_div = document.getElementById(div_id)
 +
    var displayState = details_div.style.display
 +
    // alert(displayState)
 +
    if (displayState != 'block' ) {
 +
        displayState = 'block'
 +
        details_div.style.display = 'block'
 +
    }
 +
    else {
 +
        details_div.style.display = 'none'
 +
    }
 +
}
 +
 +
function showTestDetail5(div_id){
 +
    var details_div = document.getElementById(div_id)
 +
    var displayState = details_div.style.display
 +
    // alert(displayState)
 +
    if (displayState != 'block' ) {
 +
        displayState = 'block'
 +
        details_div.style.display = 'block'
 +
    }
 +
    else {
 +
        details_div.style.display = 'none'
 +
    }
 +
}
  
 
function html_escape(s) {
 
function html_escape(s) {
Line 387: Line 438:
  
 
     <!--css div popup start-->
 
     <!--css div popup start-->
     <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt1.1')" >
+
     <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail1('div_pt1.1')" >
 
         pass</a>
 
         pass</a>
  
Line 411: Line 462:
  
 
     <!--css div popup start-->
 
     <!--css div popup start-->
     <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt1.2')" >
+
     <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail2('div_pt1.2')" >
 
         pass</a>
 
         pass</a>
  
Line 435: Line 486:
  
 
     <!--css div popup start-->
 
     <!--css div popup start-->
     <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt1.3')" >
+
     <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail3('div_pt1.3')" >
 
         pass</a>
 
         pass</a>
  
Line 459: Line 510:
  
 
     <!--css div popup start-->
 
     <!--css div popup start-->
     <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt1.4')" >
+
     <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail4('div_pt1.4')" >
 
         pass</a>
 
         pass</a>
  
Line 483: Line 534:
  
 
     <!--css div popup start-->
 
     <!--css div popup start-->
     <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt1.5')" >
+
     <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail5('div_pt1.5')" >
 
         pass</a>
 
         pass</a>
  

Revision as of 20:37, 25 October 2017

Team:HFUT-China

Unit Test 1

Start Time: 2017-10-05 23:50:48
Duration: 0:00:11.468128
Status: Pass 6
Show Summary Failed All
Test Group/Test case Count Pass Fail Error View
Test 6 6 0 0 Detail
test_randomPage
pass
test_randomPageWiththeme
pass
test_TurnPage
pass
test_getCache
pass
test_getDetailNone
pass
test_getDetail
pass
Total 6 6 0 0  
 

Unit Test 2

Start Time: 2017-10-05 23:50:53
Duration: 0:00:00.443314
Status: Pass 10
Show Summary Failed All
Test Group/Test case Count Pass Fail Error View
Test 10 10 0 0 Detail
test_getTeamIdExist
pass
test_getTeamIdNone
pass
test_getdetailbyidExist
pass
test_getdetailbyidFail
pass
test_getPartTeam1
pass
test_getPartTeam2
pass
test_getTeamWiki
pass
test_getTeamWikiFailOne
pass
test_getPartDetailExist
pass
test_getPartDetailNone
pass
Total 10 10 0 0  
 

Unit Test 3

Start Time: 2017-10-07 01:29:23
Duration: 0:00:08.978347
Status: Pass 3
Show Summary Failed All
Test Group/Test case Count Pass Fail Error View
Test 3 3 0 0 Detail
test_changePassword
pass
test_changePasswordError
pass
test_diffPassword
pass
Total 3 3 0 0  
 

Unit Test 4

Start Time: 2017-10-07 01:30:31
Duration: 0:00:09.161845
Status: Pass 9
Show Summary Failed All
Test Group/Test case Count Pass Fail Error View
Test 9 9 0 0 Detail
test_registerSucc
pass
test_registerNoUsername
pass
test_registerNoEmail
pass
test_registerUsername
pass
test_registerEmail
pass
test_passwordError
pass
test_rightLogin
pass
test_wrongUser
pass
test_loginFaile
pass
Total 9 9 0 0  
 

Unit Test 5

Start Time: 2017-10-09 02:23:46
Duration: 0:00:03.104095
Status: Pass 6
Show Summary Failed All
Test Group/Test case Count Pass Fail Error View
searchRelationTestCase 6 6 0 0 Detail
test_search_relation
pass
test_search_genes
pass
test_search_papers
pass
test_search_one_sentence
pass
test_search_three_sentence
pass
test_search_related_disease
pass
Total 6 6 0 0