In this presentation we intend to focus on the exchange of experience between nonlinear optics (optical pulse and beam propagation in nonlinear media) and atom optics (dynamics of coherent waves generated from Bose-Einstein condensates). A common ground here is the nonlinear Schrödinger equation, which with the proper substitution of variables describes both types of phenomena. In nonlinear optics it is a light propagation equation that relates the signal at the end of the nonlinear crystal to the signal at the input face of the medium. In Bose-Einstein condensate dynamics it is the called the Gross-Pitaevskii equation. We will discuss various types of phenomena which have realisations both in the nonlinear optics and atom optics. We will concentrate our consideration on soliton formation, which is a challenge to fundamental and applied research in these two domains of physics.