Script to import test-cases from xls including Custom Field

The release related discussions, plans and questions.
Locked
agarg2
Advanced user
Posts: 26
Joined: Thu Aug 02, 2007 3:49 pm

Script to import test-cases from xls including Custom Field

Post by agarg2 »

Hi,

I have written a perl script which reads the data from xls and import all the test-cases diretly into the TestLink MySQL DB (including keywords, custom fields) with categories. I have tested the script with various projects in my team and it is working fine.

I am using DBI and ParseExcel module to do this task.

Currently I am working on a small readme. Once finished I will post the script with readme and sample xls.

Regards,
Arun Garg
Smittie
TestLink user
Posts: 1
Joined: Tue Jan 22, 2008 12:10 am

Post by Smittie »

While being able to manipulate custom field data via the XML structure already in place, a script that works with a spreadsheet might be a useful substitute. Does the script work in both directions? Can I export existing scripts to Excel?

Better still would be the ability to manipulate field for multiple test cases at once. A shift+click equivalent.

Smittie
agarg2
Advanced user
Posts: 26
Joined: Thu Aug 02, 2007 3:49 pm

Script to import test-cases from xls (attached)

Post by agarg2 »

Hi,

Sorry for the delay is writing readme and sample xls file. Please find attached the XlsToTestLinkImport.rar which has the perl script and readme etc to import test-cases from xls (including custom fields, keywords etc).

Please let me know if you find any issues.

Regards,
Arun Garg
agarg2
Advanced user
Posts: 26
Joined: Thu Aug 02, 2007 3:49 pm

Post by agarg2 »

I am not able to attach the script and working with TestLink team to resolve the issue I am facing. It may be something I am doing wrong.

Regards,
Arun Garg
havlatm
Member of TestLink Community
Posts: 940
Joined: Mon Oct 31, 2005 1:24 am
Location: Czech

Post by havlatm »

I apologize to Arun. Please download the script here:
http://www.teamst.org/_tlstore/XlsToTes ... Import.rar
sandeepg
TestLink user
Posts: 5
Joined: Mon Oct 15, 2007 7:16 am

Post by sandeepg »

Hi Arun,

I have test cases which has multiple rows for steps and expected result. Will it work? (As per demo excel sheet which has only single row test cases.)

-Sandeep
agarg2
Advanced user
Posts: 26
Joined: Thu Aug 02, 2007 3:49 pm

Post by agarg2 »

Hi Sandeep,

Sorry, the script will not work properly in this case.

The script considers one row as a one test-case (if the data is correct) otherwise it will skip the row.

In your case, the script will consider first row which has all the data and import it. While it will skip the subsequent rows (which has only results and expected results) as the data is not sufficient for the script for these rows.

Regards,
Arun Garg
gdeepak@aztecsoft.com
TestLink user
Posts: 11
Joined: Mon Mar 24, 2008 6:37 am

Post by gdeepak@aztecsoft.com »

I want to populate a TestSuite with the data from a XLS sheet,i want to add the data in the DB custom field and populate in the TL,i tried to add/insert the data in DB but when i tried to populate it with TL,its saying my search leads to no result ,can some body give me any solution
agarg2
Advanced user
Posts: 26
Joined: Thu Aug 02, 2007 3:49 pm

Post by agarg2 »

I am not clear on what exactly you want to achieve? Please provide us more details or may be steps you are performing (with example) so that we can provide help, if possible.

Regards,
Arun Garg
Locked