on 02-25-2015 8:30 AM
Hello.
I would like to ask you if it is possible to somehow decompose URL with CBTA to read parameter which is added in process of testing.
For example:
Order number is available in page body, so it would be possible to write custom script to decompose order ID from it. But it is also possible to find order ID in URL because in process of ordering items from shop final ID of order is added at the end of URL.
Do you have any ideas how to solve this problem?
Thank you very much.
Is the order also displayed on the page too, e.g. in the message area ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can try the approach described in the following document:
http://service.sap.com/~sapidb/011000358700000194852014E.PDF
If this does not work you can use the default components CBTA_Web_GetProperty to capture the string containing the order ID and use the approach described in my previous blog on how to extract single values from a string:
Let me know if this works for you.
Regards Reiner
Hi.
I tried your advice described in blog. I think it could be the solution to my problem but I noticed that everytime I ran CBTA script URI for HTML tag with order ID is different. this is really another problem because if I use object spy to determine exact location of HTML tag, the final given URI contains also text value which is unfortunately different and CBTA script ends up in error.
Do you have any suggestion or idea about this problem? is there any "wild character" I can use, e.g. "*" or "%"?
for info here is the URI:
tag=H1; innerText=Objednávka č. 89774127; !parentId=content; parentTag=DIV
thank you
Hi Jan,
you might be able to help yourself using the following material:
https://service.sap.com/~sapidb/011000358700000069212014E.ZIP
in document 'CBTA 3.0 SP2 - Test Automation Challenges. pdf' starting at page 41.
So this might work:
.... innerText~=Objednávka$;
Regards Reiner
Hi Reiner.
Thank you very much for your materials. It helps me a lot.
I tried to use regular expresions as is described in materials and your blog and it works perfectly.
Thank you.
Now I figured yout that there are some limitations to this aproach. Unfortunately regular expresions cannot be used with html tag ID or NAME.
Thank you again for your help.
Regards Jan.
HI Reiner
I not sure if you have seen my posting I have a couple other questions on CBTA you maybe to help me with...or send me links to the right materials
Via CBTA how can we test a file upload scenario e.g. for Bulk uploads requirements especially around HR?
When testing the Universal Worklist, how can we get CBTA to pick up a specific workitem in the UWL?
Really appreciate any help you can give
Cheers
Peter
Hi Peter,
sorry for delay. I'm busy with many customer requests and did not have a quick answer to your questions.
For question one you most likely need to use custom functions as described in chapter 13 of the How-to Guide. You can try to use an existing pattern that might need to be adjusted:
For 2nd question please check this document
http://service.sap.com/~sapidb/011000358700000194882014E.PDF
Best Regards
Reiner
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.