Software Architecture

Write test code for testing the given VendingMachine program through its GUI, i.e., the vendingGUI class. The tests must cover each kind of coins (NICKEL, DIME, QUARTER, DOLLAR), each kind of drinks (COFFEE, JUICE, SODA) and each event (Insert Coin, Return Coins, and Purchase). You may run VendingMain.java to get familiar with the GUI. You should not modify the given source code unless absolutely required.

Submit the following artifacts: (a) the source code of the entire VendingMachine project including your test code so that the grader can run your code, (b) an explanation about how your tests have met the above requirements. In case you have modified the source code, provide a justification why your modification is required. (c) a video clip that shows the execution of your test code and execution results. To receive the credit, your test code must be executable without error.

Write test code to automate the following online shopping session at amazon.com. There is no need to login to your amazon account, so please don’t provide your account information. You may choose any programming language supported by Selenium Web driver

Sample Solution.