I am trying to use js split in one of my tests. I need to store a url and save the last part of the url in a log file. I have stored the url successfully but I can't get the slit to work. So far I have the following:
<tr>
<td>store</td>
<td>"http://www.exampleUrl.com/xxxxxxxxxxxxxxxxxx/-|845290"</td>
<td>a</td>
</tr>
<tr>
<td>echo</td>
<td>${a}</td>
<td></td>
</tr>
<tr>
<td>storeEval</td>
<td>var pathArray = location.pathname.split( '-|' ); var a= pathArray[1];</td>
<td>new</td>
</tr>
<tr>
<td>echo</td>
<td>${new}</td>
<td></td>
</tr>
But when ever I run it I am getting an echo = null.