I want to include my past work experience in my resume and am not sure about the right preposition for the sentence above.
As Kristina Lopez observes in a comment above, the proper choice of wording depends on what actually happened to the ten articles you refer to.
I wrote ten articles for ABC Magazine
means that you wrote ten articles with the idea of submitting them to ABC Magazine for publication. It does not mean that ABC Magazine actually published all ten articles, or even one of the ten; but it strongly implies that you wrote them at the behest of or with the approval of the magazine—and in the normal order of things, that wouldn't happen if the magazine were serially rejecting your submissions.
I wrote ten articles that were published in ABC Magazine [or "that ABC Magazine published"]
removes any doubt about how many of your submissions the magazine published. It doesn't indicate how many articles you submitted (the number could be larger than ten), but that issue is beside the point when when you are focusing on your number of successful submissions, rather than on your percentage of accepted submissions.
I wrote ten articles in ABC Magazine
isn't idiomatic in U.S. English, and I'm fairly sure that it isn't idiomatic in other varieties of English either. The normal prepositional forms in this situation are as follows: you wrote articles for the magazine or for publication in the magazine, and the articles were published in the magazine.