How do I fix the Notepad Issue
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Labels:
-
Desktop Testing
-
Test Results
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is that file name in the error message actually the name of the file you are trying to test?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How is Notepad declared in TestedApps, can you provide a screenshot?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Note that the classic system Notepad is used for editing text files when the new version of the Notepad is not available.
The issue presist with New verision of Notepad.
