Sie sind auf Seite 1von 11

Software Testing

1.SDCL : RA, Dsign, coding, support, SRS, waterfall, V , spiral, prototype,

2.Testing Types : BlackBox/White Box, Manual/Automated, Application/System, levels of testing: module, Integration,
System others

3.ProjectMP, ConfigurationM, QualityM, RiskM

4.Testcase, TP, Ts, Defect, Bug, Agile methodogies

C, C++, Linux
C:
1.i/o : Fopen ();
2.datatypes : storage class: extern/global, static, local/auto, register
3.loops
4.methods_ptr_function_varags
5.built-in:atoi
1.#include <stdio.h>
Int main ()
{
If (printf (“hello World\n”))
{}
}

Trinary operator
2. X: y ? -1: 1;

3.x = x+y; y = x-y; x = x-y;


x = x^y; y = x|y; x = x^y;

C++:OOPs, STB

Linux: FMS, PMS, MMS, IPC, IO,

Java/J2EE

1.core technologies: Core java, JDBC, JSP, Servlets

2.Advanced :

Front end or presentation :


Jsp_Servlets
Stuts, spring, JSF
HTML_CSS_AJAX_JavaScript
Flec_flash_dreamweaver_DoJo

Controller:
Jsp_Servlets
Stuts, spring, JSF

Model or business logic:


EJB , Web Srviceses

Persistance
,Hibernate/JPA, TopLink

Back end :
SQL_PLSQL Oracle, Mysql
Core java:

Core java:
Contents
1.in/ou: RandomAccess: file handling, bufferedReader, serialization
2.datatypes : 8 primitive and wrapper classes, Array, String Class, object, legacy/Collections
3. loops: enchanced for loops
4.builtin: threads, synchronization

A-Z
1.Abstract, access spcifers
2.Collections, constructors
3.Datatypes
4.Exception_Handling
5.final_Finally_finalize : final for class, for method, for variable
6.grabage collection
7.hashcode, Hashmap
8.Interface
9.methods
10.native method
11.objects
12.static, supper, serilaca, symc
12.Transient
13.wrapper class
FAQs
w1. object class and its methos and return types and what toString returns
w2.String first char in two words of a string: charAT or substr(1, 1)
w3.Collections : collection.synchorinized
Q4.randomacces, buffer and random when you use
Q5.pow x pow y W.A.P
Q6.W.P (d1, d2, d3)
Q6.throw new Exception
Q7.Reflection and Clone
T8.inheritabce
Void a()
String a()

JDBC
4 types of drivers
Class.forname ()
Conn
State. Prestmt, callable
Execute,Excuteupdate execute
Conn pooling

JSP
1.Jsp Life cycle
2.Scriplets, E.L, Jsp:, jstl:, c:, your:
3.scopes: application

Servlets
1.Life cycle
2.geric servlets
3..do,.view, lister, fileters
4.cookies, session management
Html_CSs_AJAx_JS

Flex
Adobe FLEX

1) Install flex builder 3

2) Open new mxml project, create new mxml file, run as flex application, one .htl and .swf file is
created, export the swf file and double click that is the exe file and is print iin the bin directory

3) Type or add code within <mx:Application >tag

4) Flex parts :
a) Flex components & custom components
• There is souce mode and design mode,
• there are controls like buttons , inputBox
• Layouts: panel,
• navigators like accordian
b) Flex Events & custom Events : like click
c) Flex Validator & custom validators : like email validator
d) Flex Formatters & Custom formatters

5) Flex Live cycle data Sources


• First install and configure tomat or server i.e integrate 2 IDES flex and myeclipse

/////////////////////////////////////////////////////Flex Code Samples//////////////////


//sample code 1: flex complonents
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
import mx.events.CloseEvent;
import mx.controls.Alert;
import mx.collections.ArrayCollection;
import mx.controls.sliderClasses.Slider;

[Bindable]
[Embed(source="Sample2.jpg")]
private var img1:Class;
[Bindable]
[Embed(source="Sample1.jpg")]
private var img2:Class;
[Bindable]
[Embed(source="Sample2.jpg")]
private var img3:Class;

