I am using the extension for QTP using the network extension toolkit. If my JScript function that implements the QTP action detects an error (for example, the user gave invalid argument values), I want QTP to stop the test and notify the user of the error. I want it to work like a regular error in QTP and ask if the user wants to debug \ retry \ skip \ stop execution.
How can i do this?
If you selected an exception with a string, then the message you are throwing is presented in QTP, like any other script ( Stop Retry Skip Debug) error
JavaScript Error object, QTP :
Error
throw Error("I'm sorry, Dave. I'm afraid I can't do " + action);
Source: https://habr.com/ru/post/1714469/More articles:What is AWT equivalent to JFrame.setDefaultCloseOperation? - javaHow to use Microsoft.Build.BuildEngine to create a Silverlight project? - silverlightIntPtr cast vs new - c #WPF Launch Browser with Credentials - c #Is this an acceptable Ajax action to autoplay CakePHP? - jqueryWeb server for my .NET Micro device - webserverHow to link WPF hyperlink in richtextbox with command? - data-bindingDangers of trying against predicate entry - sql-serverПервичный ключевой эффект на производительность в SQLite - performanceIs there any GoogleGroup API to retrieve data from Google groups - c #All Articles