I am so glad you got it running.
Did this "no-start" come down to a $3.00 part?
The chance of getting a defective, brand new, cap & rotor is very low, but obviously can happen.
This is a good lesson in what can be wrong and not easily detected.
Factory OEM parts are usually an excellent choice.
When I can't easily get a Toyota cap & rotor, my choice has always been Echlin.
Gnarls.