When I traveled last weekend, I completed the testing portal before my last flight. I don't know how long the generated QR code is valid. When I went thru the testing center I did hear some people having trouble scanning the QR code and the gentlemen scanning the codes indicated the codes were too old.