Hi @arlecchino
If you are using @quasar test, you probaly have an index.js with

import QMediaPlayer from 'QMediaPlayer' localVue.component(QMediaPlayer, { QMediaPlayer})

You can globally import QMediaPlayer there.
For performance things, its better import locally on every test, but globally shold work too.