whether ATP molecules are consumed in the process of osmosis?if not then why.
No, ATP molecules are not at all involved in the process of osmosis. Because in osmosis, movement of ions occurs from high concentration to low concentration. Since this process is a energetically favorable reaction, it does not need energy.
Molecules and ions can be moved against their concentration gradient, and this process, called active transport, requires the expenditure of energy (usually from ATP).
It is possible to move substances across membranes against their concentration gradient (from areas of low concentration to areas of high concentration). Since this is an energetically unfavorable reaction, energy is needed for this movement. The source of energy is the breakdown of ATP.