Giter Club home page Giter Club logo

testlinkconverter's Introduction

TestLinkConverter

GitterTravisGitHub releaseGitHub tagDocs

TestLink XML Convert to Excel or Excel Convert to XML.

pic4

注意: 支持XML转换为Excel后,对应Excel转换为XML;XML和Excel相互转换。

XML Convert to Excel

支持解析的XML内部结构如下:

pic1

  1. 代码支持多层testsuite嵌套,均能解析出对应的testcase,图示例较为简单,只作为说明。
  2. 本次针对XML解析至解析了常规使用字段,未解析全部导出XML字段。

Excel Convert To XML

支持解析Excel的格式如下: pic3

注意:

  1. 暂不解析关键字,规约编号字段。
  2. 支持Excel多Sheet页转换,每个Sheet页默认为一个测试套。

引用三方类库

1.log4net

下载地址: https://logging.apache.org/log4net/download_log4net.cgi

参考博客: http://www.cnblogs.com/kissazi2/p/3389551.html

2.EPPlus

下载地址: https://github.com/JanKallman/EPPlus

参考博客: http://blog.csdn.net/ejinxian/article/details/52315950

资源地址: https://archive.codeplex.com/?p=epplus

3..Net FrameWork 4.5.2

下载地址: https://www.microsoft.com/net/download/thank-you/net452-developer-pack


问题

代码过程中以及环境设置中出现的相关问题。

1. 安装包安装,建议安装至C盘以外的系统盘。存在写入Excel文件时,没有权限等问题。

2. 进行文件转换时,建议不要打开Excel进程,可能出现进程占用导致转换失败等问题。

3. 调用Excel相关类库时环境配置问题。

问题描述:
无法嵌入互操作类型“Microsoft.Office.Interop.Word.ApplicationClass”。请改用适用的接口。 错误 4317 无法嵌入互操作类型“Microsoft.Office.Interop.Word.ApplicationClass”。请改用适用的接口。 类型“Microsoft.Office.Interop.Word.ApplicationClass”未定义构造函数。
解决办法:
1.在Visual Studio 中点击菜单项“视图->解决方案资源管理器”,在其中点开“引用”文件夹,在"Microsoft.Office.Interop.Excel;" 上点击鼠标右键,选择“属性”,将属性中的“嵌入互操作类型”的值改为“false”即可。

2.采用第三方类库EPPlus进行Excel文件的解析,避免出现Excel解析等相关问题。

说明:
引用Excel类库:Microsoft Excel 14.0 Object Library,需要安装Office 2010.

pic2

临时记录

1. TestLink字段解析

http://wangsx.cn/?p=648

2. Excel读写示例

http://blog.csdn.net/zzukun/article/details/50830439

3. EXE打包教程

http://www.cnblogs.com/yinsq/p/5254893.html

4. C#中跨线程访问控件问题解决方案

http://blog.csdn.net/henreash/article/details/7789566

5. Excel解析采用开源库EPPlus

https://github.com/JanKallman/EPPlus

testlinkconverter's People

Contributors

jaylikecode avatar

Watchers

James Cloos avatar  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.