Showing posts with label Programming. Show all posts
Showing posts with label Programming. Show all posts

Friday, 13 July 2007

Chat with Google Talk in Eclipse Europa

Eclipse, a popularly known IDE for Java programmers has recently released its new version called Europa. Europa features 21 Eclipse projects for software developers and is more than double the size of last year’s record-setting release.

ECF is a collection of communication and collaboration tools. One of these is support for talking to any XMPPS (Jabber) server. Given that the popular Google Talk system uses XMPPS, we can easily configure Google Talk to run inside an Eclipse view. If you haven't installed ECF, here are the steps to install ECF.

  • Goto Help -> Software Updates -> Find and install
  • Drill into 'Search for new features to install'
  • Select Europa site(http://download.eclipse.org/releases/europa)
  • Click Finish
  • Download Core feature and download examples also if you need
  • Restart Eclipse once done

Switch to 'Communications' perspective in Eclipse. Clicking on the arrow will show a drop-down menu with IRC, MSN, XMPP, XMPPS and BitTorrent. Select XMPPS (encrypted version of XMPP) and it asks for username and password. Enter the email address as words. For example, eshwar.gupta@gmail.com is to be entered as eshwar dot gupta at gmail dot com. If you find any problems try eshwar dot gupta at talk dot gmail dot com. Once clicking on 'Finish', shows your contacts view. You can also set your status using the drop-down menu. Besides this, ECF also supports IRC. Try it out.

Thursday, 14 June 2007

Testing AJAX applications with Fiddler

Testing AJAX web applications is very difficult. Ajax relies mainly on requests to the server  ( and responses received from them). We can't test what is sent and received from the server. The way to solve these problems is to use HTTP Proxy.

A HTTP proxy is a small program which intercepts between the client requests and responses to and from the server. The browser sends a request and the HTTP proxy receives the request. It then sends the request to the server and when it is processed, the response is sent back to the HTTP proxy. It is then sent to the browser. In addition to the interception job, it also records the information transfer. Fiddler is one such HTTP proxy tool which is used for testing and debugging Ajax applications.

                              

Fiddler, a free tool is an HTTP proxy for WINInet, which is the Internet Communication library used by many desktop applications, including Internet Explorer. Once installed, Fiddler automatically begins intercepting HTTP traffic to and from your computer.

Download Fiddler

Configuring Fiddler

If you want to get fiddler to listen to the requests too, go to Tools > Options > Connection > Connection Settings and check "Manual Proxy Configuration", "Use the same proxy for all protocols" and enter 127.0.0.1 port 8888 and click OK.  Note that this will pose problems if you close Fiddler as your proxy is gone, to solve the problem change back to "direct connection to internet".

Using Fiddler

The Fiddler window has two main regions. The left region shows all the requests that were sent from the machine. Each request is represented in a line. The line includes the response status, the protocol used (usually HTTP), the host name, the URL, the caching type, the length of the response, and the content type.

The right region has three tabs which are Performance Statistics, which displays information relating to data transmission rates, including the number of bytes sent and received as well as the types of data received. The Session Inspector tab provides information about the request and the accompanying response. The Request Builder tab allows you to manually construct a request and observe its response.

Another main feature of Fiddler is it has the ability to set breakpoints for HTTP requests and responses. As the request breakpoint is set, the Session Inspector tab is filled with information about the request. We can change the request before it is sent to server. Similarly, before the response is sent back to browser, we can edit the response.

Ajax debugging with Fiddler

  • Ensures that correct data is being sent to the server
  • Ensures that the data is sent in correct format and contains correct data
  • Checks whether correct response is received from server
  • Setting breakpoints for the request and response helps in finding out the error easily

Once you've recorded a session in fiddler you can then select the requests you're interested in, right click them and save them as a Visual Studio Web Test. You now have an XML file with the .webtest extension, ready to be imported into Visual Studio. Web Tests are used for testing the applications in Visual Studio 2005. You can know more information from my previous post Web Tests with Visual Studio 2005

You can find the Fiddler demonstration videos at this link

Source Via [Wrox Article]

Wednesday, 13 June 2007

Web Tests in Visual Studio 2005

Visual Studio 2005 and the .NET Framework 2.0 has a set of tools and functionality that will help the application development needs of today's large scale applications. It introduced a brand new set of tools for web and load testing. A load test of a Web application might span multiple machines and simulate tens of thousands of users, but at its heart it is a collection of Web tests.

Visual Studio 2005 enables web testing and makes it easy for the developer without writing any code. A Web test simulates how an end user might interact with a Web application. Typically, you create Web test by recording HTTP requests using the Web Test Recorder in a browser session, but you can also build Web tests manually using the Web Test Editor.

Recording a Web Test

Create a new Web test in Visual Studio. The Web test launches Internet Explorer, activating the integrated Web Test Recorder. Test recorder is used to record the actions you perform while you browse a Web site. The Web Test Recorder does not capture traffic sent between the client and server. This type of tool is sometimes called proxy recorder.

See for more information on Web Tests

Sunday, 10 June 2007

Features of Microsoft Acropolis

Microsoft has finally announced publicly during this week's TechEd 2007 about Microsoft Acropolis. Microsoft Acropolis is a set of components and tools that make the developer and client easier to build and manage modular, business focused, client .NET applications. Acropolis is a part of ".NET Client Features". It builds on the rich capabilities of Microsoft Windows and the .NET Framework, including Windows Presentation Framework (WPF), by providing tools and pre-built components that help developers quickly assemble applications from loosely-coupled parts and services.

In order to work on Acropolis, you need Windows Vista or Windows XP SP2 and also the new version of Microsoft Visual Studio named Orcas Beta 1. If you have all these, then download Acropolis from
Download Acropolis from Microsoft Site

Get a Video on Introduction to Acropolis from Microsoft Site

 

Features of Acropolis

 Acropolis overturns the way organizations design, develop, configure, deploy and manage their application solutions.

  • Acropolis brings Windows Forms closer to Windows Presentation Foundation (WPF). Its a user interface API which brings all the ingredients required for business enterprise applications. Acropolis makes it more easy and gives a way to incorporate these parts into their new applications
  • We can easily create complex, business concentrated applications with ease and can also build reusable and connectable client application modules
  • Integration with other applications like Microsoft office and stand alone client interfaces
  • Using XAML, the User interface of the application can be easily enhanced by the built-in themes and designs.
  • Also includes some of the features with fewer lines of code like the navigation workflow and custom views.
  • Maintaining the applications would be easier and the tasks of updating and deploying the applications can be done speedily.

Download Acropolis from Microsoft Site