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
Tuesday, June 22, 2010
Subscribe to:
Post Comments (Atom)
Hi,
ReplyDeleteThx ... 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.
This is working,you saved my time
ReplyDeleteThank you very much
Vasudev