We define and study the domain of definition for the complex Monge-Ampere operator. This domain is the most general if we require the operator to be continuous under decreasing limits. The domain is given in terms of approximation by certain "test"-plurisubharmonic functions. We prove estimates, study of decomposition theorem for positive measures and solve a Dirichlet problem.