Skip to content

The most important and useful C# methods for SETUP/TEARDOWN autotests in Ranorex IDE.

License

Notifications You must be signed in to change notification settings

seriousQA/Ranorex-Methods-Libraries

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ranorex-Methods-Libraries

The libraries contain the most important and useful C# methods for creating autotests in Ranorex IDE.

Requirements:

  • Windows
  • Ranorex Studio

SETUPlib is a SETUP code collection and includes:

  • FirstOpenApp() to run 32-bit or 64-bit application;
  • REGdelete() to delete from the registry the key for application;
  • RMDIR() to remove such traces of a test program like \Documents, \Roaming and s.o.;
  • StartDialogCreateNewProject() to start a test product and create a new project in it (as GUI method example);
  • OpenProjectStartDialog() to open a specific project in test product (as GUI method example);
  • ResizeWindow() to resize a window to actually monitor resolution;
  • DeleteFilesFromDIR() to remove from \FolderResult all files created during the test run;
  • CheckDamp() to send a dump with a comment (as GUI method example);
  • CreateFolderResult() to create a ResultFolder for each test product.

SetKeyboardLayout TestModule is using to change Windows OS keyboard layout using C#. For example, U.S. English layout = "00010409", German layout = "00010407", Russian layout = "00010419". More Info from MSDN.

TheFirstRun TestModule is using to run 32-bit or 64-bit test application and resize window.

StartPopupWatcher TestModule is using to start a PopupWatcher to handle dialogs that can possibly come up during test run.

TEARDOWNlib is a TEARDOWN code collection and includes:

  • CloseApp() to find and kill process of test product;
  • CleanupFolderResult() to delete a ResultFolder for each test product;
  • CloseProjectWindow() to close the test product (as GUI method example);
  • CloseInstancesApp() to close all instances of application;
  • KillProcessTree() to kill a process tree and all children using taskkill;
  • KillProcessAndChildren() to kill a process and all children using ManagementObjectSearcher.

About

The most important and useful C# methods for SETUP/TEARDOWN autotests in Ranorex IDE.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages