How to upload a file on testproject when you're using a record?

How to upload a file on testproject when you’re using a record ?