Friday, August 19, 2011

Mobile: Steps to perform video recording for android device

ScreenCasting :  Android Device - Samsung Galaxy S on Windows 7.

Download and Install JDK 6 or above, from http://www.java.com/en/download/chrome.jsp?locale=en
Download and Install JRE 6 or high, http://www.oracle.com/technetwork/java/javase/downloads/index.html
Download and Install Android SDK, from http://developer.android.com/sdk/index.html
(Depending on your OS, 32Bit or 64Bit)
Download and Install Droid Explorer from, http://de.codeplex.com/releases/view/66510
(Depending on your OS, 32Bit or 64Bit)
Download and Install Jing, from http://www.techsmith.com/jing/

Now, Connect your Android device with PC via USB.
Launch Droid Explorer, which will automatically detect your Android Device.
Click on Green Android icon of Droid Explorer.





Happy to iGUIDE :-)

Wednesday, August 10, 2011

How to Record Android screen on any OS ?


Steps:

   1.  Download Android SDK, from  http://developer.android.com/sdk/index.html

  2.  Download "droidAtScreen-0.3" from  http://blog.ribomation.com/2010/01/droidscreen/

  3.  Follow further steps from the Video,

       

Thursday, June 2, 2011

Potential Risks

The test manager is also responsible for identification of  Potential Risks that might impact testing. Some of the primary testing risks include:

Not Enough Training/Lack of Test Competency
The majority of IT personnel have not been formally trained in testing, and only about half of full-time independent testing personnel have been trained in testing techniques. This causes a great deal of misunderstanding and misapplication of testing techniques.

Us versus Them Mentality
This common problem arises when developers and testers are on opposite sides of the testing issue. Each feels that it is “out to get” the other. Often, the political infighting takes up energy, sidetracks the project, and accomplishes little except to negatively impact relationships.

Lack of Test Tools
IT management may have the attitude that test tools are a luxury. Manual testing can be an overwhelming task. Although more than just tools are needed, trying to test effectively without tools is like trying to dig a trench with a spoon.

Lack of Management Understanding and Support of Testing
Support for testing must come from the top, otherwise staff will not take the job seriously and testers’ morale will suffer. Management support goes beyond financial provisions; management must also make the tough calls to deliver the software on time with defects or take a little longer and do the job right.

Lack of Customer and User Involvement
Users and customers may be shut out of the testing process, or perhaps they don’t want to be involved. Users and customers play one of the most critical roles in testing; making sure the software works from a business perspective.

Not Enough Schedule or Budget for Testing
This is a common complaint. The challenge is to prioritize the plan to test the right things in the given time.

Over Reliance on Independent Testers
Sometimes called the “throw it over the wall” syndrome, developers know that independent testers will check their work, so they focus on coding and let the testers do the testing. Unfortunately, this results in higher defect levels and longer testing times.

Rapid Change
 In some technologies, especially Rapid Application Development (RAD), the software is created and modified faster than the testers can test it. This highlights the need for automation, but also for version and release management.

Testers are in A Lose-Lose Situation
On the one hand, if the testers report too many defects, they are blamed for delaying the project. Conversely, if the testers do not find the critical defects, they are blamed for poor quality.

Having to Say “No”
Having to say, “No, the software is not ready for production,” is the single toughest dilemma for testers. Nobody on the project likes to hear that and frequently testers succumb to the pressures of schedule and cost.

Test Environment
The work environment is not conducive to effective and efficient testing.

New technology
The new focus on client/server, Intranet, and Internet applications has introduced even more risk to the test process. These multi-tiered systems are more complex than traditional mainframe systems, and therefore have a higher level of risk associated with their testing and implementation. Security, performance, availability, complex component integration, and a team new to the technology are just a few of these new risk factors.

New developmental processes
Along with these new delivery platforms come new methods for software development. Project teams have moved away from traditional “waterfall” methods, and follow a much more iterative approach to development and delivery. An integral part of this iterative approach is that testing activities are more integrated across the development cycle than before. Traditional system testing is not just conducted at the end of development, but may be conducted multiple times throughout the project for major components, and then completed once all development is complete.

Wednesday, April 6, 2011

UNIX Commands


Syntax :     $ CommandName <-Options> <Arguments> 

Command Name :  Operation to be performed Lower Case. 

<-Options> : Controls O/p of Command  as well as operation


<Arguments> : Data processed to command


Options always start with hyphen (-)

1] Command Name: uname      => Displays the OS name

   
$ uname

Displays the OS name

$ uname –v

Displays release date of OS

$ uname –r

Displays version of the OS


2] Command Name: who   => Displays all the logged users of UNIX.


$ who

Displays all logged in users, login name & time of login.

$ whoami

user 2

Displays the user login name


3] finger: List all the logged user in details

$ finger 

Details of all the users are listed like, login name, actual name, phone, emailed, Office.

4] pwd: (Print working directory): Prints the current working directory path.

$ pwd

   /home/demo/batch2/class3

Monday, March 28, 2011

SDLC And STLC

What is Software Development Life Cycle?

The Software Development Life Cycle is a step-by-step process involved in the development of a software product. It is also denoted as Software Development process in certain parts of the world. The whole process is generally classified into a set of steps and a specific operation will be carried out in each of the steps.

