airavata-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eroma Abeysinghe <eroma.abeysin...@gmail.com>
Subject Airavata API testing using PHP command line
Date Fri, 16 May 2014 20:13:51 GMT
Hi All,

I tested API methods using PHP command line and scripts
Please see the results.

I didnt go to create JIRAs as some of these are been corrected as I speak.
Mailing them just to make sure that all these are covered in corrections.

If below is not clear please let me know



*Method*

*Test Case*

*Expected Result*

*Result*

*Status*

createProject.php

Test with NULL owner

Test with spaces for owner



Test with NULL for project name

Test with spaces for project name

Throws exception

Throws exception



Throws exception


Throws exception



Throws exception

Warning message given but creates the project

Throws exception


Create the Project

PASS

FAIL



PASS


FAIL

getAllUserProjects.php

Test with non-existing user

Test with NULL as user

Test with spaces as user

Throws exception

Throws exception

Throws exception

Lists 0 projects for user

Lists 0 projects for user

Lists 0 projects for user

FAIL?

FAIL

FAIL

createExperiment.php

Create with NULL host ID

Create with NULL app ID

Create with NULL Project ID







Create with NULL Exp Name

Create with NULL user

Create with non-existing user



Create with NULL input key

Create with NULL input value

Create with NULL output key

Throws exception

Throws exception

Throws exception







Throws exception

Throws exception

Should create the experiment

Throws exception

Throws exception

Throws exception

Exp get created

Exp get created

Throws exception. But the message says error while adding resource. Gives
wrong message

Exp gets created

Exp gets created

Exp gets created



Exp get created

Exp get created

Exp get created

FAIL?

FAIL?

FAIL?







FAIL

FAIL

PASS



FAIL?

FAIL?

FAIL?

launchExperiment.php

Give non-existing Exp ID

Give already completed Exp ID

Give already launched Exp ID

Throws exception

Throws exception


Throws exception

Exp is launched

Exp is launched


Exp is launched

FAIL

FAIL


FAIL

getExperimentStatus.php

Give non-existing Exp ID



Give NULL as Exp ID


Give spaces as Exp ID

Throws exception



Request the Exp ID


Request the Exp ID

With a notice gives status as NULL

Message: Please provide Exp ID

Message: Please provide Exp ID

FAIL?



PASS


PASS

getExperimentOutputs.php

Give non-existing Exp ID

Give NULL as Exp ID


Give spaces as Exp ID

Throws exception

Request the Exp ID


Request the Exp ID

Throws exception

Message: Please provide Exp ID

Message: Please provide Exp ID

PASS

PASS


PASS

getAllExperimentsInProject.php

Give non-existing project ID

Give NULL as project ID

Give spaces as project ID

Throws exception

Throws exception

Throws exception

# of project experiments = 0

# of project experiments = 0

# of project experiments = 0



FAIL?

FAIL?

FAIL?


-- 
Thank You,
Best Regards,
Eroma

Mime
View raw message