Code Monkey home page Code Monkey logo

xmind2testcase's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xmind2testcase's Issues

json文件不显示中文

xxfile.xmind中的内容含中文,
在命令行中输入xmind2testcase xxfile.xmind -json
输出的json文件中无法显示中文,中文的地方未\uxxx等字符,好像是unicode字符?
请问怎么解决呢?

可以支持xmind zen吗?

请问作者可以支持xmind zen吗,现在解析zen文件时提示‘该文件无法正常打开,请勿修改并保存,否则文件内容将会永久性丢失!’ 和 ‘你可以尝试使用xmin 8 update 3 或更新版本打开。

给项目提个patch

@zhuifengshen 我在使用该项目时,生成的CSV文件会产生多余的空行的,所以对zentao.py代码进行优化,问题解决,希望作者可以参考

原代码:with open(zentao_file, 'w', encoding='utf8') as f:
优化后代码:with open(zentao_file, 'w', encoding='utf8',newline='') as f:

运行xmind2testcase报错: root ERROR [cli - cli_main]: None

运行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

请问这是怎么导致的呢?

image

导出结果,内容格式有误

{
"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"
}

关于from parser import xmind_to_testsuites报错

由于需要打包成工具,见识有限,去掉了parser前面的文件夹,改成from parser import xmind_to_testsuites 直接引入,但一直报错找不到方法,找了一天也没找到原因,第二天再找发现parser和build-in里面的名字冲突了,一直定位到了build-in中……把parser改成别的名就好了,建议简单修改一下文件名字

安裝時出現UnicodeDecodeError: 'cp950' codec can't decode byte 0x8b in position 600: illegal multibyte sequence

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

运行提示错误from markupsafe import soft_unicode

λ 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)

标识用例结果规则,导出为csv,结果未展示

大佬,这工具非常棒,但是,参考文档使用,在用例标题或者预期结果在xmind打上任务状态标志后,按文档的方法都试了个遍,导出为csv用例文件,始终不能展示用例执行结果,目前使用版本为最新1.5.0

使用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': []}]}]}}]

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.