Soft cellular systems, such as foams or biological tissues, exhibit highly complex rheological properties, even in the quasistatic regime, that numerical modeling can help to apprehend. We present a numerical implementation of quasistatic strain within the widely used cellular Potts model (CPM). The accuracy of the method is tested by simulating the quasistatic strain of two-dimensional dry foams, both ordered and disordered. The implementation of quasistatic strain in CPM allows the investigation of sophisticated interplays between stress-strain relationship and structural changes that take place in cellular systems.