Monday, December 28, 2015

HC-SR04 ULTRASONIC SENSOR

Ultrasonic sensor HC-SR04 uses sonar wave to determine distance. this sensor provides distance sensing without direct contact. HC-SR04 ultrasonic sensor able to read distance from minimum 2CM to maximum 400 CM. Sun light and other sensor can not affected this sensor.
Features
  
Spec Value
Power Supply 5V DC
Current 15 mA
Effective Angle 15°
Distance sensing 2 CM - 400 CM
Angle sensing 30°

There are 4 pin on HC-SR04. they are : 

Pin Name -
VCC Power Source 5V
Trig Sonar Trigger
Echo Sonar Receiver
GND Ground
HC-SR04 calculates distance must receive power DC 5V within 10 μS(microseconds). This will triggered Trig pin to send 8 sonar wave within 30 KHz and waiting for wave reflection. wave reflection then received by Echo pin. interval time between wave reflection used to calculates distance.
0

Testing Tool Selenium IDE Overview

Selenium IDE is easy way to create test case automation.If you are a Software Tester or SQA/QC Engineer specialized in web environment want to know about easiest testing tool to create automaton test case, then this tool is the best tool you can use.
what you need is latest Mozzila Firefox and Selenium IDE extension.
you can easily install this tool. on this blog you can also find how to install Selenium IDE article.

Selenium IDE provides easy way to insert commands. you can add command manually or you can just record it from your web page. It helps the Tester to enter commands more quickly or restricts entering invalid commands.
How to access selenium IDE?
once you've installed Selenium IDE on Mozzila Firefox, you can open it with Ctrl+Alt+S.

Using Firebug
Mozzila Firebug tool also can be used to ease locating HTML Elements. you can add Firebug easily from Mozzila Extensions or you can find on this blog how to install Firebug.

Selenium IDE Features

  
 File Menu contains features to create, edit, save, open test cases. on this menu you can also export   test case as specific file format such as Java, PHP, C#, Ruby, Python that can run on Selenium RC and Web Driver.
You can insert new commands or comment on Edit menu, or you can just type it on command's box


Lets we start using selenium IDE, we will learn by doing now.
1. On BaseURL bar contain web page URL. you can type https://www.google.com/. we use this address for now.
2. Insert new commands by type it directly. Just type 'Open', it will open your base url.
3. Now run your simple test case with play current test case toolbar

4. That test will lead you to google.com
Now lets we try to put in some search keyword. On this step you will use Firebug

5. Right click on google search box->Inspect Element with Firebug
6. Elements information should be shown on bottom of browser
7. Take a look at bottom of the browser. find 'id' for selected element
 we know that search box has id 'lst-ib'
8. Add 'type' command below 'open' command you've created before. Fill target field with search box id 'lst-ib' and value with 'yourinformatics.blogspot.com'
command = Type
target  = lst-ib
value = yourinformatics.blogspot.com
that command will type yourinformatics.blogspot.com automatically on search box

your test case should be like this now


google should automatically search your keyword without click search button. if not, you can add one more command using google search button id.

open a new tab. open your selenium IDE. click



your browser will automatically open google.com and type yourinformatics.blogspot.com

That's IT!

 
1

How to Install Firebug

Firebug is tool for web development. This tool helps developers or testers to identify web elements.
Firebug is available on Mozzila Firefox, with this tool you can look, edit, debug and monitor web elements such as HTML, CSS and Javascript.

Installing Firebug is easy.
steps
1. Open your Firefox browser
2. Click open menu on top right corner (on version 43.0.2)
3. Chose Add-Ons
 4. Go to Extensions tab
 5. Type Firebug on search box
 6. Add to Firefox



Now you have already installed firebug. once it installed, firebug icon will show on Firefox's toolbar
You also can access firebug with right click on any webpage element you desire->Inspect element with Firebug.

That's IT!
0

Sunday, December 27, 2015

How to Install Selenium IDE

Selenium IDE is an automation tool for Mozzila Firefox browser only.
This tool can automate test cases with various scenarios for faster testing purposes.
You can set up your own Test Cases manually and automatically using recording.
Selenium IDE is easy way for Software Tester or SQA/QC Engineer to assist their work more efficient.
You can set up this tool easily :
1. Make sure you have installed Mozzila Firefox (this tutorial use version 43.0.2)
2. Open your Mozzila Firefox
3. Open Menu on upper right corner screen

 4. Click Add-Ons
 5. Click Extensions
 6. Type and search on search box "Selenium IDE"
 7. Scroll down till you find "Selenium IDE"
 8. Hit Add to firefox button


 9. Now you have already installed Selenium IDE. (CTRL+ALT+S to open it)

That's IT!




1

Show File Extension on Windows

What is File extensions?
File extensions is a period that is often followed by three characters, but may also be one, two, or four characters long (wikipedia) to identify the type of file.
such as 
'.mp3' for audio files
'.jpg' for image files
'.mpeg' for video files
'.html' for html files
Having trouble in file extension?
Unable to rename file with new extension?

here some steps to change file extensions in windows
WINDOWS 7
steps
1. Open file explorer /  Computer / windows explorer. (Ctrl+E) start->Computer
2. Click on 'Organize' in the left top corner screen
3. Choose Folder and Search Options
4. Go to View Tab, uncheck 'hide extensions for known file types'
5. Click Apply

WINDOWS 8
1. Open Windows explorer (Ctrl+E)
2. Go to View Tab
3. Click Options button -> Change Folder and Search Options
4. Go to View Tab
5. find and uncheck "Hide extensions for file types is known"

WINDOWS 10
1. Open File Exlporer->This PC
2. Go to View Tab
3. Check on 'File name extensions' Box

Now you can change name of file with its extension

That's IT!


0

HTML Tag

An HTML tag is composed of the name of the element, surrounded by angle brackets. An end tag also has a slash after the opening angle bracket, to distinguish it from the start tag. (wikipedia). 
example
HTML tag could be :
<openingTag> </closingTag>
<openingandclosingTag />

here some HTML tag with its description
<HTML> </HTML> = it is an element to define HTML document
example of use
<HTML>
.
..
....
.....
</HTML>

<HEAD> </HEAD> = it is an element to define document title, styles, links, scripts, and other meta information.
example of use
<HTML>
 <HEAD>
 ..links
 ....metadata
 ..... title
 </HEAD>

</HTML>
 .
<BODY> </BODY> = it is an element that contains all the contents of an HTML document, such as text, hyperlinks, images, tables, lists etc.
example of use

<HTML>
 <HEAD>
 ..links
 ....metadata
 ..... title
 </HEAD>
 <BODY>
 ..texts
 ...images
 .....list
 ......hyperlinks
 </BODY>

</HTML>
0

How to Open Notepad

Notepad is a simple text editor for Microsoft Windows and a basic text-editing program which enables computer users to create documents(wikipedia)

how to open
Windows 7
1. Click Start 
2. Type "Notepad"
3. Click Enter
or
1. Click Start -> all programs -> accessories -> Notepad

Windows 8 
1. Type "Notepad" on Start Screen
2. Click on Notepad to open it
On the Metro Start screen, type: notepad
•    Notepad will appear on the left of your screen
•    Click Notepad to open it

Windows 10
1. Click Start
2. All Apps
3. Windows Accessories
4. Click Notepad

That's IT!
0