[Bindable]
private var cpp:uint;
private function show():void
{
cpp=cl.selectedColor;
}

private var slider:Slider;


private var ImageW:Number=0;
private var ImageH:Number=0;
public function show1(type:String):void
{
if(type=='v')
slider=vv;
else
slider=hh;
bookimage.width=uint(ImageH*slider.value/100);
bookimage.height=uint(ImageW*slider.value/100);
}

private var j:uint=5;


public function show9():void
{
if (j<=100)
{
barr.setProgress(j, 100);
barr.label="jjjj:"+j+"%";
j+=5;
}
if (j>100)
{
j=0;
}
}
public function show_10(event:Event):void
{
Alert.show("bt", "top", 3, this, sho_11);
}
public function sho_11(event:CloseEvent) :void
{
if (event.detail == Alert.YES)
kk.text = "Yeseese";
else
kk.text = "Nooooo";
}
[Bindable]
private var pp:Array =[1, 2, 3, 4,"ff" ];
[Bindable]
private var msg:String;
public function show_11(event:Event):void
{
msg=String(event.currentTarget.getRepeaterItem());
}
[Bindable]
private var selectedItem:Object;
[Bindable]
private var ca:String;
[Bindable]
private var cn:String;
private function show_12(event:Event):void
{
this.selectedItem = event.target.selectedItem;
ca=selectedItem.label;
cn=selectedItem.data;
}
[Bindable]
private var co:Array =
[
{label:"fff", data:"111"},
{label:"kkk", data:"222"}
];
[Bindable]
private var cou:ArrayCollection = new ArrayCollection(co);
public function show_19(event:Event):void
{
aaaa.text = "cccc"+ComboBox(event.target).selectedItem.label;
bbbb.text = "jjjj"+ComboBox(event.target).selectedItem.data;
}
]]>
</mx:Script>

<mx:Model id="jc">
<cos>
<co label="aa" data="111" />
<co label="bb" data="222" />
<co label="cc" data="333" />
</cos>
</mx:Model>

<mx:HorizontalList x="53" y="10" width="361" height="103" columnCount="3">


<mx:Array>
<mx:Object icon="{img1}" />
<mx:Object icon="{img2}" />
<mx:Object icon="{img3}" />
</mx:Array>
</mx:HorizontalList>

<mx:HBox x="53" y="134" width="361" height="90">


<mx:Image source="Sample1.jpg" width="148" height="92"/>
<mx:Spacer width="100"/>
<mx:Image source="Sample2.jpg" width="152" height="99"/>
</mx:HBox>

<mx:ColorPicker x="53" y="247" id="cl" change="show();"/>


<mx:Canvas backgroundColor="{cpp}" x="126" y="247" width="220" height="60" />

<mx:HSlider x="122" y="315" change="show1('h');" id="hh" minimum="0" maximum="100" />


<mx:VSlider x="265" y="324" height="109" change="show1('v');" id="vv" minimum="0"
maximum="100"/>
<mx:Image id="bookimage" source="@Embed('Sample1.jpg')"
creationComplete="ImageH=bookimage.height;ImageW=bookimage.width;" width="77" height="61" x="122"
y="341"/>

<mx:VRule x="232" y="447" rollOverEffect="WipeRight"/>


<mx:HRule x="122" y="447" rollOverEffect="WipeUp"/>

<mx:NumericStepper id="aa" x="85" y="559"/>


<mx:NumericStepper id="bb" x="164" y="559" minimum="6" maximum="10" stepSize="2"/>
<mx:Label text="uuu:{aa.value}" x="85" y="589"/>
<mx:Label x="184" y="589" text="aaa:{bb.value}" />

<mx:ProgressBar id="barr" x="75" y="625" mode="manual"/>


<mx:Button x="281" y="623" label="Button" click="show9();"/>

<mx:Button x="75" y="673" label="click" click="Alert.show('bttt', 'tttt');"/>


<mx:Button x="143" y="673" label="yes_no" click="show_10(event);"/>
<mx:Label id="kk" x="232" y="675" text="Label"/>

