@@ -0,0 +1,1530 @@
+package com.camillepradel.movierecommender.testscript;%0A%0Aimport java.io.BufferedInputStream;%0Aimport java.io.DataInputStream;%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.net.MalformedURLException;%0Aimport java.net.URL;%0A%0Apublic class TestGetRecommendations %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09%0A%09%09String urlStart = %22http://localhost:8080/MovieRecommender/recommendations?user_id=%22;%0A%09%09int nbIterations = 100;%0A%09%09int userId= 0;%0A%09%09long startTime = System.nanoTime();%0A%0A%09%09for (int i= 0; i %3C nbIterations; i++) %7B%0A%09%09%09%0A%09%09    URL u;%0A%09%09    InputStream is = null;%0A%09%09    DataInputStream dis;%0A%0A%09%09    try%0A%09%09    %7B%0A%09%09      u = new URL(urlStart + userId);%0A%09%09      is = u.openStream();%0A%09%09      dis = new DataInputStream(new BufferedInputStream(is));%0A%09%09      while ((dis.readLine()) != null)%0A%09%09      %7B%0A%09%09      %7D%0A%09%09      System.out.println(i + %22/%22 + nbIterations);%0A%09%09    %7D%0A%09%09    catch (MalformedURLException mue)%0A%09%09    %7B%0A%09%09      System.err.println(%22Ouch - a MalformedURLException happened.%22);%0A%09%09      mue.printStackTrace();%0A%09%09      System.exit(2);%0A%09%09    %7D%0A%09%09    catch (IOException ioe)%0A%09%09    %7B%0A%09%09      System.err.println(%22Oops- an IOException happened.%22);%0A%09%09      ioe.printStackTrace();%0A%09%09      System.exit(3);%0A%09%09    %7D%0A%09%09    finally%0A%09%09    %7B%0A%09%09      try%0A%09%09      %7B%0A%09%09        is.close();%0A%09%09      %7D%0A%09%09      catch (IOException ioe)%0A%09%09      %7B%0A%09%09      %7D%0A%09%09    %7D%0A%09%09%7D%0A%09%09%0A%09%09long endTime = System.nanoTime();%0A%09%09System.out.println(%22Time to get %22 + nbIterations + %22 times recommendation page: %22 + (endTime - startTime) + %22ns%22);%0A%0A%09%7D%0A%7D%0A

Create script file to test app scalling capabilities.