rajiverpai / testlink-api-java-client

Automatically exported from code.google.com/p/testlink-api-java-client
1 stars 0 forks source link

http://mantis.testlink.org/view.php?id=3895 #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
An user reported on TestLink Mantis Bugtrack system an error when adding a Test 
Case with test steps. 

Full background here: http://mantis.testlink.org/view.php?id=3895

I'll take a look on it tomorrow morning. 

Original issue reported on code.google.com by brunodep...@gmail.com on 20 Oct 2010 at 1:42

GoogleCodeExporter commented 8 years ago
Like Bruno wrote, when I create a test case with the api (TestLink 1.9), its 
steps are not created. 

I'm working with this api to create an interface between TestLink and JMeter. 
The first goal is to create automatically the steps of a test case when you 
attach a JMeter file. The second one is to launch automatically by TestLink a 
JMeter's test and to get back the result.

I try to make this interface fully configurable to be able to distribute it to 
the community.

Cyril

Original comment by Cyril.Go...@ifremer.fr on 20 Oct 2010 at 7:43

Attachments:

GoogleCodeExporter commented 8 years ago
Here we go (-:

Original comment by brunodep...@gmail.com on 21 Oct 2010 at 6:06

GoogleCodeExporter commented 8 years ago
Fixed in branch BUG-0001. Committing changes now. Check how you are going 
create steps now:

List<HashMap<String, Object>> steps = new ArrayList<HashMap<String, Object>>();
HashMap<String, Object> step1 = new HashMap<String, Object>();
step1.put("step_number", 1);
step1.put("actions", "<p>step 1 : see a person</p>");
step1.put("expected_results", "A person");
step1.put("execution_type", TestLinkAPIConst.TESTCASE_EXECUTION_TYPE_AUTO);
steps.add(step1);

HashMap<String, Object> step2 = new HashMap<String, Object>();
step2.put("step_number", 1);
step2.put("actions", "<p>step 2 : say hello</p>");
step2.put("expected_results", "A person happy");
step2.put("execution_type", TestLinkAPIConst.TESTCASE_EXECUTION_TYPE_MANUAL);
steps.add(step2);

Thank you Cyril for reporting this issue. 

Original comment by brunodep...@gmail.com on 23 Oct 2010 at 6:02

GoogleCodeExporter commented 8 years ago
Forgot to mention, the HashMap keys are going to be inserted as constants in 
TestLinkApiConst interface and we'll work as fast as possible to release a new 
stable jar after Q&A works on testing this new version.

Original comment by brunodep...@gmail.com on 23 Oct 2010 at 6:05

GoogleCodeExporter commented 8 years ago
Thank you to fix it.

To perform the code, I think you can delete the parameter 'expectedResult' in 
the method 'createTestCase' because it becomes obsolete.

Thank you very much.

I keep you informed on the interface I make.

Original comment by Cyril.Go...@ifremer.fr on 25 Oct 2010 at 7:59