Thursday, October 9, 2014

Screenshot using Selenium WebDriver

Well many times in Automation Testing Scenario, Script and Test Case is failing due to object not found. It is handle in many testing tools in different languages. In this post, I will show you how to capture screen shot of failed test using @AfterMethod and test marked failed in report. In below example, I have handle a function with @AfterMethod annotation to capture the Screenshot using in Selenium Web Driver. To capture the Screenshot using selenium Web Driver, If you are using testNG, you can add the listener class which will further be extended with 'TestListenerAdapter' which has the implementation of taking screenshot on failures. This way we need not to make any logic change to take screenshot all the time.


Example 1:
@AfterMethod(alwaysRun = true, description = "take screenshot")
public void afterMethod_takeScreenshot(ITestResult result, Method m) throws Exception {
if (!result.isSuccess()) {
TakesScreenshot screen = (TakesScreenshot) driver;
File fileScreen = screen.getScreenshotAs(OutputType.FILE);
File fileTarget = new File("failure_" + m.getName() + ".png");
FileUtils.forceMkdir(fileTarget.getParentFile());
FileUtils.copyFile(fileScreen, fileTarget);
}

Example 2:
@AfterMethod
public void onTestFailure(ITestResult result) {

if(!result.isSuccess()){
String workingDirectory = System.getProperty("user.dir");
//specify ur path of screenshots folder here
String fileName = workingDirectory + File.separator +"screenshots"+ File.separator + result.getMethod().getMethodName() + "().png";//filename
File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
try {
FileUtils.copyFile(scrFile, new File(fileName ));
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}

Monday, September 30, 2013

Delete Cookies, Browser temporary files, Browser History with QTP Script

While executing the Quick Test Professional Scripts, Sometimes there can be a need to clear the Internet Explorer Temporary files. So for Delete Cookies, Browser temporary files, Browser History with Quick Test Professional Script, there are several options available.

Option 1:
Function ClearBrowserHistory
Dim temp
Set fso = CreateObject ("Scripting.FileSystemObject")
Set winsh = CreateObject ("Wscript.Shell")
Set temp = fso.GetFolder (winsh.ExpandEnvironmentStrings("%TEMP%"))
On Error Resume Next

For each ofile in temp.Files
fso.DeleteFile ofile
Next

For Each osubfldr in temp.subfolders
fso.DeleteFolder (osubfldr),true
Next
wscript.quit
End Function

Option 2:
Webutil.DeleteCookies

'To clear temporary Internet files
Set WShell = CreateObject("WScript.Shell")
WShell.run "RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8"

'To Clear Browsing History
WShell.run "RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1"

Wait (10)

Option 3:
'To clear temporary Internet files
Set WshShell = CreateObject("WScript.Shell")
WshShell.run "RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 8"

'To clear browsing cookies
WshShell.run "RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2"

'To Clear Browsing History
WshShell.run "RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1"

Friday, September 6, 2013

HP QTP 11.5 UFT System Requirements

HP has recently launched the New Version of Quick Test Pro as named HP QTP UFT 11.5. For successfully install and run HP QTP 11.5 UFT in computer, there are some minimum system requirements.

These System Requirements are given as below. But if you use a system with stronger/later setups than the minimum requirements, performance may be improved.

Minimum System Requirements and Supported Environments for HP QTP 11.5 UFT:
  • Computer Processor:1.6 Ghz or higher  
  • Operating System:Windows XP Service Pack 3 
  • Memory:Minimum of 2 GB (for no more than three add-ins are loaded simultaneously) 
  • Color Settings:High Color (16 bit) 
  • Graphics Card:Graphics card with 64 MB video memory 
  • Free Hard Disk Space:2 GB of free disk space for application files and folders 
  • Browser:Microsoft Internet Explorer 7.0 or a later supported version

Notes: 
  • An additional 512 MB of RAM are required when using a virtual machine.
  • Additional memory is required when loading more add-ins and when using the Save movie to results option to capture movies during run sessions. 
  • You must also have an additional 1 GB of free disk space on the system disk (the disk on which the operating system is installed).

HP QTP 11.5 New Features

HP QTP, the best functional testing tool, is recently comes with a new version release. This HP QTP new version is hit the market with the name “HP Unified Functional Testing (UFT) 11.5”.

HP QTP 11.5 is a combination of QuickTestPro (QTP), Service Test (ST) and Mobile Testing as well. This is the major change in QTP since it is available in the market. HP QTP 11.5 creates this major change because of the end to end testing needs in the current market. So based on the requirement HP QTP 11.5 provides the testing ability as a GUI testing tool i.e. QTP, API testing tool i.e. Service Test and Mobile Testing from a single interface and that’s why now there is a no need for download separate tools.

HP UFT 11.5 Features:

QTP IDE Update:
  • HP UFT IDE (Integrated Development Environment) supports to work on multiple tests at the same time.
  • HP Unified Functional Testing IDE supports for editing more than one action at the same time.
  • HP QTP 11.5 IDE has improved statement completion, improved dynamic lists of values, code folding and code snippets.
  • Image based objects / controls identification (Insight Recording for GUI test).
  • QTP Recording identifies the object based on images.
  • Image-based testing feature can allow us to test applications on non-windows operating system as well.
  • Enhanced support for GUI Testing Environment.
Browsers:
  • HP UFT 11.5 Recording feature supports for
    • Internet Explorer 9
    • Mozilla Firefox Versions 4 to Versions 10
  • HP UFT 11.5 Play back supports for
    • Internet Explorer 9
    • Mozilla Firefox Versions 4 to Versions 10
    • Google Chrome

GUI Test support Add-ins:
  • Standard
  • Java
  • .NET
  • WPF
New and Improve Support:
  • Delphi
  • Oracle 11g, PeopleSoft 8.5 and Siebel 
  • SAP CRM 7.0 and SAP GUI 7.2
  • Office (MSAA)
Improved Check points:
  • Checks the text in dynamically or accessed PDF file content.
  • Supports for including or excluding multiple areas within a bitmap.
  • Supports for locate a bitmap area anywhere within the run time bitmap image.
  • Select External bitmap file as the bitmap source.
Supports for Mobile applications testing:
  • Install Perfecto Mobile QTP Add-in (UFT Mobile) and automate Mobile applications.

Thursday, August 29, 2013

VB Script - Close All Browser

Function Details:
This Vb Script Function is for "Close browsers except QC window" using VB Script.This function will close all the Internet Explorer window and tabs except HP Quality Center. To use this function simply copy paste it in to text file and save the file with .vbs Extension. When you double click on the .vbs file, the script will be executed and you can found the result.

Function CloseIE
    On Error Resume Next

    'Variable Declaration
    dim objShell, objWindow, strTitle

    'Set Variables and Object Values
    set objShell = CreateObject("Shell.Application") 'Create Shell Application Object
    strTitle = "HP Quality Center" 'Set Window Title Search Name
   
    for each objWindow in objShell.Windows 'Get Window Objects
        if InStr(objWindow.FullName,"iexplore")<>0 then 'Check Object Window Full Name with iexplore   
            if(objWindow.document.title<>"") then 'Check Object Window Title not Blank   
                if InStr(objWindow.document.title,strTitle)=0 then 'Check Object Window is not Quality  Center
                    objWindow.Quit 'Close IE
                end if   
            end if   
        end if
    next

    if objShell.Windows.Count>0 then 'Check Object Window Count
        For i=0 to objShell.Windows.Count
            Call CloseIE 'Recursively call Function
        next
    end if

End Function

Note :- To Use this Function write the below statement in top of the .vbs file.
Call CloseIE statement

Add Remove Object Repository Dynamically in QTP

HP QTP provides a great functionality for adding or removing Object Repository at run time or dynamically. For that ObjectRepositories Utility object of QTP is used. 

Find the below code for Add/Remove Object Repository dynamically in QTP during run time.

'*********************************************************
'Function Name: AddRemoveOR
'Purpose: Use for Add Or Remove Object Repository with Action Name
'Inputs:
    'repositoryPath=Repository Path for Add or Remove with Action
    'actionName=Action Name for Add for Add Or Remove Repository
    ' operationName=Operation Name to be Perform either "Add" or "Remove" Object  Repository
'Return Values: -
'Created By: Krutin Gandhi
'*********************************************************

Function AddRemoveOR(repositoryPath,actionName,operationName)  

    Dim qtApp,qtRepositories, actName, RepPath,  rPosition'Variable Declaration

    RepPath=repositoryPath 'TRS File Path
    actName=actionName   'Get Action Name
    Set qtApp = CreateObject("QuickTest.Application")    ' Create Application Object
    Set qtRepositories = qtApp.Test.Actions(actName).ObjectRepositories    ' Get Associated repositories list

        'Adding Repository to an action
        If operationName="Add" Then       
            If qtRepositories.Find(RepPath) = -1 Then
                qtRepositories.Add RepPath, 1    ' Add the Object Repository to the current action 
            End If

        'Remove Repository to an action
        Else if operationName="Remove" Then
            rPosition=qtRepositories.Find(RepPath) 'Find the Position of the Repository
            If  rPosition<>-1 then
                qtRepositories.Remove rPosition  ' Remove Repository From the Action
            End if           
        End If
    End If

    'Assign nothing
    Set qtApp= Nothing
    Set qtRepositories= Nothing
End Function

Friday, July 6, 2012

Business Process Testing Challenges

What is Business Process Testing ?
  • It is an additional licensed module of Quality Center.
  • It is a transformation, not a technology.
  • It helps to create reusable business components – Manual & Automated of a test (s).
  • Business Component : Non-Scripted and Scripted.
  • It accelerates the automation in large ERP Apps – SAP & Oracle Apps.
Challenges of Business Process Testing
  • Required Highly Level domain knowledge to a create Business Process Testing Component.
  • The input data required for executing the Business Process should be reusable.
  • Business Process should be complete, correct and accurate.
  • Business Process Components should also be compatible with lower versions of Quick Test Professional and Quality Center.
  • Some times Subject Matter Experts require technical knowledge because:
    • Some initial Components might prove complete for some Business Process’s, but there will surely be a need to create new components in order to complete all the scripts.
    • Though UI Scanner automatically generates the required components, it might be required to manually modify the Quick Test Professional code, or even to manually create a whole component.

Tuesday, November 1, 2011

QTP 11 New Features


HP QuickTest Professional software version 11 is now available in market. In QTP 11, There are many updates as compare to QTP 10. Following are some features of QTP 11 which are new as compare to old QTP 10.
  • Support for new Operating Systems
  • Enhanced Data Management Facility
  • New Object Spy Functionality
    • Add an object to a repository
    • Highlight an object in our application
    • Copy/paste object properties
  • New Smart Regular Expression list
  • New QTP-Service Test integration facility
  • New Run Results Viewer
  • New facility to hide the Keyword View
  • Facility to add Images to Our Run Results
  • New Log Tracking Functionality
  • Automatic Parameterization of Steps
  • New Visual relation identifiers
  • Visual indication of Version Control Status of Tests
  • Web 2.0 add-ins support
  • New capabilities for working with Web-Based objects
    • Firefox Testing
    • XPath, CSS, Identifiers
    • Event Identifiers
    • Embed or Run JavaScripts in our Web Pages
  • New methods for testing Web-based Operations
  • New methods for testing Web-based Operations
  • New LoadFunctionLibrary statement
  • Improved checkpoints and output value objects management
  • Dual Monitor Support
  • New QTP Asset Upgrade Tool for HP ALM and Quality Center
  • Test execution in minimized remote desktop protocol session
  • Improved Web Add-in Extensibility
  • Improved Business Process Testing
  • New Extensibility Accelerator for Functional Testing

Tuesday, October 4, 2011

Export QTP Result as a HTML Page

The Quick Test Professional has an in built functionality to Export Test Results in PDF, Excel or HTML file but if the user want to Export the Test Result via descriptive programming and user defined function than the below code will be helpful.

This below simple code for "Export QTP Result as a HTML Page" is modifiable and developed with VB Script.

Function Declaration :
Public Function GenerateHTMLReport(ByVal inputXML, ByVal inputXSL, ByVal outputFile)
   sXMLLib = "MSXML.DOMDocument"
   Set xmlDoc = CreateObject(sXMLLib)
   Set xslDoc = CreateObject(sXMLLib)
   xmlDoc.async = False
   xslDoc.async = False

   xslDoc.load inputXSL

   xmlDoc.load inputXML

   outputText = xmlDoc.transformNode(xslDoc.documentElement)

   Set FSO = CreateObject("Scripting.FileSystemObject")
   Set outFile = FSO.CreateTextFile(outputFile,True)
   outFile.Write outputText
   outFile.Close
   Set outFile = Nothing
   Set FSO = Nothing
   Set xmlDoc = Nothing
   Set xslDoc = Nothing
   Set xmlResults = Nothing

 End Function

Use of Function :
Dim sResultsXML, sDetailedXSL
sResultsXML is for define full path of the Result.xml file.
sDetailedXSL is for QTP inbuilt PDetails.xsl file for format the Result.xml file.

For Example :
sResultsXML = "C:\Temp\TempResults\Report\Results.xml"
sDetailedXSL = "C:\Program Files\HP\QuickTest Professional\dat\PDetails.xsl"

Function Call :
GenerateHTMLReport sResultsXML, sDetailedXSL, "Path for save the Exported HTML file"

Monday, October 3, 2011

Visual Studio 2011 and .NET Framework 4.5 developer

There is a Fantastic news from the Microsoft for developer because microsoft recently announced the Visual Studio 2011 and .NET Framework 4.5 developer preview in Anaheim, California. There are some new features at this movement with Visual Studio 2011 and .NET Framework 4.5 developer preview are as under

1.) Visual Studio 2011 developer preview Features

- Develop Metro style Apps for Windows 8
- Enhancements for Game Development
- Code Clone Analysis
- Code Review Workflow
2.) .NET Framework 4.5 developer preview Features

- State machine support in Windows Workflow
- Improved support for SQL Server and Windows Azure in ADO.NET
- ASP.NET has increased investments in HTML5, CSS3, device detection, page optimization, as well as new functionality with MVC4

Wednesday, September 14, 2011

Javascript Confirm Message Box

This is the simple and easiest way to create a JavaScript confirm message box. A JavaScript confirm message box is similar to an alert box.with the JavaScript confirm message box the user can get two choices — OK and Cancel button in the message box. One ristriction with the JavaScript confirm message box is that You can't change the names of the choices but you can determine what they do.

<html>
<head>
<script type="text/javascript">
function showConfirmBox()
{
     var r=confirm("Kindly Press a button!");
     if (r==true)
    {
         alert("You just pressed OK!");
    }
   else
   {
        alert("You just pressed Cancel!");
    }
}
</script>
</head>
<body>
<input type="button" onclick=" showConfirmBox ()" value="Click here for confirm box" />
</body>
</html>

Tuesday, August 9, 2011

SQL Server Report With Asp.net Application

This article features integration of SQL Server Report With Asp.net Application. To call SQL Server Reports With Asp.net Application from front end can be acheived in few steps as under. 
Solution 1 : Direct Load Report in Application.
  1. Create a new website.
  2. Add the report viewer to a form.
  3. Change the ProcessingMode to Remote.
  4. Also change the AsyncRendering to FALSE.
  5. Then assign two properites to the report viewer:
    • ReportViewer1.ServerReport.ReportServerUrl 
    • ReportViewer1.ServerReport.ReportPath 
Report should then pop up in your page.

Solution 2 : Load the report on click of the menus on a web page.

  1. Click the smart tag which is located on the top left corner or the ReportViewer to show the ReportViewer Tasks panel.
  2. In the Choose Report dropdown list, select to display report on the Report Server.
  3. Type in the Report Server Url in the Report Server Url textbox like Exe:-http://servername/reportserver.
  4. Keep the Report Path textbox blank.
  5. In the click event handler of the menu, type in the code below to specify the report dynamically:
    • ReportViewer1.ServerReport.ReportPath ="/FolderName/ReportName"; 
    • ReportViewer1.ServerReport.Refresh();
 After that, the ReportViewer would not display report until click the menu.

Tuesday, November 16, 2010

When ASP.NET Application Restart?

The list of situations

  1. Adding, modifying, or deleting the application's Web.config file.
    • This is very important situation here, if we are add any new section or modify existing section i web configuration file, the IIS will treat as change and then lead to restart the ASP.NET Application. And more important when Application restart all the sessions and other states will lost. so make sure before update anything in web config file, all the transaction has been completed.
  2. Adding, modifying, or deleting assemblies from the application's Bin folder.
  3. Adding, modifying, or deleting localization resources from the App_GlobalResources or App_LocalResources folders.
  4. Adding, modifying, or deleting the application's Global.asax file.
  5. Adding, modifying, or deleting source code files in the App_Code directory.
    • This is very important situation here, if we are add any new section or modify existing section i web configuration file, the IIS will treat as change and then lead to restart the ASP.NET Application. And more important when Application restart all the sessions and other states will lost. so make sure before update anything in web config file, all the transaction has been completed.
  6. Adding, modifying, or deleting Web service references in the App_WebReferences directory.
This is very smal tip, but most useful, who are working production asp.net application.

Data Access Layer Class In C#

In this article, I would show to you how to create a Data Access Layer Class in C#. The data access layer always important when we are work with database and presentation layer. This class should contains all the methods which can be used to get data from database (using Stored Procedures) and also to insert and update data in database.

Data Access Layer Class contains the methods which return different objects like Data set, SqlDataReader, Integer etc at the end of the method. Data Access Layer Class also contains methods for adding.Parameter to SQL Command with different parameters and contains the method to set the parameter value.

Here is the sample code for create the Data Access Layer Class in C#.

Monday, November 15, 2010

Difference between Web Service and WCF Service

  • Web services can be hosted in IIS as well as outside of the IIS. While WCF service can be hosted in IIS, Windows activation service,Self Hosting,WAS and on lots of proctols like Named Pipe,TCP etc.Here lots of people disagree how we can host the web service outside of the IIS but Here is the article for that.http://msdn.microsoft.com/en-us/library/aa529311.aspx.
  • In Web Services Web Service attribute will added  on the top of class. In WCF there will be a Service Contract attributes will be there. Same way Web Method attribute are added in top of method of Web service while in WCF Service Operation Contract will added on the top method.
  • In Web service System.XML.Serialization is supported while in the WCF Service System.RunTime.Serialization is supported.
  • WCF Services can be multithreaded via ServiceBehavior class while web service can not be.
  • WCF Services supports different type of bindings like BasicHttpBinding, WSHttpBinding, WSDualHttpBinding etc.while Web services only used soap or xml for this.
  • Web services are compiled into a class library assembly. A file called the service file is provided that has the extension .asmx and contains an @ WebService directive that identifies the class that contains the code for the service and the assembly in which it is located while in WCF.WCF services can readily be hosted within IIS 5.1 or 6.0, the Windows Process Activation Service (WAS) that is provided as part of IIS 7.0, and within any .NET application. To host a service in IIS 5.1 or 6.0, the service must use HTTP as the communications transport protocol.

Monday, October 25, 2010

Share Point moving items between lists

There is a very necessary thing for the Share Point developer is to move the List Item to another List. This is happening almost in every issue. So there are some simple steps for Share Point Moving Items from one List to another List.
  1. Open your Share Point site and make sure you’re logged in at least as a Site Collection Administrator (not that you cannot do this operation with other permissions.) 
  2. Before Developer precede also make sure that publishing is enabled for the Site Collection Features and Site Features. 
  3. Navigate yourself to the Site Settings and then to Manage Content and Structure.
  4. Select the List where you have the list item and then hover over the list item you want to move.
  5. Drop down the menu and select Copy/Move.
  6. It should open a dialogue box displaying a site tree structure again.
  7. Select the List you would like to the copy/move the item to and the operation would be executed.
  8. Now Open the destination List and you would see your List item listed there.
So now you can easily handle this massive work so simply when any developer want to do the "Share Point Moving items from one List to another List".

Friday, October 22, 2010

Share Point 2010 Change Favicon Icon


To change the favicon icon in SharePoint 2010 is much easier with SharePoint 2010. SharePoint 2010 is much easier and customizable. SharePoint 2010 is latest version of Microsoft SharePoint. With SharePoint 2010 the SharePoint Designer 2010 attached which is simpler to work with and allows the SharePoint developer to change just about anything they wish to change. While customization is easier than ever, it has also changed significantly from SharePoint 2007. The addition of new SharePoint controls allows the user to change settings more easily than before. The favicon, the icon that represents the website, is an important part of any page. Specifically in SharePoint 2010, if this icon is left unchanged it leaves the default bright orange icon.

To maintain the branding of your webpage in your favicon, follow these steps.
  1. Upload your favicon file to your images library.
  2. Publish and Approve your icon through the SharePoint Publishing Workflows
  3. Open your master page in SharePoint Designer 2010.
  4. Find the tag in the HTML header.
  5. Change the "IconUrl" tag to the relative URL of your favicon.
  6. Save and check-in your master page.
  7. Publish and approve your master page through the SharePoint Publishing Workflows.

Thursday, October 21, 2010

Share Point group Send email

For Send the email to the Share Point Group, follow the below steps. These steps are with the Active Directory settings.
  1. First of all, create an Organization Unit (OU) in the Active Directory (AD) and delegate Full Control rights to Share Point Service Account (Central Administration Application Pool Account).
  2. Configure Incoming Email Settings to use Share Point Directory Management Service to create Distribution Groups and Contacts to the Active Directory container (OU).
  3. Mention the SMTP server name select all the options for Distribution Group Request Approval Settings.
  4. On the Share Point Site create a new group with Full Control permission.
  5. Create an Email Distribution Group (type in an email address) for this group.
  6. In Central Administration > Operations > Approve/Reject Distribution Groups, approve the Distribution Group to be created in the OU.
  7. Check the OU in the AD and you will find the Distribution List successfully created with the email address (Microsoft Exchange stamps this email address to this Distribution List) assigned to the Share Point Group in the Share Point Site.
  8. Add some users to the Share Point group and you will find that they synchronized the same in the Distribution List.
  9. Send an email to the email address assigned to the Share Point group and the emails would be sent to the individual members of the Share Point Group.
Note: Synchronization between Share Point Group and Distribution List in the AD is a one way transaction (Share Point Group to Distribution List and not the other way round).  Hence, new users added to the Share Point Groups reflect automatically in the Distribution List however the vice-versa does not work.

Tuesday, October 19, 2010

SharePoint Foundation 2010 Features

Microsoft released new technologies in 2010, and most important in between them is SharePoint Foundation 2010. Previously known by the code name SharePoint 14, SharePoint 2010 marks a significant upgrade to the SharePoint product. Here are some knowledge about what kind of great feature Sharepoint Foundation 2010 has.

New in Microsoft SharePoint Foundation 2010:
Alerts Enhancements
  • Alerts can now be delivered as e-mail or as a Short Messaging Service (SMS) message.
  • The alert system can be programmatically customized with mobile messaging service providers.
Business Connectivity Services
  • You can create, read, update, delete, and query external line-of-business systems and do batch and bulk operations which reduces round trips dramatically.
  • You can create content types for external data and services.
  • There are more connective options including “plug and play” custom connectors and out-of-the-box connections to databases, Web/WCF services, .NET connectivity assemblies, and custom data sources.
Client Object Model
  • There are three new client APIs for interacting with SharePoint 2010 site; .NET managed application (Microsoft .NET Framework 3.5 or later), Silverlight applications (Microsoft Silverlight 2.0), and ECMAScript (JavaScript, JScript).
Events Improvements
  • Event handlers will be available for add and delete events on lists, add events on Web sites, and after events can now be either synchronous or asynchronous.
List Improvements
  • You can create a SharePoint lists that reads and manipulate data from an external data sources such as a SQL Server data table.
  • You can easily create relational lists using lookup fields and have cascading deletion.
  • Lists can now have duplicate or non- duplicate list items.
  • Lists can have custom column validation equations using VBScript.
  • Lists can now have navigation hierarchies and filters based on content types meaning you can have a document library that is broken down into sub-categories based on metadata in your content types.
Microsoft Synch Framework
  • The new Microsoft Sync Framework will allow SharePoint developers to synchronize offline files and data from external applications, services and devices with libraries or lists in SharePoint 2010.
Mobile Device Development Enhancements
  • Mobile Web Part Adapters in SharePoint 2010 allows developers to create adapter controls for Web Parts that you want to make available on mobile pages.
  • Mobile messages can now be sent as Short Messaging Service (SMS) message or Outlook Message Service (OMS) through the SharePoint API.
Query Enhancements
  • A new LINQ to SharePoint provider enables your code to query SharePoint lists from server code by using LINQ syntax.
  • CAML queries will now supports joining multiple lists in a single query and you can specify what list fields to include in the results.
  • Web Services will still be a part of SharePoint 2010, but only for backwards capability support. For best performance and usability, it is recommended that you use either the client object model or the ADO.NET Data Services Framework.
Ribbon Menu
  • SharePoint 2010 will have use the popular ribbon menu system from Office 2007 to replace the old style of the publishing tool bar control and some administrative menus.
  • Central Administration screens will also use a ribbon menu system.
  • You can customize the ribbon with a Feature or through a user custom action.
Sandboxed Solutions
  • Sandboxed Solutions are partially trusted solutions that are limited to using subset of the Microsoft SharePoint namespace and can be monitored by farm administration for CPU execution time, memory consumption, database query time, abnormal terminations, critical exceptions, unhandled exceptions, and data marshalling.
Service Application Framework
  • The Service Application Framework replaces the Shared Services Provider in MOSS 2007
  • The Service Application Framework is an API that manages services and enables them to be load balanced and shared between computers on a server farm.
  • The Service Application Framework has over 20 built in services and can be extended by developers for their applications.
Silverlight Integration and the Fluid Application Model
  • Microsoft Silverlight 2.0 is now automatically installed with SharePoint 2010. Silverlight Web Parts allow Silverlight applications to be easily intergraded into your site pages.
  • Fluid Application Model is a new concept in SharePoint 2010 that allows non-SharePoint applications hosted on another server to be made available to all Web applications in a farm. Web site users with contributor rights can add Web Parts that host non-SharePoint applications to their page.
UI Improvements
  • Content and application pages now contain the same content placeholders and application pages now reference the site master page.
  • The CSS has been divided into multiple files to enable more targeted customization scenarios and to improve page loading performance.
  • More cross-browser support thanks to Silverlight.
  • SharePoint 2010 says it be WCAG 2.0 AA complaint.
  • You can choice between using the old SharePoint 2007 user interface or using new SharePoint 2010 user interface that uses Silverlight and the ribbon menu system.
Windows PowerShell for SharePoint
  • Windows PowerShell for SharePoint is a new command-line tool and a supporting scripting language from Microsoft that complements Cmd.exe in the Windows administration context and that supersedes the Stsadm.exe administration tool.
  • Although both Cmd.exe and Stsadm.exe will be maintained for backward compatibility, all current and future development of scripts and administrative files in SharePoint Foundation should use this new scripting technology.
Workflow Improvements
  • New workflow actions, Pluggable workflow services provide a mechanism for workflows to interact and receive data from external sources, more workflow events (WorkflowStarting, WorkflowStarted, WorkflowCompleted, WorkflowLoading, WorkflowUnloading, and WorkflowPostponed), site based workflows, high privilege workflows, and reusable declarative workflows.
InfoPath Forms Services
  • You can generate a simple InfoPath form that puts data into a custom list by clicking on the “List” properties in the ribbon and then the “Customize Form” menu item.
  • With InforPath 2010 it is easier to build rich forms declaratively with little to no code and more client-side validation.


New in Microsoft SharePoint Server 2010:
Enterprise Content Management
  • Site administrators can create rules in the “Content Organizer” section of SharePoint 2010 to redirect files to another folder, library, or record center based on the metadata of a file.
  • Document Sets applies metadata to entire collection of documents, spreadsheets, presentations, or other types of document content.
  • Document Sets support templates and versioning.
  • Document ID services adds a unique identifier to all documents throughout the site collection so you can retrieve documents by an ID no matter where it is stored.
  • You can create folder metadata.
  • In-Place Records Management incorporates record management capabilities in any site collection. You no longer have to use a Records Center site template to manage your documents.
  • Enterprise content types can be used in multiple site collections in the same or different farms.
  • Large page libraries allow more pages and folders to be store in one library than in SharePoint 2007. Libraries will scale to tens of millions and archives to hundreds of millions of documents. This mean you don’t have to break down your site into sub sites to maintain performance.
SharePoint Enterprise Search
  • You can define a custom ranking model to use for search queries by creating a ranking model schema.
  • The SharePoint Search Connector Framework enables you to create search connectors to connect and crawl custom content repositories like external web sites, file servers, Exchange, Lotus Notes, Documentum and FileNet.
  • SharePoint Search a new phonetic search algorithm and spell check so you don’t have to worry about spelling words or names correctly.
PerformancePoint Services
  • Performance Point Server will now be part of SharePoint Server 2010 and will allow business users to create dashboards, scorecards, and key performance indicators (KPIs). (Side Note: If you have enterprise edition of MOSS 2007 you can run Performance Point Server 2007. Check Microsoft website for more details.)
Excel Services
  • Excel services now includes richer pivoting, slicing and visualizations like heatmaps and sparklines.
  • Use Excel and PowerPivot, also known as “Gemini”, to quickly manipulate millions of rows of data into a single Excel workbook for ad-hoc reports without having to create or edit an OLAP cube.
  • You can use the REST API and the ECMAScript object model to manipulate your Excel workbooks.
Visio Services
  • Like Excel Services, Visio documents can now be rendered within a web browser when they are hosted in SharePoint.
  • Business user can create workflow outlines in Visio and export them to SharePoint designer to add the business logic and additional rules.
User Profiles and Social Data
  • The Microsoft.Office.Server.ActivityFeed namespace provides new functionality for programmatically publishing and gathering the activities of site users.
  • The Microsoft.Office.Server.SocialData namespace provides new functionality for programmatically creating and aggregating social tags, ratings, and comments.
  • The Microsoft.Office.Server.UserProfiles provides new functionality that enables you to create role-specific properties for any type of user profile. For example clients vs employees.
Word Automation Services
  • The Word Automation Services provides server-side conversion of documents into other formats including .pdf, .xps, .docx, .docm, .dotx, .dotm, .doc, .dot, .rtf, .mht, .mhtml, and .xml.
Free Download Documentation