User Guide for Coded UI Tests on Codeplex: http://tfsguides.codeplex.com/releases/view/48007
I'm still trying to understand Coded UI Tests. Can they be edited? Microsoft says not to edit the UI Map. It just seems difficult to get everything recorded correctly the first time. The guide doesn't explain how to change something after it is recorded, but on Page 8 it says "Click the “Show Recorder Steps” in order to see and edit the recorder steps". Maybe it helps to check the recorded steps before generating the code.
Thursday, August 26, 2010
Tuesday, August 24, 2010
WPF applications do not have a predefined exit command
I'm testing a Windows Presentation Foundation (WPF) application. When I click the X in the corner the window is closed, but the process is still running in Task Manager. This is listed as a bug in Microsoft Connect, but was marked Closed/Postponed in 2008.
StackOverflow thread: http://stackoverflow.com/questions/1286692/wpf-standard-commands-wheres-exit
StackOverflow thread: http://stackoverflow.com/questions/1286692/wpf-standard-commands-wheres-exit
Wednesday, August 18, 2010
legal names cause application errors
I was reading about long names to find examples that I could use in testing. I read this article about Ulrika Örtegren-Kärjenmäki who was banned from a flight because her name did not fit on the Ryanair boarding pass.
So I tried her name in a web application and saw JavaScript errors. The errors didn't happen until I tried viewing the name from other pages. Names may appear to save properly but you can't be sure until you actually try using them in all areas of the software.
Then I tried a different name with non-ASCII characters - Mötley Crüe, but did not see the same errors. So I tried changing it to Motley üCrue. Guess what? The same JavaScript errors were back.
The application error happens when the first character of the last name contains an umlaut.
So I tried her name in a web application and saw JavaScript errors. The errors didn't happen until I tried viewing the name from other pages. Names may appear to save properly but you can't be sure until you actually try using them in all areas of the software.
Then I tried a different name with non-ASCII characters - Mötley Crüe, but did not see the same errors. So I tried changing it to Motley üCrue. Guess what? The same JavaScript errors were back.
The application error happens when the first character of the last name contains an umlaut.
Saturday, August 14, 2010
strange error message
This error happened in SQL Server 2008
when you click New Query after editing a SQL script and are not connected to a server.
Steps to Reproduce:
1. edit a SQL script through Windows Explorer (open with SQL Management Studio)
2. click Cancel in the connect to database engine dialog
3. click New Query
That what usede to happen anyway. Today I cannot get the error to happen, so I am eith er missing a step or the bug was fixed. Now when I click New Query it prompts you to connect to a database.
Steps to Reproduce:
1. edit a SQL script through Windows Explorer (open with SQL Management Studio)
2. click Cancel in the connect to database engine dialog
3. click New Query
That what usede to happen anyway. Today I cannot get the error to happen, so I am eith er missing a step or the bug was fixed. Now when I click New Query it prompts you to connect to a database.
Monday, May 10, 2010
special user logins
Sometimes they are necessary. They create special scenarios that don't seem to be handled very well.
These are some of the problems I have seen with them:
1) Login 1000 is reserved as the "Administrator", but not stored in the database table. What happens if I make a new login 1000 and assign it read only permission? Hopefully the application prevents that, but sometimes it does not.
2) Administrator Login still has the menu option to allow its password to be changed. It definitely should allow the default password to be changed, just make sure the old one doesn't work too. Otherwise changing the default password was pointless.
3) Administrator Login is stored in the database table, but it can be deleted or renamed. Now I lost my special user.
4) Administrator Login 1000 is enabled only when the userlogin table is empty. When a login is deleted it marks a deleted flag true so the audit history can be kept instead of deleting the row. If all users are deleted nobody can get into the software because it only checks if the table is empty instead of also checking if all users are marked deleted.
5) Some special logins have special passwords. They could be generated using a formula or some other method. Does the special password work correctly?
6) The special user uses a weak password and it cannot be changed. Why even make a special user if it will be insecure? They would be better off with no logins at all.
7) The special logins are stored separately from the regular logins; in a text file, in the Windows registry, or in an Access database.
8) New menus were added to the program, but they weren't added for the special user. Now the user is no longer an Administrator.
These are some of the problems I have seen with them:
1) Login 1000 is reserved as the "Administrator", but not stored in the database table. What happens if I make a new login 1000 and assign it read only permission? Hopefully the application prevents that, but sometimes it does not.
2) Administrator Login still has the menu option to allow its password to be changed. It definitely should allow the default password to be changed, just make sure the old one doesn't work too. Otherwise changing the default password was pointless.
3) Administrator Login is stored in the database table, but it can be deleted or renamed. Now I lost my special user.
4) Administrator Login 1000 is enabled only when the userlogin table is empty. When a login is deleted it marks a deleted flag true so the audit history can be kept instead of deleting the row. If all users are deleted nobody can get into the software because it only checks if the table is empty instead of also checking if all users are marked deleted.
5) Some special logins have special passwords. They could be generated using a formula or some other method. Does the special password work correctly?
6) The special user uses a weak password and it cannot be changed. Why even make a special user if it will be insecure? They would be better off with no logins at all.
7) The special logins are stored separately from the regular logins; in a text file, in the Windows registry, or in an Access database.
8) New menus were added to the program, but they weren't added for the special user. Now the user is no longer an Administrator.
Monday, April 26, 2010
Running MSI on Virtual Machine and never ending message about disk space
I was running an msi on a virtual machine, but it kept displaying this message: "please wait while the installer finishes determining your disk requirements." I found an MSDN blog post that said to run the msi from the command line or restart the Windows Installer service.
Subscribe to:
Posts (Atom)
