lczub / TestLink-API-Python-client

A Python client to use the TestLink API
104 stars 63 forks source link

New line is ignored while adding Test steps and Expected behavior in 'createTestCase' API #137

Closed abhay2703 closed 4 years ago

abhay2703 commented 4 years ago

While adding test cases using TL API createTestCase, if a test case has multi line steps/expected behavior, then they are all added in a single line. Which takes away the readability. Example:

StepsList = [{'step_number' : 1, 'actions' : "Step action 1 - long_B\nStep action 1 - long_B\nStep action 1 - long_B" ,
'expected_results' : "Step result 1 - long_B", 'execution_type' : 0},
{'step_number' : 2, 'actions' : "Step action 2 - long_B" ,
'expected_results' : "Step result 2 - long_B", 'execution_type' : 0}]

Steps

Is this expected behavior of the API?

lczub commented 4 years ago

Hello Abhay, yes this is an expected behavior. As you may notice in #136, you can use HTML tags to format test case descriptions and it should also be usable for steps. The HTML tag <br> instead python line feed \n should add the wanted linefeed. Regards Luiko

abhay2703 commented 4 years ago

Dear Luiko,

Thanks for the solution. I didn't know about the limitation.

Regards, Abhay