In reading John's commentary, we find that he discusses 8 purposes for trials in the believer's life. I have added my comments, too.
1. TRIALS TEST THE STRENGTH OF OUR FAITH...in our weakness we resent the trials and become bitter and resentful. Our faith becomes stronger as we turn to Him when the trails get stronger and we trust Him to help us carry the burdens. Trials are obviously difficult and it is common to all of us to resent the trials. Yet, He wants us to have a heart of thankfulness in ALL things, yes, even when we lose our job, or a loved one or when we can't sleep at night or when we are challenged with new computer systems at work ( :-) ), or whatever our particular trial is today.
2. TRIALS HUMBLE US...the more we have been blessed with , the more we are tempted to take pride in these blessings and not acknowledge the true source.
3. TRIALS CAUSE US TO DEPEND on God and not on worldly possessions, i.e., our work status, education, social position, etc.
4. TRIALS GIVE HOPE as we look forward to Heaven and our time with the Lord.
5. TRIALS REVEAL OUR TRUE LOVE. God is to be loved above all else, including family.
6. TRIALS TEACH US TO VALUE GOD'S BLESSINGS. His blessings are abundant and to be valued above anything else. He has given us His Word, His provisions and don't forget His salvation.
7. TRIALS PRODUCE STRENGTH FOR FURTHER USEFULNESS. Our main reason for even existing is to give Him glory. We need trials to mature us in order to glorify Him.
8. TRIALS PREPARE US TO BETTER HELP OTHERS. How true this is. We need to have experienced God's training in order to help someone else through the process of trusting God.
This has been a very helpful question for me to ponder. Trials WILL come, no doubt! It is important for us be thankful and yield our will to Him. Now that I have learned this, you can remind me when I start to mumble and grumble.!!!