# How do I calculate test error for adaboost?

I've calculated an adaboost algorithm for 20 iterations with a decision tree as my weak learner. I want to make a graph that plots the training error and the testing error. I have the training error, but how do I calculate test error? If I calculated a weighted training error, must the test error also be weighted. If so, how do I determine the weights?