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?
IF POST USEFUL THAN MARK AS ANSWER
mit's Website Mitesh N Vaishnav
In your Unit Test project, you can perform same steps and check validity of output after each steps:
Call the process that creates request for process (win app 1) that stores in Db
Call the process/method that update the database by picking up request from database
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./.
नमस्ते,
[KaushaL] BlogTwitter [MS MVP 2008 & 2009] [MCC 2011] [MVP Reconnect 2017]
Don't forget to click "Mark as Answer" on the post that helped you
Member
655 Points
914 Posts
Manage Unit Test with Complex Architechture
Feb 03, 2017 11:40 AM|Jack Hunt|LINK
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?
mit's Website
Mitesh N Vaishnav
All-Star
31362 Points
7055 Posts
Re: Manage Unit Test with Complex Architechture
Feb 03, 2017 12:15 PM|kaushalparik27|LINK
In your Unit Test project, you can perform same steps and check validity of output after each steps:
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./.
[KaushaL] Blog Twitter [MS MVP 2008 & 2009] [MCC 2011] [MVP Reconnect 2017]
Don't forget to click "Mark as Answer" on the post that helped you