Is the word "trial" used in the same way in the following two sentences?

Candidates must compete in a trial of skill.

The trials for the semifinals began yesterday.
different meanings