If appropriate, revisit the scene and refresh your memory of the relative locations and sizes of streets, buildings, signs, street lights, trees and shrubs, obstructions to observation, and other peculiar features. If there are items of physical evidence in your evidence locker that your testimony will discuss, reexamine them. Be sure you know how to identify them. For example, if you wrote your initials and the date or case number on an item, check to see where that was done so you'll be able to point it out in court.
Once you get to court, the judge will likely instruct you not to discuss your testimony with other witnesses. However, there is nothing wrong with talking to fellow officers or others before going to court. If there are details about an incident that you've forgotten, it is not improper to discuss the case with another officer who was there, if that helps to refresh your recollection. (If you're later asked about this on the stand, simply say that you did so in order to recall a detail or to confirm your memory.)
Be prompt. Never keep the judge and jury waiting for you. If you're unavoidably delayed, call the court and advise someone (such as the court clerk, prosecutor, or bailiff) why you're going to be late and when you expect to arrive. If you later find that you won't be able to keep your estimated arrival time, make another call. When you get to court, notify the bailiff or prosecutor and see whether you should remain in the courtroom or wait outside.
Any time you're in common areas, such as parking lots, hallways, elevators, and cafeterias, be courteous but do not discuss the case with or around anyone. Other people you see could be jurors, judges, witnesses, defense attorneys, or defense investigators. You could cause a mistrial or other difficulties with careless discussions in the presence of people connected to the case.
When you are called into the courtroom, someone will tell you where to sit or stand to take the oath. If you are asked to state your name, do so in a clear, firm voice. When sitting in the witness box, you may nod a greeting toward the jury, and then face the attorney who called you and wait for the first question.