Reputation: 17
I want to update a specific field (description/Optional ID) of a test instance in QC using QTP. Below is waht I am curently doing:
PS: I am sorry but I cant put my piece of code here. I am stuck at adding that field value. I could reach till TSTestFactory but cant reach beyond that.
Please let me know if anyone has any clue.
Upvotes: 0
Views: 1003
Reputation: 1105
Here's a snippet from code I use to update the status of TestSet tests.
TSTestFactory tstf = (TSTestFactory)m_Connection.TSTestFactory;
List tests = tstf.NewList("");
foreach (TSTest test in tests)
{
test.Status = status;
test.Post();
}
Upvotes: 0