This depends on the type of strawberry plant you have, but most will generally produce fruit three times during the warmer months. This will be once during the spring or early summer, one in midsummer, and one in later summer or even early fall.
Other factors will also include where in the world you are located as your local weather conditions will affect fruit produce. There are also always flukes when it comes to growing fruit, so always be prepared for your plant to fruit more than three times or even less.
Strawberry plants are pretty predictable and easy to care for, so as long as you care for your plant properly, you should be confident that your strawberry plant will bear fruit. Strawberry plants generally get stronger as the years go on, so each summer they will produce even more fruit. That is until, as mentioned above, strawberry plants will eventually die after around six years, so they will, of course, stop producing fruit after this.