She needs to be checked by your vet. You are describing classic urinary tract infection symptoms, but there are other concerns like bladder stones, bladder tumors, or a hormonally responsive incontinence. Psychosomatic urination is not often (if ever) seen in dogs, so you need to check out the physical possibilities.