In this paper, the condensate fraction and the critical atom number and its corresponding critical temperature of condensate ultracold boson atoms trapped in optical box traps, are investigated. The semiclassical approximation is employed in this study. The boxes traps are modeled by a general power-law potential. The deviation of the boxes traps from an ideal boxes traps are discussed.The out come results furnish useful quantitative theoretical results for thefuture BEC experiments in such traps.