TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: I am QA, How do I learn to code?

9 pointsby ankitgarg43about 10 years ago
I have been working as a QA for a while now and never had to write much code. Now our QA department is moving towards automating Test. I have to contribute but I don't know the best way to proceed on how to learn to code. Please help me.

5 comments

penguinlinuxabout 10 years ago
Obey The Testing Goat!. Get yourself the book Test-Driven Development with Python. It will turn you into a an automated testing wizard. it is a great book and you will learn in no time how to run your automated tests. Then learn Docker and be amazed on how you can use Docker + Jenkins to do automated testing. You will be a God among the QA team and the devs will have lots of respect for you.
评论 #9497766 未加载
mundoabout 10 years ago
Speaking as someone who was once in your shoes, by far the fastest way to learn to write automated test cases is to learn from existing ones. Suppose someone more senior than you has written a test that does this:<p>- Set up the framework and connect to the app under test - enter &quot;fred&quot; in the username field - enter &quot;derf&quot; in the password field - click the Submit button - verify that the login is successful<p>Then if you copy-paste that test and spend some time experimenting with it, you can probably turn it into a test that enters an incorrect password and verifies that it is unsuccessful without really doing any actual &quot;coding&quot;. That&#x27;s the best way to contribute while you come up to speed - the more cases you write, the more comfortable you will get with the language and with the framework.<p>If you don&#x27;t have someone senior to copy off of, you can still do it, it&#x27;ll just go slower. &quot;How do I get selenium to click a button&quot; plus an afternoon will get you well underway. Steer clear of any &quot;programming fundamentals&quot; - you don&#x27;t need to understand classes and interfaces and the difference between &quot;final&quot; and &quot;static&quot; yet, you just need enough basic syntax to get some simple tests built so you can experiment with them.<p>Good luck!
trcollinsonabout 10 years ago
The way I learned was through books and BBS&#x27;s but that may not be as applicable anymore. What type of environment do you work on? Languages, frameworks, and tools?<p>I would suggest if you have the option that you pair with one of the programmers at your company. One of the best ways to learn is to jump right in and do it with someone more senior than you are. If they are willing to take a few minutes or hours a day to allow you to really pair with them, you&#x27;ll learn quickly!
mercnetabout 10 years ago
I recommend going through this python tutorial: <a href="http:&#x2F;&#x2F;automatetheboringstuff.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;automatetheboringstuff.com&#x2F;</a>
anon3_about 10 years ago
A QA is a squire. Squires become knights.<p>You get to see the code and architectural decisions your engineers make when you move into automated testing. In many cases, you&#x27;re in a position to be paid to learn.<p>What programming language &#x2F; framework is the code in?