Here's another interesting story about type of problems we've to deal at Browserling and Testling. This story is about how we implemented Windows user session cycling for Testling.

Here's what it is.

We run JavaScript tests on Windows for days straight and Windows sessions become really unstable after a while. When that happens we start getting errors such as Internet Explorer timing out randomly although everything is fine:


Internet Explorer cannot display the website

Or remote desktop connection gets messed up and I'm no longer able to get into the server:


Remote Desktop can't connect to the remote computer

Or Chrome starts to randomly crash:


Aww snap

None of these errors happen when the Windows session is fresh, so to work around these issues we implemented a Windows session cycler that simply logs out the user that runs tests, and logs it back in again every 6 hours. The implementation is pretty straight forward and just uses the standard Windows command line tools for managing users, such as users.exe and logoff.exe, as well as rdesktop.exe.

The user cycler is about a 100 line program but here's how it basically works:

user_id = find user id of testling user using users.exe
call <logout.exe user_id>
wait until user has been logged off
login testling user again using rdesktop.exe

The testling user's startup script initializes the testing environment and tests continue running after a short interruption.

A better solution would be to boot a clean Windows instance for every test but we're not there yet. Until next time.

Comments

Allen Peterson Permalink
February 25, 2014, 12:39

IT professionals and students always deal with tough programming. When they are going to introduce their program before others then it is very necessary for them to get prepared their assignments and presentations. If you think you are unable to complete it on time then you can ask to write essays for me to the professional writers and on the next way get the well written papers.

April 15, 2014, 06:10

that is very great idea start i will take help from this post i really happy from.

November 21, 2014, 10:54

Fantastic approach! This is really imperative and mind clearing vitalizing post

November 29, 2014, 09:01

Its features can be quickly and completely covering variations in design and color, sound and heat insulation and so on.

Bharath Kumar Permalink
November 29, 2014, 18:32

This is gonna be well secured and maintained with security. So whats my doubt is is there anything like session limits after logging in with time limitations and check here to browse all details of State Bank of India branches details of Srikakulam Dist.

December 01, 2014, 09:17

Mention the profundity of your certifications, capacities and knowledge . hint the possible government to your proceed for a a lot of specific clarification of your accreditation.

Kaur deep Permalink
December 04, 2014, 03:26

Excellent and knowledgeable links and post.thanks for sharing.
Now, The Time has come for the Happy New Year 2015. It wil bring a lot fo happinesin our life.
Happy New Year 2015
And I am sure, You wil anjoy this new year day with yoru fiends and wil send some images wishes,
New Year 2015

Happy New Year 2015 Wishes
Greetings to yoru close ones, Your friends, You lover, etc..
Happy New Year 2015 Images
Even I am waititng for that day, because it just changes our life.
Happy New Year 2015 Greetings

Happy New Year 2015 SMS
So, That's why I am commenting here to wish you a very happy new year.
Happy New Year 2015 Messages
I hope this New year 2015 wil bring success to your website. But before that Merry Christmas is coming.
Merry Christmas Quotes
It is also a big event for everyone.
Merry Christmas Pictures
Everyone knows that Christmas is a day when People seems to be very happy, they just leave all sadness behind.
Merry Christmas Wallpapers
And I am sure, you also enjoy this Merry Christmas day of 2014.
Christmas day Images

Christmas stocking
But if you are not looking out to enjoy this christmas, then you are missing out on a big thing, because it really brings happiness.
Merry Christmas Images

Merry Christmas 2014
So, what you are waiting for?
Merry Christmas 2015
Enjoy This Merry Christmas day. Cheers :).

December 08, 2014, 10:22

well said

December 08, 2014, 12:56

This site is very good site. Hopefully useful information on this site and this site, you will have more progress

December 16, 2014, 11:01

Articles and photos on this site is interesting. Thank you for this material

Diana Permalink
December 17, 2014, 15:56

This article is quite helpful and informative too. I enjoyed a lot. Thanks for sharing such a great article.

Beautiful Christmas Quotes for your friends and family...
christmas quotes
Christmas Messages for Whatsapp

Best Christmas Greetings for your friends and family...
christmas greeting
christmas wishes

What to Write in Christmas Card....... Check out best Christmas Greeting Card Words
What to Write in Christmas Card

Get Beautiful and Unique Christmas Wallpapers for free
free christmas wallpaper
christmas tree decorating ideas

Thanks for sharing such a great article.

Leave a new comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the word "0day_404": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.

Advertisements