<mx:HBox x="75" y="723" width="164" height="122">


<mx:Tile width="170" height="129">
<mx:Repeater id="rp" dataProvider="{pp}">
<mx:Button label="{String(rp.currentItem)}" click="show_11(event)" />
</mx:Repeater>
<mx:Label text="{msg}" x="460" y="247" />
</mx:Tile>
</mx:HBox>
<mx:List x="92" y="877" dataProvider="{jc.co}" change="show_12(event);" columnCount="3" width="123"
height="95"/>
<mx:Label x="371" y="880" text="{ca}" />
<mx:Label x="371" y="920" text="{cn}"/>

<mx:TileList dataProvider="{jc.co}" change="show_12(event)" x="223" y="880" height="94" width="123"/>

<mx:ComboBox x="53" y="992" dataProvider="{cou}" close="show_19(event);"/>


<mx:Label x="164" y="996" text="Label" id="aaaa"/>
<mx:Label x="232" y="996" text="Label" id="bbbb"/>
<mx:Label x="10" y="13" text="No.1"/>
<mx:Label x="0" y="134" text="No.2"/>
<mx:Label x="10" y="247" text="No.3"/>
<mx:Label x="10" y="341" text="No.4"/>
<mx:Label x="10" y="447" text="No.5"/>
<mx:Label x="10" y="561" text="No.6"/>
<mx:Label x="10" y="625" text="No.7"/>
<mx:Label x="10" y="675" text="No.8"/>
<mx:Label x="5" y="723" text="No.9"/>
<mx:Label x="8" y="880" text="No 10 &amp; 11"/>
<mx:Label x="10" y="994" text="No.11"/>

</mx:Application>

///////////////////////////////////////////////
//sample code 2: validators and formators

<?xml version="1.0" encoding="utf-8"?>


<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">

<mx:DateFormatter />
<mx:DateValidator source="{aaa}" property="text" trigger="{aai}" triggerEvent="click"/>

<mx:NumberFormatter rounding="down" precision="2"/>


<mx:NumberValidator minValue="0" maxValue="100" source="{aab}" property="text" trigger="{aai}"
triggerEvent="click"/>

<mx:StringValidator minLength="2" maxLength="10" source="{aac}" property="text" trigger="{aai}"


triggerEvent="click"/>

<mx:PhoneFormatter />
<mx:PhoneNumberValidator source="{aad}" property="text" trigger="{aai}" triggerEvent="click"/>

<mx:EmailValidator source="{aae}" property="text" trigger="{aai}" triggerEvent="click"/>

<mx:ZipCodeFormatter />
<mx:ZipCodeValidator source="{aaf}" property="text" trigger="{aai}" triggerEvent="click" />

<mx:CurrencyFormatter />
<mx:CurrencyValidator source="{aag}" property="text" trigger="{aai}" triggerEvent="click"/>

<mx:CreditCardValidator source="{aah}" property="text" trigger="{aai}" triggerEvent="click"/>

<mx:Panel x="185" y="10" width="337" height="335" layout="absolute">


