When you run your application in OnlineGDB, at the bottom you can specify the command line arguments and can switch between Interactive Console and Text for standard input.
Select Text, and copy your test content there.
Assuming you'll need to read your test data from the standard input...
If not, read it from a file and put your test data in a file.
If you share some code, more specific help could be provided. :)