Has anyone written a perl or python program to massage text

The release related discussions, plans and questions.
Locked
wferrarini
TestLink user
Posts: 14
Joined: Tue Dec 09, 2008 12:44 pm

Has anyone written a perl or python program to massage text

Post by wferrarini »

I am about to migrate 1200 plus test cases from word documents to testlink and I am wondering if someone has already written a program to convert the text data into xml format so I can import them?

I figured it'wouldn't hurt to ask if someone has already written one, save me the time :)
havlatm
Member of TestLink Community
Posts: 940
Joined: Mon Oct 31, 2005 1:24 am
Location: Czech

Post by havlatm »

My colleague wrote a parser for requirements specification. It works with using docbook. You can save msword as docbook (open office do it, but maybe also msword). Each chapter is now hold in <sectX> element. In my case it was header 3 -> <sect3>.
You can find the code in 1.8 RC2 and modify for your case. See lib/function/requirements.inc.php.
bhagwatn
TestLink user
Posts: 6
Joined: Thu May 15, 2008 6:31 am

I've written one for .txt to .csv migration

Post by bhagwatn »

I've written one for .txt to .csv migration. We had .html and we wanted them in .csv, the fun part was to arrange TEST-STEPs in a single cell. First we saved all html as .txt. It worked fine.

But I guess your need is different, still let me know if you need any help.
Locked