Based on your familiarity with a programming language, it depends on how long you may take to learn this. If you are new to the programming world, you may take around two to three months to learn software testing while if you are aware of the fundamentals of programming, you may learn it in a month based on the number of hours you devote to learn this.