<mx:Form x="10" y="10" width="297" height="275">
<mx:FormItem label="Date">
<mx:DateField width="139" id="aaa" />
</mx:FormItem >
<mx:FormItem label="UserId">
<mx:TextInput id="aab"/>
</mx:FormItem>
<mx:FormItem label="UserName">
<mx:TextInput id="aac"/>
</mx:FormItem>
<mx:FormItem label="Phone">
<mx:TextInput id="aad"/>
</mx:FormItem>
<mx:FormItem label="Email">
<mx:TextInput id="aae"/>
</mx:FormItem>
<mx:FormItem label="ZipCode">
<mx:TextInput id="aaf"/>
</mx:FormItem>
<mx:FormItem label="Currency">
<mx:TextInput id="aag"/>
</mx:FormItem>
<mx:FormItem label="Label">
<mx:ComboBox id="aah">
<mx:Object label="america Express" data="america express"/>
<mx:Object label="dinner club" data="Dinner club"/>
</mx:ComboBox>
</mx:FormItem>
<mx:FormItem label="register">
<mx:Button label="Click" id="aai"/>
</mx:FormItem>
</mx:Form>
</mx:Panel>
</mx:Application>
//////////////////////////////////////////////////////////////////////////
//sample code 3: file handling
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[

private var result:XML = new XML();


private var output:XMLDocument;
private function fetch_data(type:String):void
{
if (type.toString() == "Core_Java")
{
var url:URLRequest = new URLRequest("1_Core_java_Swing.txt");
}

var loader:URLLoader = new URLLoader();

loader.addEventListener(Event.COMPLETE, populate);
loader.addEventListener(Event.OPEN, open);
loader.load(url);
result = loader.data;
}
private function populate(event:Event):void
{
var loader:URLLoader = URLLoader(event.target);
var result:String = loader.data;
textt.text = result;
}
private function open(event:Event):void
{

}
private function clear():void
{
textt.text = " ";
}
]]>
</mx:Script>
<mx:Panel x="10" y="10" width="792" height="583" layout="absolute">
<mx:TextArea x="10" y="10" height="236" width="752" id="textt"/>
<mx:Button x="10" y="268" label="CORE JAVA" click="fetch_data('Core_Java');"
id="fetchid1"/>
<mx:Button x="708" y="254" label="clear" click="clear();"/>

</mx:Panel>
<mx:Label x="187" y="10" text="File Handling in Flex" width="384" height="25" fontSize="20"
textAlign="center" fontWeight="bold" color="#AC09A2"/>

</mx:Application>
////////////////////////////////////////////////////
//sample code 4:state change

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">

<mx:Script>
<![CDATA[
[Bindable]
private var myyy:XML=
<batches>
<batch id="B-1">
<no_stu>12</no_stu>
</batch>
<batch id="B-2">
<no_stu>12</no_stu>
</batch>
<batch id="B-3">
<no_stu>12</no_stu>
</batch>
</batches>
]]>
</mx:Script>

<mx:states>
<mx:State name="show">
<mx:AddChild relativeTo="{dd}" position="lastChild">
<mx:DataGrid dataProvider="{myyy.batch}" id="ll">
<mx:columns>
<mx:DataGridColumn headerText="id" dataField="@id" />
<mx:DataGridColumn headerText="no_stu" dataField="no_stu" />
</mx:columns>
</mx:DataGrid>
<!--mx:Image source="@Embed(source='Sample1.jpg')" id="ll" width="100" height="100"/-->
<!--mx:Label text="hello world" id="ll" /-->
</mx:AddChild>
</mx:State>

<mx:State name="clear" >


<mx:RemoveChild target="{ll}" />
</mx:State>
</mx:states>

<mx:Panel x="135" y="27" width="431" height="307" layout="absolute">


<mx:Button x="189" y="50" label="show" click="currentState='show'"/>
<mx:Button x="289" y="50" label="clear" click="currentState='clear'"/>

<mx:HBox x="32" y="92" width="369" height="143">


<mx:VBox height="100%" width="359">
<mx:Form width="353" height="140" id="dd"/>
</mx:VBox>
</mx:HBox>
</mx:Panel>

</mx:Application>

Stuts
Presentaion or View component
abc.jsp
Action form : Java Bean to retieve values fom JSP

Controller Component : these two are in Struts config file


ActionServlet
Request Processor

Action Class  : this is java class n not a javabean, becoz contains execute method

Model: POJO or EJB


////////////////////////////
Presentaion or View component
File 1:abc.jsp
<html>
  Userid : <input type="text"/> <br/>
  Password : <input type="password"/>