Classification
The basic classification of the whole process is as follows

  • Planning
  • Analysis
  • Design
  • Development
  • Implementation
  • Testing
  • Deployment
  • Maintenance
Each of the steps of the process has its own importance and plays a significant part in the product development. The description of each of the steps can give a better understanding.

Planning
This is the first and foremost stage in the development and one of the most important stages. The basic motive is to plan the total project and to estimate the merits and demerits of the project. The Planning phase includes the definition of the intended system, development of the project plan, and Parallel management of the plan throughout the proceedings of the development.

A good and matured plan can create a very good initiative and can positively affect the complete project.

Analysis
The main aim of the analysis phase is to perform statistics and requirements gathering. Based on the analysis of the project and due to the influence of the results of the planning phase, the requirements for the project are decided and gathered.

Once the requirements for the project are gathered, they are prioritized and made ready for further use. The decisions taken in the analysis phase are out and out due to the requirements analysis. Proceedings after the current phase are defined.

Design
Once the analysis is over, the design phase begins. The aim is to create the architecture of the total system. This is one of the important stages of the process and serves to be a benchmark stage since the errors performed until this stage and during this stage can be cleared here.

Most of the developers have the habit of developing a prototype of the entire software and represent the software as a miniature model. The flaws, both technical and design, can be found and removed and the entire process can be redesigned.

Development and Implementation
The development and implementation phase is the most important phase since it is the phase where the main part of the project is done. The basic works include the design of the basic technical architecture and the maintenance of the database records and programs related to the development process.

One of the main scenarios is the implementation of the prototype model into a full-fledged working environment, which is the final product or software.

Testing
The testing phase is one of the final stages of the development process and this is the phase where the final adjustments are made before presenting the completely developed software to the end-user.

In general, the testers encounter the problem of removing the logical errors and bugs. The test conditions which are decided in the analysis phase are applied to the system and if the output obtained is equal to the intended output, it means that the software is ready to be provided to the user.

Maintenance
The toughest job is encountered in the maintenance phase which normally accounts for the highest amount of money. The maintenance team is decided such that they monitor on the change in organization of the software and report to the developers, in case a need arises.





Type of Models:


Waterfall Model


Spiral Model


V Model


Prototype Model


Agile Model
                             
                                                          ***


STLC



Learn-SQL

For More Info : Learn - SQL (Source: www.w3schools.com)


For Quick Reference

Different SQL JOINs

Before we continue with examples, we will list the types of JOIN you can use, and the differences between them.
  • JOIN: Return rows when there is at least one match in both tables
  • LEFT JOIN: Return all rows from the left table, even if there are no matches in the right table
  • RIGHT JOIN: Return all rows from the right table, even if there are no matches in the left table
  • FULL JOIN: Return rows when there is a match in one of the tables

SQL INNER JOIN Example

The "Persons" table:
P_Id LastName FirstName Address City
1 Hansen Ola Timoteivn 10 Sandnes
2 Svendson Tove Borgvn 23 Sandnes
3 Pettersen Kari Storgt 20 Stavanger

The "Orders" table:
O_Id OrderNo P_Id
1 77895 3
2 44678 3
3 22456 1
4 24562 1
5 34764 15

Now we want to list all the persons with any orders.
We use the following SELECT statement:

SELECT Persons.LastName, Persons.FirstName, Orders.OrderNo
FROM Persons
INNER JOIN Orders
ON Persons.P_Id=Orders.P_Id
ORDER BY Persons.LastName

The result-set will look like this:
LastName FirstName OrderNo
Hansen Ola 22456
Hansen Ola 24562
Pettersen Kari 77895
Pettersen Kari 44678
The INNER JOIN keyword return rows when there is at least one match in both tables. If there are rows in "Persons" that do not have matches in "Orders", those rows will NOT be listed.

SQL LEFT JOIN Keyword

The LEFT JOIN keyword returns all rows from the left table (table_name1), even if there are no matches in the right table (table_name2).

SELECT Persons.LastName, Persons.FirstName, Orders.OrderNo
FROM Persons
LEFT JOIN Orders
ON Persons.P_Id=Orders.P_Id
ORDER BY Persons.LastName


The result-set will look like this:
LastName FirstName OrderNo
Hansen Ola 22456
Hansen Ola 24562
Pettersen Kari 77895
Pettersen Kari 44678
Svendson Tove

SQL RIGHT JOIN Keyword

The RIGHT JOIN keyword returns all the rows from the right table (table_name2), even if there are no matches in the left table (table_name1).

SELECT Persons.LastName, Persons.FirstName, Orders.OrderNo
FROM Persons
RIGHT JOIN Orders
ON Persons.P_Id=Orders.P_Id
ORDER BY Persons.LastName


The result-set will look like this:
LastName FirstName OrderNo
Hansen Ola 22456
Hansen Ola 24562
Pettersen Kari 77895
Pettersen Kari 44678
34764

SQL FULL JOIN Keyword

The FULL JOIN keyword return rows when there is a match in one of the tables.

SELECT Persons.LastName, Persons.FirstName, Orders.OrderNo
FROM Persons
FULL JOIN Orders
ON Persons.P_Id=Orders.P_Id
ORDER BY Persons.LastName


