zoukankan      html  css  js  c++  java
  • robot 获取report报告的信息

    *** Settings ***
    Resource          ../../source_keyword/pub_lib.txt

    *** Test Cases ***
    get_total
        ${url}    Set Variable    F:\jekens\workspace\auto_test_regression\default\report.html
        Open Browser    ${url}    chrome
        ${detailContent}    Get Text    xpath=//table[@class='details']
        ${totalContent}    Get Text    id=total-stats
        ${TagContent}    Get Text    id=tag-stats
        ${SuiteContent}    Get Text    id=suite-stats
        ${total}    Get Text    xpath=//*[@id="total-stats"]/tbody/tr[1]/td[2]
        ${pass}    Get Text    xpath=//*[@id="total-stats"]/tbody/tr[1]/td[3]
        ${percentage }    Evaluate    format(round(${pass}/float(${total}),2),'2%')

  • 相关阅读:
    WEEK
    更新yum源
    Centos6.9安装Mysql5.7.18
    gitlab使用
    gitlab安装
    git客户端
    服务器端配置
    错误问题
    服务器端
    01找出数组中重复的数
  • 原文地址:https://www.cnblogs.com/colin2012/p/7381422.html
Copyright © 2011-2022 走看看