Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error Handling while running Batch file
#1
Solved: 10 Years, 9 Months ago
Hi,

We have a situation that while running batch files,if we come across any errors, we need to skip that statement and go to the next statement. The error could occur on any test in the batch file.(for eg- If we have 20 tests to run in the batch file, if the error occurs in the 5th or 13th test , it should skip that and go to the next statement and complete running the entire batch.)

And also we do not have QC in our company.

Thanks.
Reply
#2
Solved: 10 Years, 9 Months ago
QC would have been a savior here!

Nevertheless you can use Automation Object Model(AOM) to open and run your tests. QTP tests run in "silent mode" when invoked through AOM and will not pop-up any error messages.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Solved: 10 Years, 9 Months ago
Hi Ankur,

Can you please explain how to use AOM. If we use this , after running all the scripts
will QTP give results showing where the script failed and due to what reason ?

And also if we have Msgbox "" statements in a script , when we run the script, we have to manually click on OK on the message box. How can we avoid clicking it if this script is a part of the batch (which someone from the company will run it at night & see the results in the morning).

Thanks,
Reply
#4
Solved: 10 Years, 9 Months ago
Please look at the QTP documentation for AOM, there are numerous examples to get started.

Also I don't find the logic behind using msgbox statement while running unattended scripts.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Invalid file error importing xls file Makhado 0 1,184 10-04-2018, 04:33 PM
Last Post: Makhado
  Getting an error to open UFT using vbs file Naresh 1 5,159 06-11-2015, 06:34 PM
Last Post: venkatesh9032
  Invalid File error importing a spreadsheet but only on a VM msacks 1 2,564 10-19-2014, 09:04 PM
Last Post: supputuri
  Basic error handling RandomGrin 3 3,718 10-12-2013, 07:50 PM
Last Post: basanth27
  How to get the path of the batch file under execution sams001 2 2,328 01-29-2013, 03:38 PM
Last Post: sams001

Forum Jump:


Users browsing this thread: 1 Guest(s)