History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: WET-183
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Shreenidhi Nidugala
Reporter: Shreenidhi Nidugala
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
WET

Escape new lines in test definition fields that are represented by textareas (eg. Description)

Created: 18/Aug/06 04:45 AM   Updated: 09/Jul/07 01:58 AM
Component/s: Script Assistant
Affects Version/s: 0.9.8_beta1
Fix Version/s: 1.0.0

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
Steps to reproduce:
1.Open the new repository.
2.Enter some sample text in the description text area. The description should contain few newlines and blank lines.
3.Save the repository.
4.Close the windows and re-load the same repository.

Expected:
The repository should get reloaded and the description should be the same as entered earlier.

Actual:
Only the first line of the description is loaded. The rest of the description is skipped.



 All   Comments   Work Log   Change History      Sort Order:
Raghu Venkataramana - 04/May/07 05:40 AM
Shruthi,

Can you look into this? If the test definitions description has new lines, then this needs to be encoded.

description.Replace("\r\n", "/n")
description.Replace("\r", "/r")
description.Replace("\n", "/n")

Thanks
Raghu

shruthi - 08/May/07 02:19 AM
This bug is resolved by adding encoding and decoding fearures to description.
The link to view the changes is as below :

http://svn.openqa.org/fisheye/browse/wet/trunk/test_definition/src/TestDefinition.cs?r=688

http://svn.openqa.org/fisheye/browse/wet/trunk/wet_meta/src/ConfigProperty.cs?r1=685&r2=686

Raghu Venkataramana - 24/May/07 12:58 PM
Shreenidhi,

Can you verify it when you have some time?

Raghu