Manage Unit Test with Complex Architechture RRS feed

  • Question

  • User-419562455 posted

    Hi Experts,

    I have attached overview of my application architecture (https://www.imageupload.co.uk/image/BkAE).

    I have web application which is dependent on few of window application.Following are process steps.

    1)Create request for process (win. appl 1) and store it into database.
    2)Scheduler pick this request from database.
    3)Scheduler invoke respective window application.
    4)Window application process and update database.
    5)Web get updated status from database and requred tables

    Now, I have unit test project for web application.How can i make test case for this.

    What are the standard options?

    Friday, February 3, 2017 11:40 AM

All replies

  • User-1509636757 posted

    In your Unit Test project, you can perform same steps and check validity of output after each steps:

    1. Call the process that creates request for process (win app 1) that stores in Db
    2. Call the process/method that update the database by picking up request from database
    3. Get Update status from database and required tables

    You will require to add project reference of win application (if these process methods are not written in a separate class libraries) to Unit Test project.

    hope that helps./.

    Friday, February 3, 2017 12:15 PM