c# - Is it possible to pass parameters between web performance tests in visual studio 2013? -
lets assume have 2 web performance tests , b described below:
- testa: login page a.com
- testb: call testa, , more stuff. further assume page needs tested against site a.com , b.com (the credentials a.com , b.com same).
is possible pass url parameter (which might either a.com or b.com) testb testa? in such way testa instead of loading page a.com, loads page b.com. want flexible, , able pass url parameter over. having said that, should still able execute testa standalone (going a.com). a.com should default value, , if required, should possible overwritten.
if possible, need do?
thx
if 1 test calls via "insert call web test" command in web test editor, context of calling test made available called test. data can passed caller called. (i not sure whether called test can pass values caller via context. have check , update answer in future.)
if web tests called load test method available. 1 of context parameters of web test called load test load test context. in web test value of context parameter can cast load test context. values can written context 1 test , read out in another.
Comments
Post a Comment