My application is based on .net framework 4.5 and using Ranorex 5.2.
Whenever i run my test solution it fails first time because of error " Object reference not set to an instance of an object" .
However when i run the solution second time, it passes without any such error.
Why such behavior are observed with Ranorex test solution.
e.g. please find the piece of code:
Please help me to avoid such issues and because of this we are getting so much pressure from our manager which is not good to be.
Code: Select all
[2015/08/06 16:16:36.082][UIAction][Passed ]: RepoScanConsole.WindowStart.Self.Click() [2015/08/06 16:16:36.695][UIAction][Passed ]: RepoScanConsole.StartMenu.SearchBoxStartMenu.PressKeys(cmd) [2015/08/06 16:16:37.483][UIAction][Passed ]: RepoScanConsole.StartMenu.CmdExeStartMenu.Click(Right) [2015/08/06 16:16:38.254][UIAction][Passed ]: RepoScanConsole.StartMenuExplorerContextMenu.RunAsAdministratorCMD.Click() [2015/08/06 16:16:38.318][Exception][UIAction ]: thrown in: RepoScanConsole.CommandPrompt.Activate() [b][2015/08/06 16:16:38.343][Error ][Module]: Object reference not set to an instance of an object.[/b]