Forum Discussion

hkonakanchi's avatar
hkonakanchi
Occasional Contributor
2 years ago

System checks for Object for every test

I had two projects in my project suite where one project is created as a base where all my desktop objects and the corresponding action for each and every control is written

  • Controls are mapped in name mapping
  • Scripts are written with Aliases being used

I had created the second project where the scripts and name mapping from the first are used as it is and it includes some tests as well

It is some kind of framework setup where the first project as a base project ( a kind of page object pattern ) and the second one re-uses the script and name mapping as linked items from the first

If I am trying to run tests, each and every test tries to identify the objects that are declared as aliases in each script

For example if I have something like var notepadwnd = Aliases["notepad"], the system is trying to find notepad for the default amount of time for each test. 

My tests are getting timeout as I have atleast 20 application which are like this and TestComplete is trying to find them increasing the test duration and thus failing the test due to timeout

Is there anything that I am missing here 

 

30 Replies

  • We have the same problem and it occurs only after running our tests on Win11 Pro 24h2. Everything was fine with Win 11 Pro 23h2.

    Do you use JScript ?

    • rraghvani's avatar
      rraghvani
      Icon for Champion Level 3 rankChampion Level 3

      DanNad since you also mentioned you're having similar issues, a quick search of the internet, suggests it's an issues with JScript/JScript Legacy on Windows 11 24H2. The patch update for Windows 11 24H2, seems to have caused conflicts with audio, bluetooth, webcams etc.

    • hkonakanchi's avatar
      hkonakanchi
      Occasional Contributor

      DanNadare you able to do anywork around ? I tried reducing the timeout to wait for an object to 100 ms but it is actually causing failures in some cases. Any for my test's which cleanup everything before test start, is actually causing overlap thus failing all the tests 

      • DanNad's avatar
        DanNad
        Contributor

        hkonakanchi 
        We opened a smartbear support ticket. Last update was that this issue is currently under investigation. 

        The only workaround currently would be to convert our project from jscript to javascript but this would be a very time consuming task since our project grew over the years.

        We still hope this will be fixed soon.