The result-set will look like this:
LastName FirstName OrderNo
Hansen Ola 22456
Hansen Ola 24562
Pettersen Kari 77895
Pettersen Kari 44678
Svendson Tove
34764


SQL Statement       Syntax
AND / ORSELECT column_name(s)
FROM table_name
WHERE condition
AND|OR condition
ALTER TABLEALTER TABLE table_name
ADD column_name datatype
or
ALTER TABLE table_name
DROP COLUMN column_name
AS (alias)SELECT column_name AS column_alias
FROM table_name
or
SELECT column_name
FROM table_name  AS table_alias
BETWEENSELECT column_name(s)
FROM table_name
WHERE column_name
BETWEEN value1 AND value2
CREATE DATABASECREATE DATABASE database_name
CREATE TABLECREATE TABLE table_name
(
column_name1 data_type,
column_name2 data_type,
column_name2 data_type,
...
)
CREATE INDEXCREATE INDEX index_name
ON table_name (column_name)
or
CREATE UNIQUE INDEX index_name
ON table_name (column_name)
CREATE VIEWCREATE VIEW view_name AS
SELECT column_name(s)
FROM table_name
WHERE condition
DELETEDELETE FROM table_name
WHERE some_column=some_value
or
DELETE FROM table_name
(Note: Deletes the entire table!!)
DELETE * FROM table_name
(Note: Deletes the entire table!!)
DROP DATABASEDROP DATABASE database_name
DROP INDEXDROP INDEX table_name.index_name (SQL Server)
DROP INDEX index_name ON table_name (MS Access)
DROP INDEX index_name (DB2/Oracle)
ALTER TABLE table_name
DROP INDEX index_name (MySQL)
DROP TABLEDROP TABLE table_name
GROUP BYSELECT column_name, aggregate_function(column_name)
FROM table_name
WHERE column_name operator value
GROUP BY column_name
HAVINGSELECT column_name, aggregate_function(column_name)
FROM table_name
WHERE column_name operator value
GROUP BY column_name
HAVING aggregate_function(column_name) operator value
INSELECT column_name(s)
FROM table_name
WHERE column_name
IN (value1,value2,..)
INSERT INTOINSERT INTO table_name
VALUES (value1, value2, value3,....)
or
INSERT INTO table_name
(column1, column2, column3,...)
VALUES (value1, value2, value3,....)
INNER JOINSELECT column_name(s)
FROM table_name1
INNER JOIN table_name2
ON table_name1.column_name=table_name2.column_name
LEFT JOINSELECT column_name(s)
FROM table_name1
LEFT JOIN table_name2
ON table_name1.column_name=table_name2.column_name
RIGHT JOINSELECT column_name(s)
FROM table_name1
RIGHT JOIN table_name2
ON table_name1.column_name=table_name2.column_name
FULL JOINSELECT column_name(s)
FROM table_name1
FULL JOIN table_name2
ON table_name1.column_name=table_name2.column_name
LIKESELECT column_name(s)
FROM table_name
WHERE column_name LIKE pattern
ORDER BYSELECT column_name(s)
FROM table_name
ORDER BY column_name [ASC|DESC]
SELECTSELECT column_name(s)
FROM table_name
SELECT *SELECT *
FROM table_name
SELECT DISTINCTSELECT DISTINCT column_name(s)
FROM table_name
SELECT INTOSELECT *
INTO new_table_name [IN externaldatabase]
FROM old_table_name
or
SELECT column_name(s)
INTO new_table_name [IN externaldatabase]
FROM old_table_name
SELECT TOPSELECT TOP number|percent column_name(s)
FROM table_name
TRUNCATE TABLETRUNCATE TABLE table_name
UNIONSELECT column_name(s) FROM table_name1
UNION
SELECT column_name(s) FROM table_name2
UNION ALLSELECT column_name(s) FROM table_name1
UNION ALL
SELECT column_name(s) FROM table_name2
UPDATEUPDATE table_name
SET column1=value, column2=value,...
WHERE some_column=some_value
WHERESELECT column_name(s)
FROM table_name
WHERE column_name operator value

Saturday, March 26, 2011

DEFECT REPORTING



DefectID: BugID_13

ReleaseName: Dolphin

BuildID: B03

ModuleName: Sent Item

Status: Open/ Assigned/ fixed/ Re-open/ Closed/ Duplicate

Severity: Blocker/ Show Stopper/  Critical/ Major/ Minor

Priority: High-P1 /  Medium-P2 / Low-P3

TestData: UserName= abc123, Password=xyz123

TestEnvironment: winXp, IE 7.0

TestCaseName: Yaho_SentItem_MailList

ReportedBy: Mr.ABC (Tester)

BriefDescription: Sent mails are not there in Sent Item page

DetailDescription: Following are the Steps to reproduce the defect-
             
1.      Open the browser.
2.      Login with valid username and password
3.      Click on “Compose” link
4.      Enter valid data into all the fields and click on send button
5.      Click on “sent item” link

Expected Result:  Sent mail should be listed in sent item page.

Actual Result:  Sent mail is not listed in sent items page.

Screen shot: 

BUG Tracking By Tool (BUGZILLA)

Effective bug reports are the most likely to be fixed. These guidelines explain how to write such reports.

