Archive for the ‘.net’ tag

When technology allows us to apply a new flexible web page development model, is it worth switching to new practices?February 9th, 2011


In the past few months, new technical products and components have hit the market, giving us the opportunity to build web pages in a more effective and timely manner. Many might say that they have been developing Ajax enabled web pages for years, without issues. Whilst this is true, significant opportunities for improvement have arisen which deserve to be considered. These developments will help give new meaning to the words purity, simplicity, interoperability, reliability, performance and attractiveness.

So what’s new?

Let’s have a look at some key events from the past year:

March 2010: Microsoft officially announced that they will contribute a HTML template engine to the jQuery community. In addition, for several months jQuery has benefitted from official Microsoft core support worldwide.

April 2010: Visual Studio 2010 offers comprehensive support for SharePoint 2010 web pages and features development.

May 2010: SharePoint 2010 is shipped with support for .Net Framework 3.5 features as well as Astoria and Rest WCF services.

October 2010: The template engine from Microsoft is now part of the official jQuery web site. It is recognized as a valid beta to be released at a later date, and is available for download now.

 

So what does this mean?

Read the rest of this entry »

Flex UI testing with RanorexOctober 22nd, 2009

Adobe Flex technology is getting more and more popular, and  we have started to build even quite complicated applications using Flex. However, the UI behaviour in Flex  is generally more complex than in HTML/JS/CSS and we quickly realized that we needed a testing tool which could record and replay user actions sequences to help us detect UI issues.

Looking around for testing tools, we came across some open source frameworks  such as FlexMonkey and SeleniumFlex. We also tested the following commercial tools :

  • HP QTP
  • IBM Rational Functional Tester
  • Borland SilkTest
  • RIATest
  • TestComplete

Unfortunately, most of the time, we were quite disappointed with those products because of poor documentation and insufficient user actions record/replay support:  During  one of our tests, we discovered that certain user actions, such as contextual menu selection or drap & drop actions, were not correctly detected or, even worse, were not working anymore.

One of the issues with these tools is probably that they use common techniques and/or underlying frameworks to automate Flex applications, such as External Interface, Microsoft Active Accessibility or Flex Automation … moreover, you should note that using Flex Automation SWCs files requires a Flex Builder license.

Enter Ranorex (http://www.ranorex.com), which, since its lastest version, can also automate Flex applications. Ranorex provides its own automation framework and therefore does not rely on Flex Automation.

We were able to quickly use it to record everything from from simple to complex testcases,  fine-tune and run them. Components are identified by an Xpath like dialect (RanorexXpath), which is automatically written for you when recording or when using the Ranorex Spy tool : this makes writing test script a lot easier. There are also interesting features such as imaging comparison, user friendly test reports or test script debugging and much more.

Scripts tests are actually .Net executables writtent in C# or VB.Net and Ranorex Studio IDE is based on SharpDevelop, a open source .Net IDE . It means using this tool requires some basic knowledge of .Net, which can discourage some people. On the other side, writing script tests on a .Net architecture makes it  possible to use specific .Net features or 3rd party libraries to integrate with NUnit or Microsoft Products like Visual Studio or Excel.