Ask a Question

How do I fix the Notepad Issue

Rocket
New Contributor

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 5
Marsha_R
Champion Level 3

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

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. 

Rocket_0-1686182136408.png

 

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
Champion Level 3

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

I tried different solutions offered from Microsoft and other sites but the issue still persists.

 

However, I uninstalled the latest notepad from windows, now when I execute the test, classic system Notepad is launched and working fine, as displayed in the below screen capture.

Rocket_1-1686235378584.png

 

Note that the classic system Notepad is used for editing text files when the new version of the Notepad is not available. 

Rocket_0-1686234945644.png

 

The issue presist with New verision of Notepad. 

cancel
Showing results for 
Search instead for 
Did you mean: