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

Key: WET-48
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Alister Scott
Votes: 0
Watchers: 1
Operations

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

Ability to write values back to data sheet

Created: 17/May/06 12:08 AM   Updated: 18/Jun/07 05:13 PM
Component/s: Test controller
Affects Version/s: None
Fix Version/s: 1.2

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: XP SP2


 Description  « Hide
I think it would be beneficial to be able to write values back to the datasheet.
An example is for test data creation, to be able to write back the ids generated by the system to the datasheet.

 All   Comments   Work Log   Change History      Sort Order:
Alister Scott - 08/Jun/06 06:51 PM
I have been thinking more about this, and it would be more appropriate to create a copy of the datasheet in the results folder with the values that have been written back, rather than writing back to the input file.

Alister Scott - 29/Jun/06 10:57 PM
Is this being considered for a future version of WET?

Alister Scott - 18/Jun/07 05:13 PM
If you look at a commercial web scripting tool such as Quick Test Pro, it allows you to write back values to the datasheet. It does this by creating a 'runtime' version of the datasheet and reading/writing values to it (it stores this in a unique results directory).
The reason this is needed is creating system or scenario test cases that have multiple steps defined in rows in a data sheet.
For example -

Item - Function - Input - Output
1 - Register Person - Joe Smith - (PersonID)
2 - Add Address to Person - PersonID - (Address ID)
3 - Cancel Person - PersonID - (CancellationRef)

PersonID is captured as output from Item 1 and used as input for Items 2 and 3.
Address ID is captured as output from Item 2
CancellationRef is captured as output from Item 3

When running this test, all output items would be displayed in data sheet showing the actual result of running the test.

I currently have implemented this functionality but I do this by creating a global hash table to store output values and use them later. I create a run time comma delimted text file as an output file for each test run.