This question already has an answer here:
I have applied to two places, and I have gotten through interview sessions for both. The first company approved and gave me a technical test which I have already finished. The second company approved, but they delayed giving me the technical test. Just today they gave me the technical test, but I am already close to accepting the other job offer because they have a better offer for me in all cases.
How should I approach the second job company saying that I don't mind doing the technical test, but I already have another offer?