Newest Webmonkey ArticlesNewest articles in the tutorial Webmonkey namespacehttp://www.webmonkey.com/rss/tutorialTue, 06 Jan 2009 21:06:26 -0500 (EST)http://www.webmonkey.com/tutorial/Play_dvd_on_wiiTutorial:Play dvd on wiihttp://www.webmonkey.com/tutorial/Play_dvd_on_wiiTue, 06 Jan 2009 21:06:26 -0500 (EST)<![CDATA[<table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div> <ul> <li class="toclevel-1"><a href="#Introduction"><span class="tocnumber">1</span> <span class="toctext">Introduction</span></a></li> <li class="toclevel-1"><a href="#What_you.27ll_need"><span class="tocnumber">2</span> <span class="toctext">What you'll need</span></a></li> <li class="toclevel-1"><a href="#Steps"><span class="tocnumber">3</span> <span class="toctext">Steps</span></a></li> <li class="toclevel-1"><a href="#Alternate_methods"><span class="tocnumber">4</span> <span class="toctext">Alternate methods</span></a></li> </ul> </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script> <a name="Introduction"></a><h2> <span class="mw-headline"> Introduction </span></h2> <p><b>So you want to play DVDs on your Wii?</b> Want to watch your favorite DVD movie or television show on your Wii? It seems really difficult for most people. Thanks for hombrewer, everything becomes easy. Here we will show you two methods to play DVDS on Wii. </p><p>Method 1: Using the Homebrew Channel to Play DVD on Wii Method 2: Using the DVD to Wii Converter to Play DVD on Wii </p> <a name="What_you.27ll_need"></a><h2> <span class="mw-headline"> What you'll need </span></h2> <p>1. Nintendo Wii 2. Homebrew Channel 3. DVD to wii Converter </p> <a name="Steps"></a><h2> <span class="mw-headline"> Steps </span></h2> <p><b>Method 1: Using the Homebrew Channel to Play DVD on Wii</b> </p><p>Carrying on the rich hacker tradition of picking up the slack for companies that are unwilling or unable to provide the functionality users need, a team of Wii coders have given the console what Nintendo could not: DVD playback. By installing a small, hidden channel on a system, this package blesses the console with a libdi file (DVD access library), and allows you to watch your favorite videos with the MPlayer application, an open source media player. <img src="http://www.dvd-ripper-copy.com/images/article/dsd_playback_intro.png" alt="dsd_playback_intro.png" /> </p><p>The actual process is so simple – It's a matter of downloading a small file, a homebrew video player, copying them to an SD card, and using the Homebrew Channel to apply a two-second patch. Keep reading after the break for our full impressions. Check Step-by-step gallery at below: <a href="http://www.nintendowiifanboy.com/photos/guide-to-watching-dvds-on-wii/" class="external free" title="http://www.nintendowiifanboy.com/photos/guide-to-watching-dvds-on-wii/" rel="nofollow">http://www.nintendowiifanboy.com/photos/guide-to-watching-dvds-on-wii/</a> </p><p>Once it's up-and-running, you can pop into the Mplayer app from the Homebrew Channel, put any video DVD in the drive, and voila – you're watching a DVD on a game console. Crazy, huh? </p><p>Attention: There is a risk that brick your Wii if you do something wrong. </p> <a name="Alternate_methods"></a><h2> <span class="mw-headline"> Alternate methods </span></h2> <p><b>Method 2: Using the DVD to Wii Converter to Play Converted DVD on Wii</b> </p><p>Right, the Method 1 seems to be perfect. However, it’s still difficult for many people and exist risks to damage your Wii. So are there any easier and safer methods to do that? Thanks for the effort of Wii’s third part app developer, watching DVD on Nintendo Wii become much simpler and safer. All you need is a DVD to Wii Converter and a SD card. </p><p>Here below, I will take a third part app developer for Wii named Wondershare DVD to Wii Converter as example, and show you step-by-step guides – how to watch DVD on your Wii. </p><p><b>Step 1:</b> <a href="http://www.dvd-ripper-copy.com/dvd-to-wii-converter.html#116" class="external text" title="http://www.dvd-ripper-copy.com/dvd-to-wii-converter.html#116" rel="nofollow"><b>Download Wondershare DVD to Wii Converter</b></a> – Which can rip any DVD (including protected DVD) to Wii supported format such as AVI. </p><p><b>Step 2:</b> Convert DVD to Wii supported format The conversion is easy to handle, just with a few clicks. It may take you half an hour for a full DVD with lossless output quality. <img src="http://www.dvd-ripper-copy.com/images/article/dvd-to-wii-sc.jpg" alt="dvd-to-wii-sc.jpg" /> <b>Step 3:</b> Copy the converted DVD to your SD Card </p><p><b>Step 4:</b> Play the converted DVD on your Wii with the SD Card Plug in the SD card to your Wii, then put your foot up on the desk and enjoy your converted DVD on Wii. </p><p>Compared with the two methods, the first one can play DVD on Wii directly, but it need over 10 steps to finish the task and need some assistant hardware, further more it exist risk to brick the Wii. The second one also has its disadvantage - Not play DVD on Wii directly, but play converted DVD on Wii; anyway, it seems much easier and safer. </p>]]>http://www.webmonkey.com/tutorial/Learn_Functional_Testing_Using_JMeter_ComponentsTutorial:Learn Functional Testing Using JMeter Componentshttp://www.webmonkey.com/tutorial/Learn_Functional_Testing_Using_JMeter_ComponentsTue, 06 Jan 2009 21:06:26 -0500 (EST)<![CDATA[<table id="toc" class="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div> <ul> <li class="toclevel-1"><a href="#Introduction"><span class="tocnumber">1</span> <span class="toctext">Introduction</span></a></li> <li class="toclevel-1"><a href="#What_you.27ll_need"><span class="tocnumber">2</span> <span class="toctext">What you'll need</span></a></li> <li class="toclevel-1"><a href="#Steps"><span class="tocnumber">3</span> <span class="toctext">Steps</span></a></li> <li class="toclevel-1"><a href="#Alternate_methods"><span class="tocnumber">4</span> <span class="toctext">Alternate methods</span></a></li> <li class="toclevel-1"><a href="#Suggested_readings"><span class="tocnumber">5</span> <span class="toctext">Suggested readings</span></a></li> </ul> </td></tr></table><script type="text/javascript"> if (window.showTocToggle) { var tocShowText = "show"; var tocHideText = "hide"; showTocToggle(); } </script> <a name="Introduction"></a><h2> <span class="mw-headline"> Introduction </span></h2> <p>JMeter is found to be very useful and convenient in support of functional testing. Although JMeter is known more as a performance testing tool, functional testing elements can be integrated within the Test Plan, which was originally designed to support load testing. Many other load-testing tools provide little or none of this feature, restricting themselves to performance-testing purposes. Besides integrating functional-testing elements along with load-testing elements in the Test Plan, you can also create a Test Plan that runs these exclusively. In other words, aside from creating a Load Test Plan, JMeter also allows you to create a Functional Test Plan. This flexibility is certainly resource-efficient for the testing project. </p><p>This chapter will give a walkthrough on how to create a Test Plan as we incorporate and/or configure JMeter elements to support functional testing. This chapter assumes that you have successfully gone through Chapter 5, and created a Test Plan for a specific target web server. We will begin the chapter with a quick overview to prepare you with a few expectations about JMeter. Later, we will create a new Test Plan similar to the Test Plan in Chapter 5, only smaller. The Test Plan we will create and run at the end of this chapter will incorporate elements that support functional testing, exclusively. Preparing for Functional Testing </p><p>In this regard, I need to highlight that JMeter does not have a built-in browser, unlike many functional-test tools. It tests on the protocol layer, not the client layer (i.e. JavaScripts, applets, etc.) and it does not render the page for viewing. Although, by default that embedded resources can be downloaded, rendering these in the Listener | View Results Tree may not yield a 100% browser-like rendering. In fact, it may not be able to render large HTML files at all. This makes it difficult to test the GUI of an application under testing. </p><p>However, to compensate for these shortcomings, JMeter allows the tester to create assertions based on the tags and text of the page as the HTML file is received by the client. With some knowledge of HTML tags, you can test and verify any elements as you would expect them in the browser. </p><p>Unlike for a load-testing Test Plan, it is unnecessary to select a specific workload time to perform a functional test. In fact, the application you want to test may even reside locally, with your own machine acting as the "localhost" server for your web application. For this chapter, we will limit ourselves to selected functional aspects of the page that we seek to verify or assert. </p> <a name="What_you.27ll_need"></a><h2> <span class="mw-headline"> What you'll need </span></h2> <p>Using JMeter Components; <b>Snapshots for each step can be obtained from</b> <a href="http://www.packtpub.com/files/JMeter-Sample-Chapter-6-Functional-Testing.pdf" class="external free" title="http://www.packtpub.com/files/JMeter-Sample-Chapter-6-Functional-Testing.pdf" rel="nofollow">http://www.packtpub.com/files/JMeter-Sample-Chapter-6-Functional-Testing.pdf</a> </p><p>We will create a Test Plan in order to demonstrate how we can confi gure the Test Plan to include functional testing capabilities. The modified Test Plan will include these scenarios: </p> <pre> * 1. Create Account—New Visitor creating an Account * 2. Log in User—User logging in to an Account </pre> <p>Following these scenarios, we will simulate various entries and form submission as a request to a page is made, while checking the correct page response to these user entries. We will add assertions to the samples following these scenarios to verify the 'correctness' of a requested page. In this manner, we can see if the pages responded correctly to invalid data. For example, we would like to check that the page responded with the correct warning message when a user enters an invalid password, or whether a request returns the correct page. </p><p>First of all, we will create a series of test cases following the various user actions in each scenario. The test cases may be designed as follows: </p><p>With the exception of the Configuration elements, Listeners, and Assertions, which we will add later, our Test Plan will take the form that you see in the following screenshot: Apache JMeter Using HTTP Proxy Server to Record Page Requests </p><p>A s in recording requests in Chapter 5, you will need to include the HTTP Proxy Server element in the WorkBench. Some confi guration will be required, as shown in the following snapshot: Apache JMeter Configuring the Proxy Server </p><p>Simulating Create Account and Login User scenarios will require JMeter to make requests for the registration and login pages that are exposed via HTTPS. By default, HTTP Proxy Server is unable to record HTTP requests. However, we can override this by selecting (checking) the Attempt HTTPS Spoofing checkbox. </p><p>Selecting Add Assertion will be especially useful as we add specifi c patterns of the page that we want to evaluate as a later part of this exercise. The Capture HTTP Headers option is selected to capture the Header information as we begin recording. However, to make the recording neater, we will keep this option unchecked. </p><p>In addition, since we do not require images in our testing, in the URL Pattern to Exclude section, add these patterns: .*\.jpg, .*\.js, .*\.png, .*\.gif', .*\.ico, .*\.css, otherwise these image files, which are not necessary for our testing, will be recorded causing unnecessary clutter in our recording. Adding HTTP Request Default </p><p>A useful addition to this element is the HTTP Request Default element, a type of Configuration element. Since this Test Plan will employ multiple HTTP request elements targeting the same server and port, this element will be very useful. The web server name will not be captured for each HTTP Request sampler record, since the Request Default element will retain this information. With a little configuration change in this element, it allows the Test Plan to run even when the application is the deployed to a different server and/or port. The following snapshot is the HTTP Request Default element that we will use for this exercise. Apache JMeter </p><p>As we use this default element, our subsequent recording never needs to append the Server name. The result of our recording of the first page is shown in the following snapshot: Apache JMeter Adding HTTP Header Manager </p><p>Another very useful default element is the HTTP Header Manager Configuration element. This element can either be added to the Test Plan and configured manually as an afterthought, or we can simply use the recorded Browser-derived headers element as included in the recording. For convenience, we will choose the latter option. Once the Proxy Server records the homepage request, stop the recording. You will find a Header Manager for this page is being captured, as Browser-derived header. Simply click and drag this element to the top of the current scope of the HTTP Proxy Server. Notice that I have removed the Referer, since we want to create a default for the remaining HTTP Requests. Following is a snapshot of this change. Apache JMeter </p><p>Now you may de-select the Capture HTTP Headers option in the Proxy Server element, since we have the default header. </p> <a name="Steps"></a><h2> <span class="mw-headline"> Steps </span></h2> <p>o Preparing for Functional Testing o Using JMeter Components </p> <pre> + Using HTTP Proxy Server to Record Page Requests # Configuring the Proxy Server # Adding HTTP Request Default # Adding HTTP Header Manager + Let the Recording Begin... + Adding User Defined Variables </pre> <p>o Running the Test o Summary </p> <a name="Alternate_methods"></a><h2> <span class="mw-headline"> Alternate methods </span></h2> <p>For other details visit <a href="http://www.packtpub.com/beginning-apache-jmeter/book#indetail" class="external free" title="http://www.packtpub.com/beginning-apache-jmeter/book#indetail" rel="nofollow">http://www.packtpub.com/beginning-apache-jmeter/book#indetail</a> </p> <a name="Suggested_readings"></a><h2> <span class="mw-headline"> Suggested readings </span></h2> <p>This chapter provided visual means for you to understand the capabilities of JMeter tools that support functional testing, as we directly wrote and implemented a JMeter script. We have demonstrated building a Test Plan to contain functional validations (or assertions) by incorporating various essential JMeter components, particularly the 'Response Assertion' element and 'Assertion Result' Listener. By using the 'User Defi ned Variable' Confi guration element, we have also parameterized several values in order to give our Test Plan better fl exibility. In addition, we have observed the result of these assertions as we performed a 'live' run of the application under test. An HTTP Request sampler may require to be modifi ed, if there are any changes to the parameter(s) that the sampler sends with each request. Once created, a JMeter Test Plan that contains assertions can then be used and modifi ed in subsequent Regression tests for the application. The next chapter will let us see various ways that a JMeter script can be further confi gured and tweaked so that it supports better portability and testability. Chapter 7 will describe various methods and tools available in JMeter that support more advanced and complex testing requirements. </p><p>For more information visit <a href="http://www.packtpub.com/beginning-apache-jmeter/book" class="external free" title="http://www.packtpub.com/beginning-apache-jmeter/book" rel="nofollow">http://www.packtpub.com/beginning-apache-jmeter/book</a> </p>]]>