Lightrun Demo App Challenges

Try to solve the following questions by using Lightrun to observe the behavior of the remotely running application.

  1. Let's get set up:

    • First download the application's source code and open it in your IDE.
    • There is no need to build the code - you won't be running it locally!
      This code is already running remotely and waiting for you to observe it using Lightrun.
    • In the same IDE, install (if you haven't yet) and log in to the Lightrun plugin.
    • In your original tab, log in to the demo and click an item to like it; click again to unlike.
  2. Use Lightrun to create a dynamic log to output the user's name each time a user likes an item.

    Include your own name at the beginning of the log message!

    note
    NOTE: You will need to switch to the Lightrun Console to view incoming log messages. There may be a few second delay before the logs you're expecting begin showing up.
  3. Change the log message you created in the previous step so that it only triggers when you like an item.
  1. Each of the items has a name in the itemNames map. Each name starts with a different letter of the alphabet, A through Z.
    Use a snapshot to figure out which two letters are unused.
    note
    NOTE: Lightrun transfers only the first few elements of an array or map. To get more, add the variable of interest to a watch expression when creating the snapshot.
  2. One or more users are unable to like items from the display. What's preventing those users from liking items?
  3. There is also a contest going on!

    • The system will select as "winner" the first user who has X or more items liked, one of which is item Y.
    • The contest is run by a separate script which interacts with the server. Download the script, open it in your IDE, and find the conditions (X and Y) necessary to win. Can you be first to get the "you've won" banner?
  4. It's actually possible to cheat and win the contest, even if it's already been won. Can you get your browser to show a win?
note

Lightrun documentation can help!


In case you need a reminder, here's how to create a log,


and here's how to take a Snapshot, including with conditions.