microsoft / EasyRepro

Automated UI testing API for Dynamics 365
MIT License
513 stars 286 forks source link

[BUG] <Save Validation doesn't work> #1247

Closed plolon closed 2 years ago

plolon commented 2 years ago

Bug Report

Issues should only be created for items related to covered functionality.

Not covered functionality, feature requests, and questions should use the Feature Request or Question templates.

EasyRepro Version

UCI or Classic Web

Online or On Premise

Browser

Describe the bug

When I'm using xrm.Entity.Save() it doesn't matter if entity is successfully saved because test always get green passed. Even if required field is empty. Should I add assertion by myself?

Code to reproduce

                    xrmApp.OnlineLogin.Login(_xrmUri, _username, _password, _mfaSecretKey);

                    xrmApp.Navigation.OpenApp(UCIAppName.Sales);

                    xrmApp.Navigation.OpenSubArea("Sprzedaż", "Kontakty");

                    xrmApp.CommandBar.ClickCommand("Nowy");

                    xrmApp.ThinkTime(5000);
                    //xrmApp.Entity.SetValue("firstname", contact.FirstName);
                    xrmApp.Entity.SetValue("lastname", contact.LastName);
                    xrmApp.Entity.SetValue("emailaddress1", contact.Email);
                    xrmApp.Entity.Save();

Thanks in advance.

plolon commented 2 years ago

Nevermind, I created post save assertion by myself.