Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to update test status using TDConnection
#1
Not Solved
hi,

i have added one extra field into Test Status list for user environment errors "ENVERR" using project settings.
I m writing VAPI scripts for automation using vbscript.

If the automation tests has any test environment error i want to set the Status to ENVERR.

I am using this code to set the value but it has no effect, the run automatically sets the value to either Failed or Passed only.

----------------------------------------
Code:
Set com = TDConnection.Command
  com.commandText="update testcycl set TC_STATUS='"& "ENVERR" &"' where TC_CYCLE_ID ="& CurrentTestSet.Id & " AND TC_TEST_ID="& ThisTest.Id
com.execute
--------------------------------------

i also tried setting the status with these commands but no success.
Code:
CurrentRun.Status = "No Run"
   CurrentTest.Status = "No Run"

Can someone please guide me?

Thank you,
Reply
#2
Not Solved
Hi

Try this

LastRun.Status
LastRunResults.Status
Reply
#3
Not Solved
thanks for you reply.
i tried the both members but it didnt work. I am getting error as "Object required"

it seems there is to QC variable as LastRun & LastRunResults.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is VBScripting disabled in Office 365 update? soumyarani 0 1,246 12-19-2020, 12:37 PM
Last Post: soumyarani
  How to close/restart UFT in "Not responding" status with AOM script CharlieMadrid 0 1,059 05-21-2020, 08:46 PM
Last Post: CharlieMadrid
Question Is Reporter ignoring the status of steps? dlaureano 3 3,409 06-05-2014, 01:38 PM
Last Post: Jay
  Update Multiple Dropdowns without Submit Button mot0rola 1 2,088 07-09-2013, 10:26 AM
Last Post: Ankur
  Write Status of each row in DataTable dlaureano 2 3,248 11-29-2012, 05:53 PM
Last Post: dlaureano

Forum Jump:


Users browsing this thread: 1 Guest(s)