Hi, As the pain is there since a week means, it may be a utetric calculi(stone) or epididymo orchitis . Ur problem may be a most common one i. e., utetric calculi . Take Tablet Diclofenac sodium tablet one /two per day for a week, with lots of water. Usually it will subside by 1-2 weeks (if it is a small stone). But be cautious and get an ultrasound done, if it persists.
Next Steps
Just check if the pain is relieved on lifting the testis, if so it is epididymo orchitis. Then u need to take Tablet doxycycline 100mg twice per day for 3weeks. Take care.