gid_216
13 years agoFrequent Contributor
Object Not Exist Error
Hi,
While checking whether an object exists or not to proceed further, if the object doesn't exist, then TC automatically insert an error to log making the overall test fail even the test passed. For E.g.
If Not <ObjectToFind>.Exists Then
Log.Message "Passed"
Else
Log.Error "Failed"
here if the object doesn't exist, then script should pass as "Not <ObjectToFind>.Exists" will be True.
But here, the log coming is
Error: The object does not exist. See Additional Information for details.
Message: Passed
and makes the overall script fail. Please give me some solution to overcome such issue.
While checking whether an object exists or not to proceed further, if the object doesn't exist, then TC automatically insert an error to log making the overall test fail even the test passed. For E.g.
If Not <ObjectToFind>.Exists Then
Log.Message "Passed"
Else
Log.Error "Failed"
here if the object doesn't exist, then script should pass as "Not <ObjectToFind>.Exists" will be True.
But here, the log coming is
Error: The object does not exist. See Additional Information for details.
Message: Passed
and makes the overall script fail. Please give me some solution to overcome such issue.