Adding files to Perforce for tracking is a two step process.
First, the file must be added to a changelist to be submitted to the server. A changelist is the list of files that you will check into the depot as a unit. In the case of programming, it is the list of source files and dependencies that must be checked in at the same time for the code to compile properly.
Right-click on your test file and select Mark for Add. When prompted to select the changelist, leave it at default and click OK.

