Testing - Best Practices
Recommended program development process with SaaSquatch to minimize technical errors and installation deficiencies.
🔗 Test vs Live
Each SaaSquatch Program has two modes: Live and Test. These modes (tenants) both play an important role in the lifecycle of your program. The functionality of your Live and Test tenants are designed to be very similar so that there are as few changes as possible when transitioning from your Test to Live tenant.
The intended use of each of your tenants can be summarized as follows:
Test | Live |
---|---|
|
|
🔗 Example Development Process
The following flow chart provides an example of what a development process could look like when integrating your Growth Automation programs into your product:
🔗 Example Development Process Explanation
Development Stage | Description |
---|---|
1. Design | Planning a software solution (to launch a Growth Automation program). |
2. Development | Creation of the software solution intended to lauch a Growth Automation program. |
3. Unit (Local) Testing | Testing that each of the components of the Growth Automation program functions as intended. |
4. Deploy to Staying Environment | Once the program has passed initial testing it can be deployed to the staging environment. |
5. Integration (Staging) Testing | Testing how the program works in conjunction with the rest of your platform. |
6. Quality Assurance | Ensuring the all the goals of the project (to launch a program) have been completed to a satisfactory level, and that the solution works as expected. |
7. Live Tenant Configuration | With the mechanics of your Growth Automation program confirmed to be working using your Test tenant you can begin the process of deploying your program to your production environment.
As part of the transition from your Test âž¡ Live tenant a number of pieces need to be swapped over to point to your Live tenant. The following items should be changed and checked before your program is fully configured on your Live tenant:
|
8. Live Program | Your Live Program is now ready to be deployed from your Staging âž¡ Production environment.
It is recommended to run through at least one final full test of the full loop before publicizing your program. Please note: This test loop on your Live tenant, like all data on your Live tenant, cannot be deleted. |
9. Optimization | Launching your Growth Automation program is only the first step in running a successful program. As you begin to generate traffic you can begin to optimize your program to make it even more successful. |
🔗 Portal
Your program Portal provides access to the configuration settings for both your Test and Live tenants.
Details about functionality in the portal can be found in our Navigating the SaaSquatch Portal article.
🔗 Debugging
Your SaaSquatch program makes dubugging on your Test tenant easier by exposing additional logging.
Our Squatch.js Library provides the following debugging tools to help you work out issues as you impliment your referral program:
Error codes displayed in the widget help to identify any problem as when displaying the widget.
Additionally, status updates and error messages are displayed on the console to help troubleshoot as you call squatch.js methods:
🔗 Test Data
Only your Test tenant provides the ability to delete test data.
Data that WILL be deleted:
- Users, accounts, and referrals
- Analytics events
The following data WILL NOT be deleted:
- Any data stored in external payment systems (e.g. Stripe/Recurly)
- Your SaaSquatch Account (including accounts of your other team members
- Your theme and widget customizations
- Your program settings, like reward settings, and API keys
To access this functionality:
- Select Settings under the Setup menu in the Sidebar
- Click Delete Test Data
- Toggle the 'I would like to delete my test data' toggle from "No" to "Yes"
- Click Delete.
Please note: Data on the Live tenant cannot be deleted.
🔗 Additional Resources
If you would like to dive deeper into the world of Growth Automation Programs and our accompanying platform, we recommend checking out the following articles:
- Learn more about the structure of our Growth Automation Platform in our Growth Automation 101 article.
- Explore all of our Growth Automation Programs availble on the SaaSquatch Platform in our Growth Automation Program Library article.
- Our Growth Automation Program Mechanisms provides details, examples and further detail on how to integrate the SaaSquatch platform in your product.