예제 #1
0
def warning_02():
    """
    @goal : -
    @coverage : -
    """
    test.warning("")
    test.assert_true(True, "")
예제 #2
0
def warning_03():
    """
    @goal : -
    @coverage : -
    """    
    test.warning("")
    test.assert_true(False, "")
예제 #3
0
def check_io():

    for i in range(0, 32):
        test.trace_script("Loop %d" % i)
        echo.send("AABB%d" % i)
        rx = echo.receive()
        test.assert_true(rx == "AABB%d" % i)
예제 #4
0
def defaultValue():
    """
    @goal : -
    @coverage : -
    """
    test.assert_true_fatal(1 == 2, "1==2")
    test.assert_true(1 == 1, "1==1")
예제 #5
0
def defaultValue():
    """
    @goal : -
    @coverage : -
    """
    test.assert_true_fatal(1==2, "1==2")
    test.assert_true(1==1, "1==1")
예제 #6
0
def check_io():
    
    for i in range(0,32):
        test.trace_script("Loop %d" % i)
        echo.send("AABB%d" % i)
        rx = echo.receive()
        test.assert_true(rx=="AABB%d" % i)
예제 #7
0
def warning_02():
    """
    @goal : -
    @coverage : -
    """    
    test.warning("")
    test.assert_true(True, "")
예제 #8
0
def warning_03():
    """
    @goal : -
    @coverage : -
    """
    test.warning("")
    test.assert_true(False, "")
예제 #9
0
def loop():
    """
    @goal : -
    @coverage : -
    """
    test.assert_equal(1, 1, "equal")
    for i in range(0, 10):
        test.assert_true(1 == 1, "1==1")
        time.sleep(0.01)
예제 #10
0
def loop():
    """
    @goal : -
    @coverage : -
    """
    test.assert_equal(1, 1, "equal")
    for i in range(0,10):
        test.assert_true(1==1, "1==1")
        time.sleep(0.01)
예제 #11
0
def case_02():
    """
    @goal        :: Perform some basic request :
                     - bound value
                     - error value
    @coverage    :: 
    @warning     :: 
    """
    test.assert_true(1==1, "1==1")
    test.assert_true(1==1, "1==1")
예제 #12
0
def case_01():
    """
    @goal        :: Perform some basic request :
                     - bound value
                     - error value
    @coverage    :: <id551516>
                    <id551544>
                    <id559118>
    @warning     :: 
    """
    test.assert_true(1==1, "1==1")
예제 #13
0
def t4():
    """
    @goal : -
    @coverage : -
    """

    uedi = test.get_uedi()

    test.assert_equal(test.get_trace_filename(), None)

    test.add_trace(["txt"])

    filename = test.get_trace_filename()

    test.assert_true(filename.endswith("%s.pyt" % uedi))
예제 #14
0
def boundValue():
    test.trace_script("No wait")
    test.assert_true(1 == 1, "")
    test.assert_true(1 == 1, "1==1")
    test.assert_true(1 == 2, "1==2")
    test.assert_true(1 == 1, "1==1")
    test.trace_script("Easy trace")
    pass
예제 #15
0
def boundValue():
    test.trace_script("No wait")
    test.assert_true(1==1, "")
    test.assert_true(1==1, "1==1")
    test.assert_true(1==2, "1==2")
    test.assert_true(1==1, "1==1")
    test.trace_script("Easy trace")
    pass
예제 #16
0
def t4():
    """
    @goal : -
    @coverage : -
    """    
    
    uedi = test.get_uedi()
    
    
    
    test.assert_equal(test.get_trace_filename(), None)
    
    test.add_trace(["txt"])
    
    filename = test.get_trace_filename()
    
    
    test.assert_true(filename.endswith("%s.pyt" % uedi))
예제 #17
0
def boundValue():
    """
    @goal : -
    @coverage : -
    """
    test.trace_script("No wait")
    test.assert_true(1 == 1, "")
    test.assert_true(1 == 1, "1==1")
    test.assert_true(1 == 2, "1==2")
    test.assert_true(1 == 1, "1==1")
    test.trace_script("Easy trace")
예제 #18
0
def boundValue():
    """
    @goal : -
    @coverage : -
    """    
    test.trace_script("No wait")
    test.assert_true(1==1, "")
    test.assert_true(1==1, "1==1")
    test.assert_true(1==2, "1==2")
    test.assert_true(1==1, "1==1")
    test.trace_script("Easy trace")
예제 #19
0
def case_assert_true():
    """
    @goal : -
    @coverage : -
    """
    test.assert_true(1==1)
    test.assert_true(1==2)
    test.assert_true(1==1, "1==1")
    test.assert_true(1==2, "1==2")
    
    test.assert_true_fatal(1==1)
    test.assert_true_fatal(1==1, "1==1")
    test.assert_true_fatal(1==2, "1==2")
예제 #20
0
def case_assert_true():
    """
    @goal : -
    @coverage : -
    """
    test.assert_true(1 == 1)
    test.assert_true(1 == 2)
    test.assert_true(1 == 1, "1==1")
    test.assert_true(1 == 2, "1==2")

    test.assert_true_fatal(1 == 1)
    test.assert_true_fatal(1 == 1, "1==1")
    test.assert_true_fatal(1 == 2, "1==2")
예제 #21
0
def case_msg_int():
    test.assert_true(1==1, 1)
예제 #22
0
def case_01():
    test.assert_true(True)
    test.fail_fatal("")
    test.assert_true(True)
예제 #23
0
def case_01():
    test.assert_true(1 == 1, "1==1")
예제 #24
0
def case_03():
    test.assert_true(True)
예제 #25
0
def defaultValue():
    test.assert_true(1 == 1, "1==1")
예제 #26
0
def loop():
    
    for i in range(0,10):
        test.assert_true(1==1, "1==1 loop:%d" % i)
        time.sleep(0.01)
예제 #27
0
def level_3():
    test.assert_true(1==2, "1==1")
예제 #28
0
def case_03():
    test.assert_true(True)
예제 #29
0
def case_10():
    test.assert_true(1==1, "1==1")
    test.assert_true(1==2, "1==2")
예제 #30
0
def case_01():
    test.assert_true(True)
    test.fail_fatal("")
    test.assert_true(True)
예제 #31
0
def case_01():
    test.assert_true(1==1, "1==1")
예제 #32
0
def case_02():
    test.assert_true(1 == 1, "1==1")
    test.assert_true(1 == 2, "1==2")
예제 #33
0
def level_3():
    test.assert_true(1 == 2, "1==1")
예제 #34
0
def case_02():
    test.assert_true(True, "")
    gen()
예제 #35
0
def defaultValue():
    test.assert_true(1==1, "1==1")
예제 #36
0
def boundValue():
    test.assert_true(1==1, "1==1")
    test.assert_true(1==1, "1==1")
예제 #37
0
def defaultValue():
    test.assert_equal(1, 1)
    test.assert_true(1==1, "1==1")
예제 #38
0
def case_msg_txt():
    test.assert_true(1==1, "1==1")
예제 #39
0
def loop():

    for i in range(0, 10):
        test.assert_true(1 == 1, "1==1 loop:%d" % i)
        time.sleep(0.01)
예제 #40
0
def defaultValue():
    test.assert_equal(
        1,
        4,
    )
    test.assert_true(1 == 1, "1==1")
예제 #41
0
def test_assert():
    for itm in vector:
        test.assert_true(True,  itm)
        test.assert_true(False, itm)
        test.success(itm)
예제 #42
0
def defaultValue():
    test.assert_true_fatal(1 == 2, "1==2")
    test.assert_true(1 == 1, "1==1")