zoukankan      html  css  js  c++  java
  • RF判断列表、字典、整数、字符串类型是否相同方法

     

    ${d} create list shk shsh
    ${w} create list
    ${e} evaluate type(${d})
    ${t} evaluate type(${w})
    should be equal ${e} ${t}
    ${d} create dictionary 1 shsh
    ${w} create dictionary
    ${e} evaluate type(${d})
    ${t} evaluate type(${w})
    should be equal ${e} ${t}
    ${d} set variable 1
    ${w} set variable 2
    ${e} evaluate type(${d})
    ${t} evaluate type(${w})
    should be equal ${e} ${t}
    ${d} set variable 'ddhs'
    ${w} set variable 'dd'
    ${e} evaluate type(${d})
    ${t} evaluate type(${w})
    should be equal ${e} ${t}

    Starting test: ZXJF.清结算 一期.测试.测试
    20170714 10:56:53.482 :  INFO : ${d} = [u'shk', u'shsh']
    20170714 10:56:53.482 :  INFO : ${w} = []
    20170714 10:56:53.482 :  INFO : ${e} = <type 'list'>
    20170714 10:56:53.482 :  INFO : ${t} = <type 'list'>
    20170714 10:56:53.498 :  INFO : 
    Argument types are:
    <type 'type'>
    <type 'type'>
    20170714 10:56:53.498 :  INFO : ${d} = {u'1': u'shsh'}
    20170714 10:56:53.498 :  INFO : ${w} = {}
    20170714 10:56:53.498 :  INFO : ${e} = <type 'dict'>
    20170714 10:56:53.498 :  INFO : ${t} = <type 'dict'>
    20170714 10:56:53.498 :  INFO : 
    Argument types are:
    <type 'type'>
    <type 'type'>
    20170714 10:56:53.498 :  INFO : ${d} = 1
    20170714 10:56:53.498 :  INFO : ${w} = 2
    20170714 10:56:53.514 :  INFO : ${e} = <type 'int'>
    20170714 10:56:53.514 :  INFO : ${t} = <type 'int'>
    20170714 10:56:53.514 :  INFO : 
    Argument types are:
    <type 'type'>
    <type 'type'>
    20170714 10:56:53.514 :  INFO : ${d} = 'ddhs'
    20170714 10:56:53.514 :  INFO : ${w} = 'dd'
    20170714 10:56:53.514 :  INFO : ${e} = <type 'str'>
    20170714 10:56:53.514 :  INFO : ${t} = <type 'str'>
    20170714 10:56:53.514 :  INFO : 
    Argument types are:
    <type 'type'>
    <type 'type'>
    Ending test:   ZXJF.清结算 一期.测试.测试
  • 相关阅读:
    php2
    11-14php
    三层嵌套
    常见的浏览器兼容
    css中的一些问题及解决方法
    css
    html
    测试题
    正则表达式
    Math对象
  • 原文地址:https://www.cnblogs.com/apple2016/p/7168934.html
Copyright © 2011-2022 走看看