Saturday, March 20, 2010

File Exist script in Perl

#!/usr/bin/perl -w

$filename = 'C:\myfile.txt';

if (-e $filename) {

    print "File Exists!";

}
else
{

print "File does not Exist!";

}

Thursday, January 21, 2010

What is Netlimiter?

NetLimiter is an internet traffic control and monitoring tool designed for Windows.

We can use NetLimiter to set download/upload transfer rate limits for applications or even single connection and monitor their internet traffic.

Netlimiter also offers comprehensive set of internet statistical tools. It includes real-time traffic measurement and long-term per-application internet traffic statistics.

HIGHLIGHTS:

1. Network Monitor

NetLimiter shows list of all applications communicating over network. It will show connections, transfer-rates and more.

2. Bandwidth-Limiter/Bandwidth Shaper

You can use NetLimiter to set download or upload transfer rate limits for applications, connections or groups of them.
With limits we can easily manage internet connection?s bandwidth (bandwidth shaper or bandwidth controller)

3. Statistical tool

This feature lets you to track your internet traffic history since you've installed NetLimiter.

4.Additional network information

NetLimiter 2 provides you with and additional information like WHOIS, traceroute etc.

5. Rule scheduler (and more...)

Remote administration, Personal firewall, Running as WinNT service, User rights, Chart, Advanced Rule editor and scheduler, Zone based traffic management...

MAIN FEATURES:

- Limits

We can use NetLimiter to set download/upload transfer rate limits for applications/connections. With limits we can easily manage our internet connection?s bandwidth (bandwidth shaper) and share it among all applications running on your computer.

- Grants

When we set grant for application/connection then it means that we grant specified bandwidth for it. If other application/connections take too much bandwidth, then it is taken from them and is given to application/connection with granted bandwidth.

- Network monitor

NetLimiter shows list of all applications communicating over network  with their connections and transfer rates.

- Personal firewall functionality

We can allow/deny certain applications to connect to/from any network.

- Zones

NetLimiter monitors and controls traffic separately on three predefined zones - My Computer, Local Network and Internet. For example, we can limit the traffic rate of our browser downloading from the Internet and let it download from intranet at full speed.

- Filters

With filters we can define groups of connections/applications and then apply rules to them.

- Rule editor and scheduler

Rule editor helps us to create advanced rules. For example, we can create limit/firewall rule for a group of applications which is valid only in a given time interval.

- Network manager

Using Network manager we can assign networks present on you computer to NetLimiter zones. It's also possible to add your own networks.

- Statistics


NetLimiter stats module is intended for long-term measurement of internet traffic. This feature lets us to track our internet traffic history since we have installed NetLimiter. NetLimiter is able to automatically export statistical data to disk.

- Traffic chart

Traffic chart shows application's or connection's real time activity.

- Remote administration

We can control and monitor other computers remotely from one place.

To know more Click Here

Monday, January 11, 2010

IDs and CLASSs in CSS...

IDs and CLASSs in CSS:

Apart from styles for a HTML tag CSS aslo allows us to specify our own selectors called "id" and "class".

ID SELECTOR:

The id selector is used to specify a style for a single and unique element. The id selector uses id attribute of HTML-element and it's defined with a #.

#ID1
{
text-align:right;
color:blue;
}

CLASS SELECTOR:

Class selector is used to specify a style for a group of HTML elements. Class selector is most often used on several HTML elements. This allows you to set a particular style for any HTML elements with the same class.

The class selector uses the HTML class attribute, and is defined with a "."

A.left
{
text-align:left;
}

According to the line above all A elements with class="left" will be left aligned.

NOTE: Ids/Calsses does not work in Mozilla/Firefox if their names start with a number.

Basics of CSS and how its useful for your website...

Basics of CSS and how its useful for your website

Cascading Style Sheets

- Styles define  how to display HTML elements
- Styles were added to HTML 4.0 to solve a problem
- External Style Sheets can save a lot of work
- External Style Sheets are stored in CSS files

Development of large web sites where fonts and color information were added to every single page became a long and expensive process because of repetitive inserstion of required tags.

World Wide Web Consortium (W3C) created CSS to solve this problem...

CSS SYNTAX:

A CSS rule has two main parts: a selector, and one or more declarations.Each declaration consists of a property and a value.The property is the style attribute you want to change. Each property has a value.

/* Commnets */
H1
{
color:blue;
text-align:left;
}

Saturday, January 9, 2010

What are Checkpoints in QTP?

What are Checkpoints in QTP?

A checkpoint is a verification point that compares a current value for a specified property with the expected value for that property.

Types of Checkpoints in QTP:

- Standard Checkpoint: Checks the property value of the object in an application or Webpage. It checks buttons,Radiobuttons,Comboboxes etc

- Bitmap checkpoint: Checks the value of an image in the application.

- Text checkpoins: Checks whether the text string is displayed in the appropriate place in your application or on a Web page

- Text Area checkpoint
- Database checkpoint
: Checks the contents of a database accessed by the application

- XML Checkpoint: Checks the data content of XML documents in the application.

Note:
- Before creating checkpoints on web objects we have to select web-test option in ADD-IN Manager.
- If the objects developed in HTML we can use Standard Check point.
- If the Objects developed in XML we can use XML Check point.


How Checkpoints work?

In Checkpoints, we define what should be the state of an object at particular time. e.g.- If I have an application where a particular button gets enabled on some specific operation. I will automate that operation and will apply a checkpoint that Button should be enabled and its value should be 'OK'.... So we apply checkpoint on properties of different types of objects..

Sample Objects that QuickTest can be verified:

Windows:
- Window
- Edit-Field
- Drop-Down List
- Menu command
- Radio Button
- Checkbox
- Windows Object
- Status Bar
- Text Area

WEB:
- Browser
- Text Area
- Text Link
- Images
- Image Link
- Edit Field
- Drop Down List
- checkbox
- Radio Button
- Tables/Grids
- web Elements