The aim of this study was to evaluate the behavior of two types of resin cements, conventional dual and dual self adhesive, through in vitro and in situ experiments. For the in vitro assay were selected two resin cements that were handled and dispensed over a mylar strip supported by a glass plate. The Bragg grating sensors were positioned and another portion of cement. was placed, covered by another mylar strip. For the in situ experiment 16 single-rooted teeth were selected who were divided into 2 groups: group 1 - conventional dual resin cement Relyx ARC and group 2 - dual self adhesive resin cement Relyx U200 (3M/ESPE). The teeth were treated and prepared to receive the intracanal posts. Two Bragg grating sensors were recorded and introduced into the root canal at different apical and coronal positions. The results showed that the in vitro experiment presented similar values of polymerization shrinkage that the in situ experiment made in cervical position; whereas Relyx ARC resulted lower values compared to Relyx U200; and cervical position showed higher shrinkage than the apical.