Forum Discussion
Julia_K
14 years agoSmartBear Alumni (Retired)
Hello Lucien,
I’m glad to hear that your re-recorded test runs successfully.
Still, I hope the following notes may come in handy if you face the same issue again:
1. If a VBScript run-time error - "Object required: 'var_name' " - occurs in your script, please make sure that the var_name variable stores a reference to an object which exists, is valid, is recognized as an object and is not null. To do this, you can use breakpoints to pause the script execution upon reaching the target script line and the Locals or Watch List panel to examine the values assigned to your script variables. You can find detailed information on these and other TestComplete debugging features in the Debugging Tests Help section.
2.
Looking back to the code, one thing i can't understand is, as can be seen from 2011-12-06 11-00-43 AM.png, the error points to line 7. Indeed, it's looking for the object 'table', at least it appears at line 10. Not sure what's going on.
You can double-click the error message in the test log to jump to the script line that has posted that error message. To learn more about this feature, please see the Jumping to Test Command That Posted Message Help topic. Please note that this feature is available only for TestComplete, not TestExecute.
3.
The only difference is on virtual machine IE version is 8 whereas on physical machine IE version is 9. Does it matter?
Different versions of web browsers may have different object hierarchies. A test created for one version of a web browser may fail if played back with another web browser version. To learn how to create tests that work with all supported web browsers, please see the Cross-Browser Scripting Help topic.
Good luck with your testing.
Related Content
- 5 years ago
- 5 years ago
Recent Discussions
- 3 days ago
- 9 days ago
- 12 days ago