javascript - Testing the Web API by comparing the response with that of WCF -


i have owin hosted web api servicing odata v4 endpoint integrated windows authentication. solution has tested wcf odata v1,v2,v3 endpoints. 60% of endpoints give same results of wcf on changing url /v3 /v4. since wcf endpoints already tested, thought of comparing endpoint's response of wcf.

is right way go?

on server side have used specifying auth scheme:

listener.authenticationschemes = authenticationschemes.integratedwindowsauthentication; 

i'm thinking of using javascript purpose

  • login chrome , capture token.
  • paste token in js file.
  • attach authorization: negotiate token header every request.
  • query both /v3 , /v4 , obtain response in either json or xml , compare.

will same token valid in js?


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -