Automate Test Cases using Task Scheduler
I'm trying to automate my test cases using Windows Task Scheduler. The process executes and opens my desktop application but it don't recognize the Alias names that are mapped using Name mapping. Is there an option I'm missing?
As long as the mapping is unique, what you have now should be fine. If the object name changes, as it can on a web page, then you would use a wildcard to address it.
If the object name is not changing, I would still look for a timing issue. Here are some things to try:
- Do the Delay again, but put something really long like 2 minutes in the value.
- Put a breakpoint before the line with the failure and step through to see what's happening in each step.