Contributions
relative path for txt Files to be loaded from in Properties Step
Ole, Can a txt file be loaded up with a relative path? This is necessary so that after we check in our scripts in a repository(all the files can be in 1 folder), anyone can check them out and without changing any paths, run the scripts. Thanks, Tanvi5.9KViews0likes4Comments2 data source - adding and deleting
Hi, I am using two datasources, where i am adding a list in one, say "1,2,3,4,5", verifies in the wsdl and then deleting a couple of items, say "1,2,3" and verifying in the wsdl those items got deleted. I created two datasources, with the following code Add Lists: def list = context.myList if (list == null) { list = ["1", "2", "3", "4", "5"] context.myList = list } if (!list.empty) { result.DeleteRList = list[0]; list.remove(0); } Delete List: def list = context.myList if (list == null) { list = ["1", "2", "3"] context.myList = list } if (!list.empty) { result.DeleteRList = list[0]; list.remove(0); } But as I run my test, I keep getting a null pointer exception in DeleteList data source. What am I doing wrong? Thanks, Tanvi17 years agoPlace ReadyAPI QuestionsReadyAPI Questions3KViews0likes1Comment