Site Loader
Auckland, New Zealand
In the last post of Step argument transformation, we discussed how to deal with arbitrary .Net types types using StepArgumentTranformation of specflow, in this post we will deal with dynamic table conversion of Specflow using Specflow.Assist.Dynamic package. For more information on how to work with tables and dynamic tables of Specflow.Assist.Dynamic, please refer the two articles below Here is the complete video of the above discussion. Here is the code snippet from the above video
        [Then(@"I see the menus like")]
        public void ThenISeeTheMenusLike(IEnumerable menuList)
        {
            var menu = menuList.First();

            string menu1 = menu.Menu_1;
            string menu2 = menu.Menu_2;

            Console.WriteLine("The value of Menu1 is {0} and " +
                              "Menu2 is {1}", menu1, menu2);
        }

Thanks for reading the post and watching the video !!! Please leave your comments and let me know if there is anything I should update in this post. Thanks, Karthik KK

Post Author: Karthik kk

Leave a Reply

Your email address will not be published. Required fields are marked *