</html>
////////////////////////////////////////////////////////////////////////////////
File 2:actionform.java  //Action form : Java Bean to retrieve values fom JSP
public class abc extends ActionForm
{
    private String uid;
    private String pwd;
    //generate public getter and setter methods
}
////////////////////////////////////////////////////////////////
Controller Component : these two are in Struts config file
ActionServlet
Request Processor ( This is confusing part in Struts, the words ActionServlet And Request Processor exist 
virtually in reality it only Struts-config.xml conatins theses two words or tasks is done by Struts-config.xml)
File 3 :struts-config.xml
<Acton>  //action tag is important
<Forward> tag is important
//////////////////////////////////////////////////////////////////////
File 4:action1.java //Action Class  : this is java class n not a javabean, becoz contains execute method
public sed extends Action
{
    public AF execute (Am, Af, Hreq, Hres)
 {
      return Af;
 }
}
///////////////////////////////////////////////
Model: POJO or EJB
Web.xml : this contain the first jsp page abc.jsp
/////////////////////////////////
VIEW    |  CONTROLLER                              |  MODEL             (MVC design patern)
Jsp page |  ActionServlet and requestprocessor  |  POJO or EJB's
  
Action servlet is ( FRONT CONTROLLER Design Pattern)

1)in View all struts tags are used : tiles, logic, html, bean tag important ones
2) Controller : ActionSevlet, RP, Action class or dynaaction

///////////////////////
important point to remenber  tiles and validator are plugies ,i.e they another opensource framework like struts ,
but we can include them in struts

Spring
IOC
1) Spring services, spring is light weigt, spring design patterns
2) Alldatatypes_Setter_constructor_pnamespacde_cross_ref_inheritance_BDI_Property files
3) wriing, autowire, @autowire
4) Callbacks
6) loading, scopes
7) Editors, appliation_Events, listeners
AOP:
Aspect, Advice, jointpoint,poincut,advicer, introduction, Target, Proxy, Weaving
*spring AOP, AspectJ, JBOSSAOP
*3 ways to implement AOP: classic AOPAPI, nnotation based model, Schema model
AOP API: methodbeforeAdvice, AfterReturningAdvice, throwsAdvice, methodInterceptor
2ways to define pointcuts: JDk reg

JSF

Hibernate

SQL_PLSQL
/////////////////////////////////////////////////////////////////
Select : Query statement
/////////////////////////////////////////////////////////////////
select * from abc_table;
select id, name from abc_table;
select distinct id from abc_table;
select * from abc_table where id=11
SELECT * FROM Persons
WHERE FirstName='Tove'
AND LastName='Svendson'

SELECT * FROM Persons


WHERE FirstName='Tove'
OR FirstName='Ola'

SELECT * FROM Persons WHERE


LastName='Svendson'
AND (FirstName='Tove' OR FirstName='Ola')

SELECT * FROM Persons


ORDER BY LastName

SELECT * FROM Persons


ORDER BY LastName DESC

SELECT * FROM customers WHERE companyname LIKE 'a%'


SELECT * FROM Persons WHERE City LIKE '%s' //u can use % before or after
SELECT * FROM Persons WHERE City LIKE '%tav%'
SELECT * FROM Persons WHERE City NOT LIKE '%tav%'

SELECT CompanyName, ContactName


FROM customers
WHERE CompanyName > 'a'

SELECT CompanyName, ContactName


FROM customers
WHERE CompanyName > 'g'
AND ContactName > 'g'

SELECT TOP 2 * FROM Persons

SELECT TOP 50 PERCENT * FROM Persons

SELECT * FROM Persons WHERE FirstName LIKE '_la'

SELECT * FROM Persons


WHERE LastName LIKE '[bsp]%'
/////////////////////////////////////////////////////////////////
Insert, Delete, and Update : are DML queries
/////////////////////////////////////////////////////////////////

INSERT INTO Persons (P_Id, LastName, FirstName)


VALUES (5, 'Tjessem', 'Jakob')

UPDATE Persons
SET Address='Nissestien 67', City='Sandnes'
WHERE LastName='Tjessem' AND FirstName='Jakob'

UPDATE Persons
SET Address='Nissestien 67', City='Sandnes' /////if no where clause all tables area uodated

DELETE FROM Persons


WHERE LastName='Tjessem' AND FirstName='Jakob'

Mysql ||||||||
Int, long, float. Double, char, unchar, text, file
Oracle
Number, varchar, char, date, time

Das könnte Ihnen auch gefallen