<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
<div class="moz-cite-prefix">On 9/25/15 3:26 PM, Tom Zeller wrote:<br>
</div>
<blockquote
cite="mid:64E8C2AB-8F08-4756-AF66-1FFC3FD0CDD4@dragonacea.biz"
type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">DataProvider ... I've also used it in some Selenium integration and load-testing use cases for our GU LMS, to pass in some of the same data as you are, like browser/version/OS, as well as test different users authenticated with different credentials.
</pre>
</blockquote>
<pre wrap="">
Just curious, what did you name that data ? and/or how did you orchestrate the Object[][]s returned by the DataProvider ?
</pre>
</blockquote>
<br>
This was a short notice, under-the-gun project so I didn't spend any
time thinking about elegance. I didn't create any classes/structs
to hold the data, each bit was just stuffed straight into each
Object[].<br>
<br>
Because I was loading user data from files, I did use the variant
where the @DataProvider returns an Iterator<Object[]>, rather
than an Object[][]. Like:<br>
<br>
<tt> List<Object[]> data = new ArrayList<>();</tt><tt><br>
</tt><tt> </tt><tt><br>
</tt><tt> for (UserData user : userData) {</tt><tt><br>
</tt><tt> data.add( new Object[] { browser, version,
Platform.ANY, user.getUsername(), user.getPassword() } );</tt><tt><br>
</tt><tt> }</tt><br>
<br>
and then the data provider method itself just returns
data.iterator().<br>
<br>
<br>
<blockquote
cite="mid:64E8C2AB-8F08-4756-AF66-1FFC3FD0CDD4@dragonacea.biz"
type="cite">
<pre wrap="">
I’m going with Object[ServerConfig][BrowserConfig].
For future reasons, I’m wondering if ServerConfig and BrowserConfig should extend BaseContext.</pre>
</blockquote>
<br>
I don't know what all you are, or will be, doing with this, but that
sounds pretty involved to me. Unless you have this scattered all
over lots of classes, you can always just change it later. It is
tests, after all.<br>
<blockquote
cite="mid:64E8C2AB-8F08-4756-AF66-1FFC3FD0CDD4@dragonacea.biz"
type="cite">
</blockquote>
<br>
</body>
</html>