Giter Club home page Giter Club logo

freemind2testlink's Introduction

使用xmind、freemind创建的测试用例导出成testlink可导入的xml文件 xmind编写的用例请导出为freemind格式文件(.mm后缀文件)

xmind用例编写要求:

  • TestSuite需要加上相关的图标: 旗帜 (对颜色无要求)
  • 有步骤的用例需要加上相关的图标: 星星 (对颜色无要求)
  • 用例的 摘要和描述 用 & 进行分隔 (例如: 把大象装进冰箱&有一台冰箱)
  • 有步骤的用例 各个步骤的描述及期望结果用 & 进行分隔 (例如: ‘点击登录按钮 & 登录成功’)
  • 用例优先级需要加上相关的图标:1 2 3 --->高 中 低 (标注其他数字图标的 默认是中优先级)

具体的编写可以参照Demo.mm 、Demo.xmind作为参考

mind

使用说明

  • xmind编写的用例请导出为freemind文件

  • 将需要转换的freemind文件(例如demo.mm) 复制到当前文件夹

  • 双击By_flag(Mac:By_flag、Windows:By_flag.exe),双击即可生成xml文件和logger.log(log文件可查看导出的相关日志) 也可以执行Freemind.py文件,相关的依赖库lxml请自行下载pip install lxml

  • 将生成的xml文件导入到Testlink就好啦

  • mm文件的文件名最好不要出现特殊符号

    testlink

注意:

  • 生成的xml文件在导入testlink时,中心主题没有设定为suite的,请在testlink中手动创建一个测试用例集,将xml导入到testlink指定的用例集下。以免和原有的测试用例混淆造成管理混乱 (也可以直接在顶层加上旗帜图标,这样导出到testlink就是在一个文件夹下了)
  • 执行exe后会将文件夹下所有的.mm文件全部执行转换生成xml,为避免造成运行错误,请尽量保持文件夹下只有一个mm文件。

生成exe文件:

使用Pyinstaller进行打包,pip install pyinstaller安装好之后,到该文件夹下,执行pyinstaller -F Freemind.py. 在生成的dist文件夹下就会生成一个独立的exe文件了。Mac下一样,需要修改一行代码。

freemind2testlink's People

Contributors

pengchenglin avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.