Total Pageviews

Featured Post

Excel tips and tricks

Things to Remember Borders can be used with the shortcut key Alt + H + B, which will directly take us to the Border option. Giving a border...

Wednesday, January 11, 2012

Automation info

Automation challenges:

1)changes made to code Ui got modified then previously written automation fails?
2)UAC ,sleep state, autologon ,screen savers.
3)international /localisation automation
4)os differences.( vista ,Xp,win7 ,win8 Varies in functioning)
5)Expired Trial
6)different Browsers are there writing automation that is compatible with all is not possible.
7)No acces to files accessions permissions issue net work iuuses.


Using VSTS for Automation

writing unit test using vsts:
http://msdn.microsoft.com/en-us/library/ff650225.aspx

main atrributes in unit testing :
[TestInitialization]
[TestMethod]
[TestCleanup]
[ExceptedException] to validate exceptions thrown by the code.

Executing automation:
using vsts
.Make sure loader is set on vsts to get files to initialize tests.
.Select the Debug option
go to start option --?cmd line arguments text box. This instructs loader to load dll and execute the script using loaders run time option.
using command prompt
Go to loaders location in root drive ex: C:\vsts\loader ...
or using tets tols Ex: using wtt tool.


why to automate:
To run regression tests
To run bvts daily basis we should automate.


For loging :

Use system.Diagnostics.

http://www.codeproject.com/KB/dotnet/logger.aspx

Dos:

http://www.robvanderwoude.com/exit.php

1) Map network drive
net use j: \\sourcepath

1)Copy remote bits

WINDOWS AUTOMATION:


robocopy \\src \\desti /mir

net use login remotely.