zhuifengshen / xmind2testcase Goto Github PK
View Code? Open in Web Editor NEWXMind2TestCase基于python实现,提供了一个高效测试用例设计的解决方案!
Home Page: https://pypi.org/project/xmind2testcase/
License: MIT License
XMind2TestCase基于python实现,提供了一个高效测试用例设计的解决方案!
Home Page: https://pypi.org/project/xmind2testcase/
License: MIT License
怎转成excel格式
xmind编辑的用例导入禅道时,用例类型为空,提示用例类型是必填字段。
无法导入,查资料提示说需要修改源码,是否考虑直接支持该功能。
产品>模块>子模块>用例
在禅道中,模块维护存在着上下级关系,并不希望是在标题上体现,而是希望能对应到相应的子模块中
,希望作者能在下次更新时考虑该需求。
第一种方法:
workbook = xmind.load(xmind_file)
data = workbook.getData()
执行加载后,显示如下的内容,
第二种方法:
web网页转换一样的错误
操作第三方法:
下载xmind测试用例,选取产品其中一个模块转换也是一样的错误
[{'id': '7abtd0ssc7n4pi1nu6i7b6lsdh', 'title': 'Sheet 1', 'topic': {'id': '1vr0lcte2og4t2sopiogvdmifc', 'link': None, 'title': 'Warning\n警告\nAttention\nWarnung\n경고', 'note': None, 'label': None, 'comment': None, 'markers': [], 'topics': [{'id': '71h1aip2t1o8vvm0a41nausaar', 'link': None, 'title': 'This file can not be opened normally, please do not modify and save, otherwise the contents will be permanently lost!', 'note': None, 'label': None, 'comment': None, 'markers': [], 'topics': [{'id': '428akmkh9a0tog6c91qj995qdl', 'link': None, 'title': 'You can try using XMind 8 Update 3 or later version to open', 'note': None, 'label': None, 'comment': None, 'markers': []}]}, {'id': '2kb87f8m38b3hnfhp450c7q35e', 'link': None, 'title': '该文件无法正常打开,请勿修改并保存,否则文件内容将会永久性丢失!', 'note': None, 'label': None, 'comment': None, 'markers': [], 'topics': [{'id': '3m9hoo4a09n53ofl6fohdun99f', 'link': None, 'title': '你可以尝试使用 XMind 8 Update 3 或更新版本打开', 'note': None, 'label': None, 'comment': None, 'markers': []}]}, {'id': '7r3r4617hvh931ot9obi595r8f', 'link': None, 'title': '該文件無法正常打開,請勿修改並保存,否則文件內容將會永久性丟失!', 'note': None, 'label': None, 'comment': None, 'markers': [], 'topics': [{'id': '691pgka6gmgpgkacaa0h3f1hjb', 'link': None, 'title': '你可以嘗試使用 XMind 8 Update 3 或更新版本打開', 'note': None, 'label': None, 'comment': None, 'markers': []}]}, {'id': '0f2e3rpkfahg4spg4nda946r0b', 'link': None, 'title': 'この文書は正常に開かないので、修正して保存しないようにしてください。そうでないと、書類の内容が永久に失われます。!', 'note': None, 'label': None, 'comment': None, 'markers': [], 'topics': [{'id': '4vuubta53ksc1falk46mevge0t', 'link': None, 'title': 'XMind 8 Update 3 や更新版を使って開くこともできます', 'note': None, 'label': None, 'comment': None, 'markers': []}]}, {'id': '70n9i4u3lb89sq9l1m1bs255j5', 'link': None, 'title': 'Datei kann nicht richtig geöffnet werden. Bitte ändern Sie diese Datei nicht und speichern Sie sie, sonst wird die Datei endgültig gelöscht werden.', 'note': None, 'label': None, 'comment': None, 'markers': [], 'topics': [{'id': '1qpc5ee298p2sqeqbinpca46b7', 'link': None, 'title': 'Bitte versuchen Sie, diese Datei mit XMind 8 Update 3 oder später zu öffnen.', 'note': None, 'label': None, 'comment': None, 'markers': []}]}, {'id': '4dmes10uc19pq7enu8sc4bmvif', 'link': None, 'title': 'Ce fichier ne peut pas ouvert normalement, veuillez le rédiger et sauvegarder, sinon le fichier sera perdu en permanence. ', 'note': None, 'label': None, 'comment': None, 'markers': [], 'topics': [{'id': '5f0rivgubii2launodiln7sdkt', 'link': None, 'title': "Vous pouvez essayer d'ouvrir avec XMind 8 Update 3 ou avec une version plus récente.", 'note': None, 'label': None, 'comment': None, 'markers': []}]}, {'id': '10pn1os1sgfsnqa8akabom5pej', 'link': None, 'title': '파일을 정상적으로 열 수 없으며, 수정 및 저장하지 마십시오. 그렇지 않으면 파일의 내용이 영구적으로 손실됩니다!', 'note': None, 'label': None, 'comment': None, 'markers': [], 'topics': [{'id': '0l2nr0fq3em22rctapkj46ue58', 'link': None, 'title': 'XMind 8 Update 3 또는 이후 버전을 사용하여', 'note': None, 'label': None, 'comment': None, 'markers': []}]}]}}]
@zhuifengshen 我在使用该项目时,生成的CSV文件会产生多余的空行的,所以对zentao.py代码进行优化,问题解决,希望作者可以参考
原代码:with open(zentao_file, 'w', encoding='utf8') as f:
优化后代码:with open(zentao_file, 'w', encoding='utf8',newline='') as f:
设置了标签自动无效,导出的结果仍然是手动
怎样设置关键词导出来关键词都是功能测试
由于需要打包成工具,见识有限,去掉了parser前面的文件夹,改成from parser import xmind_to_testsuites 直接引入,但一直报错找不到方法,找了一天也没找到原因,第二天再找发现parser和build-in里面的名字冲突了,一直定位到了build-in中……把parser改成别的名就好了,建议简单修改一下文件名字
λ xmind2testcase
Traceback (most recent call last):
File "C:\Programs\Python\Python38\lib\runpy.py", line 194, in run_module_as_main
return run_code(code, main_globals, None,
File "C:\Programs\Python\Python38\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Programs\Python\Python38\Scripts\xmind2testcase.exe_main.py", line 4, in
File "C:\Programs\Python\Python38\lib\site-packages\xmind2testcase\cli.py", line 8, in
from webtool.application import launch
File "C:\Programs\Python\Python38\lib\site-packages\webtool\application.py", line 14, in
from flask import Flask, request, send_from_directory, g, render_template, abort, redirect, url_for
File "C:\Programs\Python\Python38\lib\site-packages\flask_init.py", line 14, in
from jinja2 import escape
File "C:\Programs\Python\Python38\lib\site-packages\jinja2_init.py", line 12, in
from .environment import Environment
File "C:\Programs\Python\Python38\lib\site-packages\jinja2\environment.py", line 25, in
from .defaults import BLOCK_END_STRING
File "C:\Programs\Python\Python38\lib\site-packages\jinja2\defaults.py", line 3, in
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
File "C:\Programs\Python\Python38\lib\site-packages\jinja2\filters.py", line 13, in
from markupsafe import soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (C:\Programs\Python\Python38\lib\site-packages\markupsafe_init_.py)
请问作者可以支持xmind zen吗,现在解析zen文件时提示‘该文件无法正常打开,请勿修改并保存,否则文件内容将会永久性丢失!’ 和 ‘你可以尝试使用xmin 8 update 3 或更新版本打开。
xmind文件导出为json格式时正常显示result,导出为csv文件时,未定义result这个字段,很多情况都需要导出为csv文件,公司用例存档,希望大佬考虑修复
Originally posted by @fei92test in #41 (comment)
有大佬知道怎么转换成excel么。。
application.py本地运行IP地址用的是全局变量的0.0.0.0
2019-01-09 09:04:45,750 werkzeug INFO [_internal - _log]: * Running on http://0.0.0.0:5001/ (Press CTRL+C to quit)
2019-01-09 09:04:45,750 werkzeug INFO [_internal - _log]: * Running on http://0.0.0.0:5001/ (Press CTRL+C to quit)
一个测试步骤对应多个预期结果,xind中怎么写
{
"name": "\u7528\u529b1 \u5b50\u4e3b\u9898 1 \u5b50\u4e3b\u9898 1",
"version": 1,
"summary": "\u7528\u529b1 \u5b50\u4e3b\u9898 1 \u5b50\u4e3b\u9898 1",
"preconditions": "\u65e0",
"execution_type": 1,
"importance": 2,
"estimated_exec_duration": 3,
"status": 7,
"result": 0,
"steps": [],
"product": "\u4e2d\u5fc3\u4e3b\u9898",
"suite": "\u5206\u652f\u4e3b\u9898 1"
}
大佬,这工具非常棒,但是,参考文档使用,在用例标题或者预期结果在xmind打上任务状态标志后,按文档的方法都试了个遍,导出为csv用例文件,始终不能展示用例执行结果,目前使用版本为最新1.5.0
运行xmind2testcase报错:
C:\Users\yuan>xmind2testcase
2020-03-05 14:13:45,330 webtool.application INFO [application - init]: Start initializing the database...
2020-03-05 14:13:45,346 webtool.application INFO [application - init]: Congratulations! the xmind2testcase webtool database has initialized successfully!
None
2020-03-05 14:13:45,346 root ERROR [cli - cli_main]: None
请问这是怎么导致的呢?
cmd run到以下後就報錯了,
Installing collected packages: itsdangerous, Werkzeug, click, flask, python-dateutil, arrow, xmind, xmind2testcase
Running setup.py install for arrow ... done
Exception:
Traceback (most recent call last):
File "c:\python37\lib\site-packages\pip_internal\cli\base_command.py", line 179, in main
status = self.run(options, args)
File "c:\python37\lib\site-packages\pip_internal\commands\install.py", line 393, in run
use_user_site=options.use_user_site,
File "c:\python37\lib\site-packages\pip_internal\req_init_.py", line 57, in install_given_reqs
**kwargs
File "c:\python37\lib\site-packages\pip_internal\req\req_install.py", line 913, in install
use_user_site=use_user_site, pycompile=pycompile,
File "c:\python37\lib\site-packages\pip_internal\req\req_install.py", line 445, in move_wheel_files
warn_script_location=warn_script_location,
File "c:\python37\lib\site-packages\pip_internal\wheel.py", line 600, in move_wheel_files
generated=generated, lib_dir=lib_dir,
File "c:\python37\lib\site-packages\pip_internal\wheel.py", line 271, in get_csv_rows_for_installed
for row in old_csv_rows:
UnicodeDecodeError: 'cp950' codec can't decode byte 0x8b in position 600: illegal multibyte sequence
如题
远程部署到linux服务器后,通过ip:port 访问,此时访问不了
新的ximind文件无法转换。ximind:zen 产生文件无法转换
You can try using XMind 8 Update 3 or later version to open
你可以尝试使用 XMind 8 Update 3 或更新版本打开
有大佬知道xml文件怎么转excel吗?这个to_excel怎么用啊。。
xxfile.xmind中的内容含中文,
在命令行中输入xmind2testcase xxfile.xmind -json
输出的json文件中无法显示中文,中文的地方未\uxxx等字符,好像是unicode字符?
请问怎么解决呢?
希望放开一个操作步骤不能有多个期望的限制
xmind中的测试用例 操作步骤和预期结果都有换行,可是生成禅道csv后 发现换行全都变成了空格,请问需要如何处理?
请问我是用的是xmind 版本22.11(3656),为什么还是提示这个?
可以看到在 xmind 中,“优先级1~4“均有对应的不同颜色,而当前webtool上“Priority”标签统一颜色,区别不够直观、强烈。
谢谢。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.