Posts

Showing posts with the label testing

Studying C# - process vs thread

Process Process is a virtual address space. Threads They execute code. They can be considered as a path of execution through a single process. This means they follow a path of execution through an exe and probably many dll's in the process space. Threads usually have access to all the code within a process space. But in .Net managed code, the accessible of the threads are limited to the app domain. In windows, when all the the threads have exited from a process space, windows calls the "tear down" method of the process to destroy the process. Multi threading advantages 1. Can utilize multi-cores in multi-core machines 2. Can give a more responsive UI by increasing the priority for the UI thread. 3. Perform CPU bound operations while I/O operations are waiting to complete. Disadvantages In a single thread CPU, it will take more time. Explanation This is due to the extra time for scheduler to stop a thread and assign the remaining part of the work...

Automation using selenium

Image
I will provide the steps for automation testing as a series of tutorials. The automation is going to be done using the selenium tool (free) and Netbeans IDE (free again)! Steps 1. Download firefox browser, if you already don't have one. 2. Start firefox and go to the selenium website. Selenium is available as a plugin for firefox. http://selenium.openqa.org/ We need the "selenium ide" plugin. So we go here : http://release.openqa.org/selenium-ide/1.0-beta-2/selenium-ide-1.0-beta-2.xpi 3. When the browser prompts you, say "open the file" and the plugin will get installed in your browser. 4. Alternatively, you could save the file to your desktop. Now drag and drop the file into the browser window. This will install the plugin into Firefox. Result You should be able to access the plugin from the tools menu. See the screenshot below.

How to install a ruby build - dependent on mysql

Download the build from SVN . Pre-requisite Tortoise svn is setup and is working properly. Ruby and rake are installed. Steps 1. In any directory, create a new folder. Rename it to something like "Test build version 0.5 build 1". 2. Right click on the folder and select "SVN checkout" from the menu. 3. In the pop-up "Checkout", make sure the "URL of repository" field has the correct data. 4. Now in the "Revision" heading, select the "Revision" check box and enter the revision number (say "333"). 5. Click on "ok". Result: The build gets downloaded to the new directory you created in step 1. Configuring the build. 1.  Now go to the directory "Test build version 0.5 build 1". Navigate to config->database.yml 2. Edit the file "database.yml". 3. Under the heading "development", change the database field to something like "Testdatabase_05_2". 4. Change the password to cur...