 |
|
|
|
 |
|
 |
|
|
|
 |
|
 |
 |
|
 |
 |
|
|
 |
|
 |
|
|
|
|
|
 |
Location: Blogs ArrowNuke Blog |
 |
| Posted by: Ryan Morgan |
8/4/2006 6:19 AM |
One of the pains of module development and skin development is being able to view your work as the user would view it without having to logout and log back in. This is especially true if you are testing different permission sets and you want to see what it looks like as the Host, the Administrator and a custom role that you created. This lab walks through a simple tool that allows you to have a separate instance of IE running as a different user with it's own profile, cookies etc.
Windows software developers are undoubtedly familiar with the Run As feature in Windows. It allows you to run a program as a different user that the one currently logged in. This is an indispensable tool for developers that are developing on a machine where they have admin rights and they are creating a program that needs to be run in a non-admin environment (also known as the real world). This is all the background I feel led to give, the rest of this lab is simple step-by-step instructions on how to make the technique work for you.
How to Create a Test User to Run IE
- Go to Start>Administrative Tools>Computer Management
- Create a new user with the username and password set to "test"
- Create a new shortcut on the desktop
- Set it to the following
- %windir%\system32\runas.exe /profile /user:<domain>\test /savecred "c:\program files\internet explorer\iexplore.exe"
- Save the shortcut
- Double-click to run IE as the test user
- When it prompts you for the password, type in "test"
- If you feel like it, you can also right-click on the shortcut, go to properties and click "Change Icon" to make it prettier for those developers that are more visually sensitive.
That's it - pretty easy huh? Now, when you are wanting to test things as an Admin and as a lowly registered user, you can open your Test Browser and have a completely seperate session with seperate cookies and everything - because it is being run through an entirely different user!
Happy Coding! |
|
| Permalink |
Trackback |
Comments (4)
Add Comment
|
Re: Creating a "Test Browser" for a True Preview without the Logout/Log-back-in Pain |
By john on
8/8/2006 8:06 AM |
| Thank you. I hate logging on and off to do this. This is very helpful. Thank you for the videos also. |
|
|
Re: Creating a "Test Browser" for a True Preview without the Logout/Log-back-in Pain |
By angie on
10/14/2006 12:43 PM |
I tried that, using XP Home, it wasn't under Computer Management. I had to create a user using User Accounts. Created the desktop shortcut. When I launched it, a DOS box came up, when I typed the password in nothing typed in the DOS box and when I pressed Enter the DOS window closed. So that didn't work for me and I have no idea why as I am not a developer. Nice idea though. |
|
|
Re: Creating a "Test Browser" for a True Preview without the Logout/Log-back-in Pain |
By raviraj on
10/19/2006 7:11 AM |
Created the desktop shortcut. When I launched it, a DOS box came up, when I typed the password in nothing typed in the DOS box and when I pressed Enter the DOS window closed. So that didn't work for me and I have no idea why as I am not a developer. Nice idea though.
------------------------------- ----------------------- ---------------- ---------- --- Raviraj -
That means you are not putting in the correct password. Try changing the password and trying it again. |
|
|
Remember to change before trying this! |
By magsto on
8/25/2008 1:57 PM |
| You should replace the tag in the path to your computer name. I could bet that this is the error for both angie and raviraj... |
|
|
|
|
 |
|
 |
|
|
|
2006 Arrow Consulting & Design, Inc
Terms Of Use Privacy Statement
|
 |
 |
 |
 |
 |