microsoft / EasyRepro

Automated UI testing API for Dynamics 365
MIT License
522 stars 289 forks source link

[BUG] Customer Lookup set value not resolved #677

Open pascalkruettli opened 4 years ago

pascalkruettli commented 4 years ago

EasyRepro Version Microsoft Dynamics 365 Online Version 9.1 Serverversion: 9.1.0000.10329 Clientversion: 1.3.2472-191112-195614

Easy Repro Library used is the version currently on Develop Branch

UCI or Classic Web

Online or On Premise

Browser

Describe the bug
We are testing our sales/quote process automaticaly and implemented several testcases. On the 18.11.209 we noticed several of our tests fail now. The last successful execution was on 13.11.2019. We noticed the cause for the failing tests is that the "customerid" field on the Quote is no longer set correctly. Other lookups still work fine. Unbenannt

-> Feature affected is "Entities (Create, Update, Delete, Duplicate Detection, Assign)"

Special formatting / display
No Special formatting. It is a lookup of type customer (so it can contain accounts or contact)

Code to reproduce
`csharp

xrmApp.OnlineLogin.Login(_xrmUri, _username, _password); //we jump directly to quotes by using the accoring url //eg. /main.aspx?app=d365default&pagetype=entitylist&etn=quote _xrmApp.CommandBar.ClickCommand("Neu");

_xrmApp.Entity.SetValue(new LookupItem() { Name = OrderFieldHelper.PotentiellerKunde, Value = customerValue, Index = 0 }); //_xrmApp.Entity.SetValue(new LookupItem() { Name = OrderFieldHelper.PotentiellerKunde, Value = customerValue }, 0); does the same


 -->

**Expected behavior**  
Problem: Entered text is matched but entry is not selected. Search suggestions are displayed and do not disappear even if other commands are sent (like SetValue on a other LookUp).

Expected: Entry with index 0 is selected
Jinfengv commented 4 years ago

I've had the same problem before, you can try the following code

_xrmApp.Entity.SetValue(new LookupItem() { Name = “OrderFieldHelper.PotentiellerKunde”, Value = “3H44 AG” });

pascalkruettli commented 4 years ago

I've had the same problem before, you can try the following code _xrmApp.Entity.SetValue(new LookupItem() { Name = “OrderFieldHelper.PotentiellerKunde”, Value = “3H44 AG” });

Hey Jinfengv I am afraid the suggested solutions does not fix the issue. No matter if I set the index or not it does not work.

vcinampudi commented 4 years ago

try give Schema Name instead of the value mentioned