自动化辅助工具的robot框架资源

robotframework-selenium2accessibilit的Python项目详细描述


robot框架可访问性测试库

这个包捆绑了各种Firefox扩展以实现网站的可访问性 用一些胶水和预先烘焙的Robot Framework关键字库检查 使用Selenium启用自动辅助功能回归测试。

此软件包将不会取代人为的无障碍试镜。也不会 通过自动可访问性检查意味着您的站点是可访问的。

然而,一旦您的站点已经被审计了可访问性,这些工具就可以 帮助您通过自动化和连续性检测可访问性中的回归 综合无障碍测试。

(此软件包包含一个firefox配置文件,其中包含未修改的WAVE Toolbar和 未修改的WCAG Contrast checker扩展已预先安装。Wave工具栏 接口元素、设计元素、功能和底层代码是(c) 网络目标。)

注意

wcag对比度检查器当前配置为运行检查 始终适用于WCAG 2.0 AA级。以后可以选择。

安装

$ pip install robotframework-selenium2accessibility

示例测试

*** Settings ***ResourceAccessibility/wavetoolbar.robotResourceAccessibility/contrastchecker.robotSuite setupRun keywords
...  Open accessibility test browserMaximize Browser WindowSuite teardownClose all browsers*** Test Cases ***Test single page
     [Documentation]  Single page test could interact with the target
     ...              app as much as required and end with triggering
     ...              the accessibility scan.Go tohttp://www.plone.org/Check WAVE accessibility errorsTest multiple pages
    [Documentation]  Template based test can, for example, take a list
    ...              of URLs and perform accessibility scan for all
    ...              of them. While regular test would stop for the
    ...              first failure, template based test will just jump
    ...              to the next URL (but all failures will be reported).
    [Template]  Check both WAVE and color contrasthttp://www.plone.org/wave=0contrast=6http://www.drupal.org/wave=0contrast=5http://www.joomla.org/wave=0contrast=9http://www.wordpress.org/wave=1contrast=5*** Keywords ***Check both WAVE and color contrast
    [Arguments]  ${url}  ${wave}=0  ${contrast}=0Should not exceed maximum WAVE errors  ${url}  ${wave}
    Should not exceed maximum color contrast issues  ${url}  ${contrast}

Should not exceed maximum WAVE errors
    [Arguments]  ${url}  ${max}
    ${errors} =  Count WAVE accessibility errors  ${url}
    Should be true  ${errors} <= ${max}
    ...  WAVE Toolbar reported ${errors} errors for ${url}

Should not exceed maximum color contrast issues
    [Arguments]  ${url}  ${max}
    ${errors} =  Count color contrast issues  ${url}
    Should be true  ${errors} <= ${max}
    ...  WCAG Contrast checker reported ${errors} issue for ${url}

更改日志

0.2.1(2013-09-28)

  • 更新了变更日志。

0.2.0(2013-09-28)

  • 重命名为robotframework-selenium2可访问性。一些与波浪有关的 已重命名关键字以避免将来关键字中的命名空间冲突 名字。有关当前关键字,请参见文档。
  • 增加了wcag对比度检查,集成和关键字。

0.1.3(2013-05-26)

  • 修正为仅在Wave工具栏报告错误时拍摄页面截图

0.1.2(2013-05-26)

  • 更新文件。

0.1.1(2013-05-25)

  • 修复打包(从自述文件中删除非ascii字符)

0.1.0(2013-05-25)

  • 首次预发布

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java使用Eclipse Helios for Web项目   java指定行。作为编译器设置的分隔符?   osm映射中带有osmdroid的java标记   java Android ClassNotFoundException在路径:DexPathList上未找到类   java从j2me调用GWT方法   更新到java 8后的aspectj问题   如何仅从根元素java,com提取文本内容。滴虫软件。是的。html   安卓公司。谷歌。火基。数据库DatabaseException:未能转换java类型的值。将字符串改为长字符串   从java中的方法返回arraylist变量   java如果将引用重新分配给同步块内的锁对象,会是什么?   java下载。使用spring mvc的资源文件中的xlsx文件   java Eclipse提供了什么工具来运行Eclipse中未包含的程序?   spring boot Java泛型如何读取传递给泛型方法的类型上的字段或调用方法   Javacard中的javaecdsa签名