Has anyone written a perl or python program to massage text

The release related discussions, plans and questions.

Has anyone written a perl or python program to massage text

Postby wferrarini » Tue Dec 09, 2008 5:16 pm

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 :)
wferrarini
TestLink user
 
Posts: 14
Joined: Tue Dec 09, 2008 12:44 pm

Postby havlatm » Thu Dec 11, 2008 3:09 pm

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.
havlatm
Member of TestLink Community
 
Posts: 940
Joined: Mon Oct 31, 2005 1:24 am
Location: Czech

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

Postby bhagwatn » Fri Jan 09, 2009 5:26 am

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.
bhagwatn
TestLink user
 
Posts: 6
Joined: Thu May 15, 2008 6:31 am


Return to TestLink 1.7 (Closed)



Who is online

Users browsing this forum: No registered users and 1 guest