Tuesday, June 22, 2010

Unlock QTP Script Which is Locked in Quality Center

Any script is locked in QC By other user, we can unlock script with below code.

Set QCConnection=QCUtil.QCConnection
Set con=QCConnection.command
con.CommandText="DELETE FROM LOCKS WHERE LK_USER ='QC User ID'" Set recset=con.execute

2 comments:

  1. Hi,
    Thx ... this script was very useful when QTP crashes and script get locked ... But can we retrieve the Locked user iD - I mean who has locked the script in case if locked by other user.

    ReplyDelete
  2. This is working,you saved my time

    Thank you very much

    Vasudev

    ReplyDelete