How to Test Multi-Tenant with Multi-Domain Support

HI, we are creating an application with several tenants that will support that each tenant can have a unique top-level domain, the application is created using asp.net 3.5 and SQL servr 2005, while each tenant will have a different database,

I saw a number of questions about similar applications in StackOverFlow, but none of them are related to testing, I want to know how you can test an application in a development environment, especially

  • How can we verify that each client connects to its own database based on the URL.
  • how can we emulate different areas in the local system. like abc.com and xyz.com, everything goes to IIS dev machine.

Any recommendations that may help us in the process of developing such an application.

+3
source share
1 answer

1. How can we verify that each client connects to its own URL-based database.

I assume that as soon as the client connects, your application reads the database to get the data used to render the page. In this case, you just need to put some unique data in each customer database, and then check if the correct data is displayed, preferably using an automation tool.

  1. how can we emulate different areas in the local system. like abc.com and xyz.com, everything goes to IIS dev machine.

[ Windows]\System32\drivers\etc\hosts , , , dev IIS . , dev IIS 192.168.0.44, - iisdev, :

192.168.0.44     iisdev.abc.com
192.168.0.44     iisdev.xyz.com

.

+2

Source: https://habr.com/ru/post/1739147/


All Articles