Principles

  • Be precise
  • Be clear - explain it so others can reproduce the bug
  • One bug per report
  • No bug is too trivial to report - small bugs may hide big bugs
  • Clearly separate fact from speculation

Preliminaries

  1. Reproduce your bug using a recent build of the software, to see whether it has already been fixed.
  2. Search Bugzilla, to see whether your bug has already been reported.

Reporting a New Bug

If you have reproduced the bug in a recent build and no-one else appears to have reported it, then:
  1. Choose "Enter a new bug"
  2. Select the product in which you've found the bug
  3. Fill out the form. Here is some help understanding it:
Component: In which sub-part of the software does it exist?
This field is required. Click the word "Component" to see a description of each component. If none seems appropriate, look for a "General" component.
OS: On which operating system (OS) did you find it? (e.g. Linux, Windows XP, Mac OS X.)
If you know the bug happens on more than one type of operating system, choose "All". If your OS isn't listed, choose Other.
Summary: How would you describe the bug, in approximately 60 or fewer characters?
A good summary should quickly and uniquely identify a bug report. It should explain the problem, not your suggested solution.

  • Good: "Cancelling a File Copy dialog crashes File Manager"
  • Bad: "Software crashes"
  • Bad: "Browser should work with my web site"
Description: The details of your problem report, including:
Overview: More detailed restatement of summary.
Drag-selecting any page crashes Mac builds in the NSGetFactory function.
Steps to Reproduce: Minimized, easy-to-follow steps that will trigger the bug. Include any special setup steps.
1) View any web page. (I used the default sample page, 
resource:/res/samples/test0.html)

