Forum Discussion

Rocket's avatar
Rocket
New Contributor
11 months ago

How do I fix the Notepad Issue

Hello,

Recently I upgraded to Windows 11 with TestComplete and I am facing issues running Notepad for test comparison.

On running the test, I got the error below.
“Cannot find the c:\SESSION:uDpJ5CAjVEOpmP1JCiARJAAAAAEBAAAAAfRxxAIAAAAAAA=txt file.”

I am getting the error with this script below after updating Windows 11.

Function CompareTextFile(testingPath,goldStandardPath,fileName)
' check if notepad.exe is running then terminate it
Set p = Sys.WaitProcess("notepad")
if p.Exists then
p.Terminate
End if ' End if
' run notepad application
Call TestedApps.notepad.Run(1, True)
' delay
delay 500
Call Aliases.notepad.wndNotepad.Edit.Keys("^v")
' delay
delay 500
' Save values
Call Aliases.notepad.wndNotepad.Edit.Keys("^s")
delay 500

5 Replies

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3

    Is that file name in the error message actually the name of the file you are trying to test?

    • Rocket's avatar
      Rocket
      New Contributor

      No, the file name displayed in the error message is not used anywhere in the code. I am getting this error right after the notepad application is launched. 

       

      • Marsha_R's avatar
        Marsha_R
        Champion Level 3

        I did a Google search on: Cannot find the c:\SESSION:uDpJ5CAjVEOpmP1JCiARJAAAAAEBAAAAAfRxxAIAAAAAAA=txt file

         

        and there are many solutions offered from Microsoft and other sites. You'll need to look at those and see which one fits your situation.

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    How is Notepad declared in TestedApps, can you provide a screenshot?