Go through these materials: Basic Workflow
The last section deals with rendering. Without knowing anything about your composition or render settings we have no idea what is going on with your project. If your comp is added to the render cue, and you have set rendering to use the entire composition instead of just the work area, then you will get the entire comp. If you use the Adobe Media Encoder, you will get the entire composition unless you set a custom time span.