Tutorial of web application load testing in selinium


Published on

Published in: Technology
  • Be the first to comment

Tutorial of web application load testing in selinium

  1. 1. <ul><li>SELINIUM IDE </li></ul>
  2. 2. <ul><li>Testing software is a stage in the development of software that bertujuannya to find as many errors based on the test case. Testing software is absolutely necessary to produce quality software. </li></ul>
  3. 3. <ul><li>Functional testing is black box testing the test manifold. Functional testing is testing on a case that will be given to a component, modules or features that will be in testing. Functional Testing is done by providing input on the components, modules or features then check the results of its output. If the output was produced in accordance with the true meaning of hope, if not fit then that part there is an error. </li></ul>
  4. 4. <ul><li>Selinum IDE is a specialized tool to perform functional testing on web based applications. Selinium IDE plugin based on the Firefox web browser. </li></ul>
  5. 5. <ul><li>Type in the address http://seleniumhq.org/download/ Browser used is Firefox 5.0 </li></ul>
  6. 6. <ul><li>After version 1.1.0 Download link is clicked the download prompt appears Silinum IDE, </li></ul>
  7. 7. <ul><li>The download process Selinium IDE </li></ul>
  8. 8. <ul><li>Once the download is complete it will display a confirmation Silinium IDE installation. </li></ul>
  9. 9. <ul><li>After installation is complete restart your browser in order Silinium IDE can be used immediately. </li></ul>
  10. 10. <ul><li>If Silinium IDE tersinstal well then will appear in the list of add on browser. </li></ul>
  11. 11. <ul><li>To run the IDE Silinium enough to activate the plugin Selinium IDE on the tools menu in firefox broswer. </li></ul>
  12. 13. <ul><li>Box A, to provide the url address of the application resides. Box B, the area that contains a list of test cases. Box C, enter the command area for that need in the test case. D box, an area which contains a list of commands that are used in the test case. Box E, Button to run the test cases that have been made. Box F, Area to display the records that occurred during the test case is run, including errors that occur will be recorded here. </li></ul>
  13. 14. <ul><li>Test Case is a case scenario that will be in testing. On this slide as an example of its test cases are added the data in an application module </li></ul>
  14. 15. <ul><li>As an example will make the case for the added testing data in a module named the area in an application called Nokia Sales. </li></ul>
  15. 16. <ul><li>The first step is to open the Firefox browser and switch Selinium IDE. </li></ul>
  16. 17. <ul><li>Once the window appears silinium idea to name the test case to be made. (example: Test Case - Data Input Area). </li></ul>
  17. 18. <ul><li>Press the record button to record all activities on your browser in order to make the test case input data area. </li></ul><ul><li>Box A, is the name of the test cases that keep records. Box B, is the record / records. </li></ul>
  18. 19. <ul><li>Type in the browser's url address of the application resides, like the example below. </li></ul>
  19. 20. <ul><li>After the application appears to do the stages to perform module-added data in the area, like this example that at the start of the login application. </li></ul>
  20. 21. <ul><li>Activity log in the application was automatically recorded by Selinium IDE, such as those on show in the picture below. </li></ul><ul><li>The area inside the red frame is the evidence of record activity. </li></ul>
  21. 22. <ul><li>Of each activity recorded by the IDE Selinium provided comments to be easily understood. </li></ul>
  22. 24. <ul><li>Activities that have been awarded a comment will look like the picture below. </li></ul>
  23. 25. <ul><li>Once the application is successful then the login page will appear as below. </li></ul>
  24. 26. <ul><li>In this test case has a requirement if the application login is successful then the page should contain the following sentence. </li></ul>
  25. 27. <ul><li>Create a comment for Silinium IDE command that checks the existence of a sentence. </li></ul>
  26. 28. <ul><li>Create a command to check the existence of a sentence. </li></ul>
  27. 29. <ul><li>Give the command named verifyTextPresent which serves to check the existence of the word. </li></ul>
  28. 30. <ul><li>At the command verifyTextPresent write a sentence that will be checked existence. </li></ul>
  29. 31. <ul><li>When giving the command verifyTextPresent process has been completed it will look like the picture below. </li></ul>
  30. 32. <ul><li>In addition to command verifyTextPresent many other commands that can be utilized. Suppose as below. clickAndWait, a command that can be used for ajax. verifyCookiePresent, the command to check the existence of cookies. verifyElementPresent, the command to check the existence of an element. verifyHtmlSource, the command to memeriksan html code. focusAndWait, the command to give focus on a elament. </li></ul>
  31. 33. <ul><li>Once logged in, proceed to the test case module named destination area. </li></ul>
  32. 34. <ul><li>The module specified area can be accessed when there sentences and Add Area. </li></ul>
  33. 35. <ul><li>Give the command to check the word verifyTextPresent Area, so her results as shown below. </li></ul>
  34. 36. <ul><li>The process of making the test case was continued by pressing the plus button form so that it appears as below. </li></ul>Kotak A , Modul tambah area dikatakan benar apabila terdapat kalimat Tambah Area Kotak B, Berikan inputan BANDUNG TENGAH Kotak C, Berikan inputan BATEN Kotak D, Tekan tombol SIMPAN
  35. 37. <ul><li>Input is given on the form will be recorded by Silinium added IDE as shown in the picture below. </li></ul>
  36. 38. <ul><li>If the SAVE button has been pressed on the form then add pages that will appear mengadung sentence has been successfully stored data and Baten derived from previously entered form. </li></ul>
  37. 39. <ul><li>Give the command to sentence verifyTextPresent Data have been successfully saved and Baten to state that the data input process successfully. </li></ul>
  38. 40. <ul><li>End of making this test case is an application logout button. </li></ul>
  39. 41. <ul><li>After the process of creating a test case record is complete press the stop button to stop recording Selinum IDE. </li></ul>
  40. 42. <ul><li>After the test case is finished save the test case so that it can be used later on. Suppose that when the application is deployed on a different computer then to make sure the application is running fine, just open the file test cases and let the IDE Selinium testing automatically. </li></ul>
  41. 43. <ul><li>To save the test cases that have been made click the menu File -> Save Test Case </li></ul>
  42. 44. <ul><li>Running a test case is assigned Selinium IDE remedy testing automatically based test that we created earlier. </li></ul>
  43. 45. <ul><li>After Selinium IDE is started, open the file test case we have created. </li></ul>
  44. 46. <ul><li>Once the test case file is opened it will look like the picture below. </li></ul>Box A, the area that displays the test case file is opened. Box B, The area that displays a list of commands, or activities of the test cases are selected for each in box A.
  45. 47. <ul><li>Typed in the browser url address of the application to be on the test. </li></ul>
  46. 48. <ul><li>Press PLAY to order Selinium Tombo IDE running testing. </li></ul>
  47. 49. <ul><li>When a test case conducted by Selinium IDE there is no error there is no red writing in Area A and no failure in Area B. </li></ul>
  48. 50. <ul><li>When a test case conducted by Selinium IDE is an error then you see the color red in Area A and Area B is failure in </li></ul>