Forum Discussion

rchavan's avatar
rchavan
New Contributor
6 years ago
Solved

Failed test at Log in, but works if i already have a manual session open

When i execute a Log In test script for my application, the test fails right when the mouse clicks the application icon on my desktop. I have been doing a manual work-around of opening an active session of the application first and running the script. At this point, the test re-opens a new session of the application, logs in and completes the test with no issues. 
> How can i perform this test without manual intervention?

  • Yes.  There's really no need to automate the double-click on the icon.  What you REALLY are testing is not whether or not windows will serve up your application on a double-click but what the functionality of your application is after it is launched.  TestedApps is TestComplete's way of launching the application without having to depend upon the Windows environment doing it.

  • Marsha_R's avatar
    Marsha_R
    6 years ago

    Also, clicking the icon to launch your app means that your test will never run properly on another machine.  The icon will never be in exactly the same place.  tristaanogre's solution will avoid that problem.

5 Replies

    • rchavan's avatar
      rchavan
      New Contributor

      It does not require a double-click. Should i still try your method?

      • tristaanogre's avatar
        tristaanogre
        Esteemed Contributor

        Yes.  There's really no need to automate the double-click on the icon.  What you REALLY are testing is not whether or not windows will serve up your application on a double-click but what the functionality of your application is after it is launched.  TestedApps is TestComplete's way of launching the application without having to depend upon the Windows environment doing it.

    • rchavan's avatar
      rchavan
      New Contributor

      It does not require a double-click. Should i still try your method?