2) Drag-select the page. (Specifically, while holding down 
the mouse button, drag the mouse pointer downwards from any 
point in the browser's content region to the bottom of the 
browser's content region.)
Actual Results: What the application did after performing the above steps.
The application crashed.
Expected Results: What the application should have done, were the bug not present.
The window should scroll downwards. Scrolled content should be selected. 
(Or, at least, the application should not crash.)
Build Date & Platform: Date and platform of the build in which you first encountered the bug.
Build 2006-08-10 on Mac OS 10.4.3
Additional Builds and Platforms: Whether or not the bug takes place on other platforms (or browsers, if applicable).
Doesn't Occur On Build 2006-08-10 on Windows XP Home (Service Pack 2)
Additional Information: Any other useful information.

For crashing bugs:
  • Windows: Note the type of the crash, and the module that the application crashed in (e.g. access violation in apprunner.exe).
  • Mac OS X: Attach the "Crash Reporter" log that appears upon crash. Only include the section directly below the crashing thread, usually titled "Thread 0 Crashed". Please do not paste the entire log!
Double-check your report for errors and omissions, then press "Commit". Your bug report will now be in the Bugzilla database.

                            

Friday, March 25, 2011

Learn - VB Script

How to Run VB Script:

Write Script in Notepad ---> Save it as filename.vbs -----> Double click on the file-filename.vbs


'Assignment Date:25/03/2011
'Prgm to demonstrate concatenation function
'----------------------------------------------------

option explicit
dim vfn, vmn, vln, vtmp

vfn=inputbox("Enter First Name :")
vmn=inputbox("Enter Middle Name :")
vln=inputbox("Enter Last Name :")

vtmp="Full Name is : "

msgbox vtmp&vln&" "&vmn&", "&vfn&"."

'Assignment Date:25/03/2011
'Prgm to demonstrate concatenation and Newline function
'----------------------------------------------------------------

option explicit
dim vfn, vln, vage, vdob, vtmp

vfn=inputbox("Enter First Name :")
vln=inputbox("Enter Last Name :")
vage=inputbox("Enter Age :")
vdob=inputbox("Enter DOB :")

vtmp="The Details are : "&vbnewline
vtmp=vtmp&vln&", "&vfn&vbnewline
vtmp=vtmp&vage&" yrs"&vbnewline
vtmp=vtmp&vdob

msgbox vtmp


'Assignment Date:25/03/2011
'Prgm to demonstrate Simple "IF" Statement
'---------------------------------------------------

option explicit
dim vnum

vnum=cint(inputbox("Enter a Number :"))

if (vnum mod 2)<>0 then msgbox "Odd Number"



'Assignment Date: 28/03/2011
'Demonstrate " if...elseif " (Smallest No. among three no.s)
'-------------------------------------------------------------------------------
Option explicit
dim vnum1, vnum2, vnum3

vnum1=cint(inputbox("Enter First Number: "))
vnum2=cint(inputbox("Enter Second Number: "))
vnum3=cint(inputbox("Enter Third Number: "))

if (vnum1=vnum2) and (vnum2=vnum3) then

   msgbox "All No.s are EQUAL"

elseif(vnum1<=vnum2) and (vnum1<=vnum3) then

  msgbox vnum1&" is Least"

elseif(vnum2<=vnum1) and (vnum2<=vnum3) then

      msgbox vnum2&" is least"

     else
    
      msgbox vnum3&" is least"
end if




'Assignment Date: 28/03/2011
'Demonstrate " if...elseif " (Highest No. among Four no.s)
'------------------------------------------------------------------------------------
Option explicit
dim vnum1, vnum2, vnum3, vnum4

vnum1=cint(inputbox("Enter First Number: "))
vnum2=cint(inputbox("Enter Second Number: "))
vnum3=cint(inputbox("Enter Third Number: "))
vnum3=cint(inputbox("Enter Fourth Number: "))

if(vnum1=vnum2) and (vnum2=vnum3) and (vnum3=vnum4) then

      msgbox "All No.s are EQUAL"

elseif(vnum1>=vnum2) and (vnum1>=vnum3) and (vnum1>=vnum4) then

      msgbox vnum1&" is Highest"

elseif(vnum2<=vnum1) and (vnum2<=vnum3) and (vnum2<=vnum4) then

      msgbox vnum2&" is Highest"

elseif(vnum3>=vnum4) and (vnum3>=vnum4) and (vnum3>=vnum4) then
    
      msgbox vnum3&" is Highest"

else

      msgbox vnum4&" is Highest"  

end if


'Assignment Date: 28/03/2011
'Demonstrate " Nested  if " 
'--------------------------------------------------------------------------------------
Option explicit
dim vnum1, vnum2, vnum3

vnum1=cint(inputbox("Enter First Number: "))
vnum2=cint(inputbox("Enter Second Number: "))

if(vnum1=vnum2) then

   msgbox " Numbers are Equal "

else

   if(vnum1<vnum2) then

      msgbox vnum1&" is less than "&vnum2

   else

      
     msgbox vnum1&" is greater"

     vnum3=cint(inputbox("Enter Third Number: "))

           if (vnum1>=vnum2) and (vnum1>=vnum3) then                            

               msgbox vnum1&"  is Highest"

           else
                 if(vnum2>=vnum1) and (vnum2>=vnum3) then

                     msgbox vnum2&"  is Highest"

                 else
    
                     msgbox vnum3&"  is Highest"
              
                 end if
        
           end if

    end if

end if


'Assignment date: 30/03/2011
'Demonstrate "Select case" statement (Calculator)
'------------------------------------------------------------------


Option explicit
dim vnum1, vnum2, vtmp, voptn, vsum, vsub, vmul, vdiv, vintdiv, vexp, vmod

vnum1=cint(inputbox("Enter 1st Number: "))
vnum2=cint(inputbox("Enter 2nd Number: "))

vtmp="Enter ur choice"&vbnewline&"1: Add"&vbnewline&" 2: Sub"&vbnewline&"3: Mul"&vbnewline&" 4: Div"&vbnewline

msgbox vtmp&" 5: IntDiv"&vbnewline&" 6: Exponent"&vbnewline&" 7: Mod"&vbnewline&" 8: Even/odd"

voptn=cint(inputbox("Enter ur Choice"))

select case voptn

case "1"
            vsum = vnum1 + vnum2
            msgbox "Sum of " &vnum1 &" And " &vnum2 &" = "&vsum

case "2"
            vsub = vnum1 - vnum2
            msgbox "Substraction of " &vnum1 &" And " &vnum2 &" = "&vsub


case "3"
            vmul = vnum1 * vnum2
            msgbox "Multiplication of " &vnum1 &" And " &vnum2 &" = "&vmul


case "4"
            vdiv = vnum1 / vnum2
            msgbox "Division of " &vnum1 &" And " &vnum2 &" = "&vdiv


case "5"
            vintdiv = vnum1 \ vnum2
            msgbox "Integer Division of " &vnum1 &" And " &vnum2 &" = "&vintdiv


case "6"
            vexp = vnum1 ^ vnum2
            msgbox "Exponent of " &vnum1 &" And " &vnum2 &" = "&vexp


case "7"
            vmod = vnum1 mod vnum2
            msgbox vnum1 &" Mod " &vnum2 &" = "&vmod


case "8"
            if(vnum1 mod 2)=0 then
            msgbox vnum1 &" is Even Number"
            else
            msgbox vnum1 &" is Odd Number"
            end if

            if(vnum2 mod 2)=0 then
            msgbox vnum2 &" is Even Number"
            else
            msgbox vnum2 &" is Odd Number"
            end if

case else
            msgbox " Invalid Entry ! "

end select

'Assignment date: 30/03/2011
'Demonstrate "For loop" statement => Print all odd no.s betwn 100 to 200
'--------------------------------------------------------------------------------


Option explicit
dim i,  vstro

for i=100 to 200 step 1

 
   if(i mod 2)<>0 then vstro=vstro&i&vbnewline
      
     
next

  msgbox "Odd no.s Between 100 and 200"&vbnewline &vstro



'Assignment date: 30/03/2011
'Demonstrate "For loop" statement => Print even no.s betwn 400 to 300
'------------------------------------------------------------------------------------------------ 

Option explicit
dim i, vstre, vcnt
vcnt=0

for i=400 to 300 step -1


   if(i mod 2)=0 then

      vstre=vstre&i&vbnewline

      vcnt=vcnt+1

      if(vcnt=20) then exit for

   else
    
      
   end if

next

  msgbox "Even no.s Between 400 and 300"&vbnewline &vstre



'Assignment date: 30/03/2011
'Demonstrate "For loop" statement => Print Factorial of a Number
'-------------------------------------------------------------------------------------------

Option explicit
dim fact, i, vnum

fact=1

vnum=cint(inputbox("Enter a Value"))

for i=1 to vnum step 1

  fact = fact * i

next

msgbox "Factorial of "&vnum&" is "&fact


'Assignment date: 30/03/2011
'Demonstrate "For loop" statement => Check given No. is Prime Number or Not
'--------------------------------------------------------------------------
------------------------------

Option explicit
dim vnum, vf, i

vnum=cint(inputbox("enter a number: "))

for i=2 to vnum-1 step 1
  
     if(vnum mod i)=0 then
     vf="No"
     exit for

     else
       vf="Yes"
     end if

next        
    
if (vf="No") then

   msgbox "The given number is Not a Prime"

else

    msgbox "The given number is a Prime"

end if


'Assignment date: 30/03/2011
'Demonstrate "For loop" statement => To generate Fibonacci Series
'--------------------------------------------------------------------------------------------------


Option explicit
dim vnum, i, j, k, vstr, x

i=0
j=1

vnum=cint(inputbox("enter a number: "))

vstr=i&", "&vbnewline&j&", "

for x=1 to vnum-2 step 1
  
    k=i+j
    vstr=vstr&vbnewline&k&", "
    i=j
    j=k

next        
  
    msgbox "Fibonacci Series: "&vbnewline&vstr


'Assignment date: 01/04/2011
'Demonstrate "Do while" loop => Print Factorial of a Number
'-----------------------------------------------------------------------------------------------


Option explicit
dim fact, i, vnum, vchoice

do

fact=1

vnum=cint(inputbox("Enter a Value"))

for i=2 to vnum step 1

  fact = fact * i

next

msgbox "Factorial of "&vnum&" is "&fact

vchoice=inputbox("Do you wanna Continue(y)?")

loop while vchoice="y"

'Assignment date: 01/04/2011
'Demonstrate "Do while" loop => Print Factorial of a Number
'--------------------------------------------------------------------------------------------------


Option explicit
dim fact, i, vnum, vchoice

vchoice=inputbox("Do you wanna Continue(y)?")

do while vchoice="y"

fact=1

vnum=cint(inputbox("Enter a Value"))

for i=2 to vnum step 1

  fact = fact * i

next

msgbox "Factorial of "&vnum&" is "&fact

vchoice=inputbox("Do you wanna Continue(y)?")

loop


'Assignment date: 01/04/2011
'Demonstrate "Do while loop"  => To Generate Natural No.s
'----------------------------------------------------------------------------------------------


Option explicit
dim vnum, i, vtmp, voptn

do

vnum=cint(inputbox("Enter a Number"))

for i=1 to vnum step 1

 vtmp=vtmp&vbnewline&i

next

 msgbox "Generated Numbers: "&vbnewline&vtmp

 voptn=inputbox("Do you wanna Continue(y)?")

loop while voptn="y"

'Assignment Date: 01/04/2011
'Demonstrate usage of " ARRAYS " in Vb Script (Accept 4 no.s & print in reverse order)
'------------------------------------------------------------------------------------------------------------------------


Option explicit
dim varr(3), i, tmp

for i=0 to 3 step 1

  varr(i)=cint(inputbox("Enter a value"))

next


for i=3 to 0 step -1

 tmp=tmp&varr(i)&vbnewline

next

 msgbox tmp

'Assignment date: 01/04/2011
'Demonstrate "ARRAYS"  => Sum of 5 numbers
'----------------------------------------------------------------------------------


Option explicit
dim Varr(4), i, vsum

for i=0 to 4 step 1

   varr(i)=cint(inputbox("Enter a number"))

next

for i=0 to 4 step 1

  vsum=vsum+varr(i)

next
 
  msgbox "Sum:  "&vsum

'Assignment Date: 08/04/2011
' Given string is Palindrome or Not
'------------------------------------------------------------

vstr1=inputbox("enter a string: ")

vstr2=strreverse(vstr1)

 if(vstr1=vstr2) then

    msgbox "Pal"

 else

    msgbox "Not Pal"

 end if

' Assignment Date: 08/04/2011
' Given  TWO strings are equal/ greater/ less
'----------------------------------------------------------------------

Option explicit
Dim vstr1, vstr2, vcmp

vstr1=inputbox("enter a string 1 : ")

vstr2=inputbox("enter a string 2 : ")

   vcmp=(strcomp(vstr1, vstr2))

select case vcmp

  case "0":
            msgbox "Both strings are Equal"

  case "1":
            msgbox "string1 is greater than string2"

  case "-1":
            msgbox "string1 is less than string2"

  case else:

            msgbox "***"

end select

' Assignment Date: 08/04/2011
' Find Highest among Five strings
'-------------------------------------------------------------
Option explicit
Dim vstr(4), i, vtmp, vhigh


for i=0 to 4 step 1

    vstr(i)=inputbox("enter a string: ")

next
 

for i=0 to 4 step 1

    vtmp=vtmp&vstr(i)&vbnewline

next
   
    msgbox vtmp


vhigh=vstr(0)

for i=0 to 4 step 1

     if(strcomp(vstr(i),vhigh)=1) then

       vhigh=vstr(i)   
  
    end if

next

  msgbox " Highest string is: "&vhigh


FSO - File System Object

'Assignment Date: 09/04/2011
'Working on FSO
'Create Folder
'---------------------------------------------------------------------

Option explicit
Dim vfso

set vfso=createobject("scripting.filesystemobject")

if vfso.folderExists("C:\test") then

    msgbox " Folder Exist     "

else

    msgbox " Folder Not exist "

    vfso.createFolder("C:\test")


end if

'Assignment Date: 09/04/2011
'Working on FSO
'Copy Folder only if the Source folder exist
'-----------------------------------------------------


Option explicit
Dim vfso, vsrc, vdes

vsrc=inputbox("Enter the Source folder path(absolute path) ")
vdes=inputbox("Enter the Destination folder path (absolute path) ")

set vfso=createobject("scripting.filesystemobject")


if vfso.folderExists(vsrc) then

    msgbox " Source Folder exist "
   
         vfso.copyFolder vsrc, vdes
   
    msgbox "Folder Copied !"

else

    msgbox " Source Folder is not exist ! "
   

end if

'Assignment Date: 09/04/2011
'Working on FSO
' Print Drive Information
'------------------------------------------------------------------------------------


Option explicit
Dim vfso, vdr, vdrive, drvname, drvtotsize, drvfreespc, Usdspc, vtemp

vdr=inputbox("Enter a Drive Name: ")


set vfso=createobject("scripting.filesystemobject")

set vdrive=vfso.getDrive(vdr)


drvname=vdrive.DriveLetter
drvtotsize=vdrive.totalSize/(1024*1024*1024)
drvfreespc=vdrive.FreeSpace/(1024*1024*1024)
Usdspc=drvtotsize-drvfreespc

vtemp="Drive Name:  "&drvname&vbnewline&"       "&vbnewline&"Total Size: "&drvtotsize&" GB"

msgbox vtemp&vbnewline&"Used Space: "&Usdspc&" GB"&vbnewline&"Free Space: "&drvfreespc&" GB" 

Wednesday, March 23, 2011

System Test Cases



Guillain-Barre Syndrome Fact


What is Guillain-Barre syndrome?


Guillain-Barré syndrome is a disorder in which the body's immune system attacks part of the peripheral nervous system. The first symptoms of this disorder include varying degrees of weakness or tingling sensations in the legs. In many instances the weakness and abnormal sensations spread to the arms and upper body. These symptoms can increase in intensity until certain muscles cannot be used at all and, when severe, the patient is almost totally paralyzed. In these cases the disorder is life threatening - potentially interfering with breathing and, at times, with blood pressure or heart rate - and is considered a medical emergency. Such a patient is often put on a respirator to assist with breathing and is watched closely for problems such as an abnormal heart beat, infections, blood clots, and high or low blood pressure. Most patients, however, recover from even the most severe cases of Guillain-Barré syndrome, although some continue to have a certain degree of weakness.
Guillain-Barré syndrome can affect anybody. It can strike at any age and both sexes are equally prone to the disorder. The syndrome is rare, however, afflicting only about one person in 100,000. Usually Guillain-Barré occurs a few days or weeks after the patient has had symptoms of a respiratory or gastrointestinal viral infection. Occasionally surgery or vaccinations will trigger the syndrome.
After the first clinical manifestations of the disease, the symptoms can progress over the course of hours, days, or weeks. Most people reach the stage of greatest weakness within the first 2 weeks after symptoms appear, and by the third week of the illness 90 percent of all patients are at their weakest.

What causes Guillain-Barré syndrome?



No one yet knows why Guillain-Barré—which is not contagious—strikes some people and not others. Nor does anyone know exactly what sets the disease in motion.
What scientists do know is that the body's immune system begins to attack the body itself, causing what is known as an autoimmune disease. Usually the cells of the immune system attack only foreign material and invading organisms. In Guillain-Barré syndrome, however, the immune system starts to destroy the myelin sheath that surrounds the axons of many peripheral nerves, or even the axons themselves (axons are long, thin extensions of the nerve cells; they carry nerve signals). The myelin sheath surrounding the axon speeds up the transmission of nerve signals and allows the transmission of signals over long distances.
In diseases in which the peripheral nerves' myelin sheaths are injured or degraded, the nerves cannot transmit signals efficiently. That is why the muscles begin to lose their ability to respond to the brain's commands, commands that must be carried through the nerve network. The brain also receives fewer sensory signals from the rest of the body, resulting in an inability to feel textures, heat, pain, and other sensations. Alternately, the brain may receive inappropriate signals that result in tingling, "crawling-skin," or painful sensations. Because the signals to and from the arms and legs must travel the longest distances they are most vulnerable to interruption. Therefore, muscle weakness and tingling sensations usually first appear in the hands and feet and progress upwards.
When Guillain-Barré is preceded by a viral or bacterial infection, it is possible that the virus has changed the nature of cells in the nervous system so that the immune system treats them as foreign cells. It is also possible that the virus makes the immune system itself less discriminating about what cells it recognizes as its own, allowing some of the immune cells, such as certain kinds of lymphocytes and macrophages, to attack the myelin. Sensitized T lymphocytes cooperate with B lymphocytes to produce antibodies against components of the myelin sheath and may contribute to destruction of the myelin. Scientists are investigating these and other possibilities to find why the immune system goes awry in Guillain-Barré syndrome and other autoimmune diseases. The cause and course of Guillain-Barré syndrome is an active area of neurological investigation, incorporating the cooperative efforts of neurological scientists, immunologists, and virologists.

How is Guillain-Barré syndrome diagnosed?



Guillain-Barré is called a syndrome rather than a disease because it is not clear that a specific disease-causing agent is involved. A syndrome is a medical condition characterized by a collection of symptoms (what the patient feels) and signs (what a doctor can observe or measure). The signs and symptoms of the syndrome can be quite varied, so doctors may, on rare occasions, find it difficult to diagnose Guillain-Barré in its earliest stages.
Several disorders have symptoms similar to those found in Guillain-Barré, so doctors examine and question patients carefully before making a diagnosis. Collectively, the signs and symptoms form a certain pattern that helps doctors differentiate Guillain-Barré from other disorders. For example, physicians will note whether the symptoms appear on both sides of the body (most common in Guillain-Barré) and the quickness with which the symptoms appear (in other disorders, muscle weakness may progress over months rather than days or weeks). In Guillain-Barré, reflexes such as knee jerks are usually lost. Because the signals traveling along the nerve are slower, a nerve conduction velocity (NCV) test can give a doctor clues to aid the diagnosis. In Guillain-Barré patients, the cerebrospinal fluid that bathes the spinal cord and brain contains more protein than usual. Therefore a physician may decide to perform a spinal tap, a procedure in which the doctor inserts a needle into the patient's lower back to draw cerebrospinal fluid from the spinal column.

How is Guillain-Barré treated?



There is no known cure for Guillain-Barré syndrome. However, there are therapies that lessen the severity of the illness and accelerate the recovery in most patients. There are also a number of ways to treat the complications of the disease.
Currently, plasma exchange (sometimes called plasmapheresis) and high-dose immunoglobulin therapy are used. Both of them are equally effective, but immunoglobulin is easier to administer. Plasma exchange is a method by which whole blood is removed from the body and processed so that the red and white blood cells are separated from the plasma, or liquid portion of the blood. The blood cells are then returned to the patient without the plasma, which the body quickly replaces. Scientists still don't know exactly why plasma exchange works, but the technique seems to reduce the severity and duration of the Guillain-Barré episode. This may be because the plasma portion of the blood contains elements of the immune system that may be toxic to the myelin.
In high-dose immunoglobulin therapy, doctors give intravenous injections of the proteins that, in small quantities, the immune system uses naturally to attack invading organisms. Investigators have found that giving high doses of these immunoglobulins, derived from a pool of thousands of normal donors, to Guillain-Barré patients can lessen the immune attack on the nervous system. Investigators don't know why or how this works, although several hypotheses have been proposed.
The use of steroid hormones has also been tried as a way to reduce the severity of Guillain-Barré, but controlled clinical trials have demonstrated that this treatment not only is not effective but may even have a deleterious effect on the disease.
The most critical part of the treatment for this syndrome consists of keeping the patient's body functioning during recovery of the nervous system. This can sometimes require placing the patient on a respirator, a heart monitor, or other machines that assist body function. The need for this sophisticated machinery is one reason why Guillain-Barré syndrome patients are usually treated in hospitals, often in an intensive care ward. In the hospital, doctors can also look for and treat the many problems that can afflict any paralyzed patient - complications such as pneumonia or bed sores.
Often, even before recovery begins, caregivers may be instructed to manually move the patient's limbs to help keep the muscles flexible and strong. Later, as the patient begins to recover limb control, physical therapy begins. Carefully planned clinical trials of new and experimental therapies are the key to improving the treatment of patients with Guillain-Barré syndrome. Such clinical trials begin with the research of basic and clinical scientists who, working with clinicians, identify new approaches to treating patients with the disease.

What is the long-term outlook for those with Guillain-Barré syndrome?



Guillain-Barré syndrome can be a devastating disorder because of its sudden and unexpected onset. In addition, recovery is not necessarily quick. As noted above, patients usually reach the point of greatest weakness or paralysis days or weeks after the first symptoms occur. Symptoms then stabilize at this level for a period of days, weeks, or, sometimes, months. The recovery period may be as little as a few weeks or as long as a few years. About 30 percent of those with Guillain-Barré still have a residual weakness after 3 years. About 3 percent may suffer a relapse of muscle weakness and tingling sensations many years after the initial attack.
Guillain-Barré syndrome patients face not only physical difficulties, but emotionally painful periods as well. It is often extremely difficult for patients to adjust to sudden paralysis and dependence on others for help with routine daily activities. Patients sometimes need psychological counseling to help them adapt.

What research is being done?



Scientists are concentrating on finding new treatments and refining existing ones. Scientists are also looking at the workings of the immune system to find which cells are responsible for beginning and carrying out the attack on the nervous system. The fact that so many cases of Guillain-Barré begin after a viral or bacterial infection suggests that certain characteristics of some viruses and bacteria may activate the immune system inappropriately. Investigators are searching for those characteristics. Certain proteins or peptides in viruses and bacteria may be the same as those found in myelin, and the generation of antibodies to neutralize the invading viruses or bacteria could trigger the attack on the myelin sheath. As noted previously, neurological scientists, immunologists, virologists, and pharmacologists are all working collaboratively to learn how to prevent this disorder and to make better therapies available when it strikes.