prove / tarantula

Tarantula Test Management Tool
www.testiatarantula.com
GNU General Public License v3.0
164 stars 106 forks source link

Develop #41

Closed evgeniy-khatko closed 11 years ago

evgeniy-khatko commented 12 years ago

This is a fork that is intended to add following features to the original tarantula:

Suppose you have Jira bug tracker set up and a test case execution with following results.

  1. Step1 - PASSED
  2. Step2 - PASSED
  3. Step3 - FAILED

After choosing "Add defect to bug tracker" inside the "Associate defect" dialog tarantula redirects you to appropriate "create new issue" form with following fields filled in:
title test case title
description
Preconditions => test case preconditions
Step1 action
Step2 action
Result
Expected result

Tarantula API

The REST API is used in the sense of doing POST HTTP requests with XML-ed params inside

Authentication

Basic http authentication is used. Just provide a username and a password of existing tarantula user, who has enough privileges to perform actions below
The credentials are transmitted without encription. If you need more safety please request for SSL support

Create testcase

Preconditions

Following call will create new test case with specified parameters

    http://username:password@tarantula_url/api/create_testcase.xml  

where body is

    <request>
        <testcase project="My project" title="testcase title" priority="high" tags="functional" objective="testcase objective" data="testcase data" preconditions="testcase preconditions">
            <step action="Step 1" result="Result 1"></step>
            <step action="Step 2" result="Result 2"></step>
        </testcase>
    </request>

This method can be invoked e.g. for inmorting testcases fro a third party tool like testlink

Update testcase execution

Preconditions

Following call will update testcase execution setting run time to "1", step1 result to "Passed", step2 result to "Not implemented"

    http://username:password@tarantula_url/api/update_testcase_execution.xml  

where body is

    <request>
        <project>My project</project>
        <execution>My execution</execution>
        <testcase>My testcase</testcase>
        <duration>1</duration>
        <step position="1" result="PASSED"></step>
        <step position="2" result="NOT_IMPLEMENTED"></step>
    </request>

The other possible options for result are: "FAILED", "SKIPPED", "NOT_RUN",

This method can be invoked e.g. for integrating with a test automation tool

kirantpatil commented 11 years ago

Nice work. Can you please publish at-least your Roadmap for Tarantula ?

I don't see any roadmap for Tarantula.

Thanks, Kiran Patil.

evgeniy-khatko commented 11 years ago

Hi, what do I need to do to get my pull request accepted (at least REST API)? This is very useful feature in my opinion. Please find video example here: http://qamind.ru/?page_id=130&lang=en

iiska commented 11 years ago

Hi, thanks for your interest in developing Tarantula and sorry for the delay before we had time to review this. API looks really good.

However I tried to merge these manually but noticed that you had included some configuration specific to your own system (oracle configuration and gems, Capistrano config) and the specs seemed to fail.

Could you provide cleaner topic branch/patch containing the API and passing specs?