My wife has a chronic weight problem. Even when she diets a lot, she can barely maintain. What tests can we take to understand the situation?

Labs . Rule out thyroid disorder, pcos, cushings are some that may be helpful. Otherwise lifestyle modifications including portion control and exercise can help.