I am using Web tester to test my web application.
I have a page on which asychronous call is made when user click on button using XXMLHttp object and data is retrieved and dispalyed in table.
Can anyone please tell me how to write testcases xml for such situation because entire page is not getting refreshed only table is refreshed with new data retrieved from server.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You might not be able to use the proxy to create a test case for this situation, but you should be able to manually create a test case.
Although you are using the XMLHttp object, it is making an HTTP call to a webserver, and receiving some data as a response. Your test case simply needs to call the necessary URL, pass the required data, and check the response for regular expressions that indicate the response was correct.
Webtester cannot emulate javascript, but it is designed to emulate HTTP calls that a browser would make. So, if you can identify the URLs, data, and expected response for your XMLHttp calls test cases you create should still be valid.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
First of all, I apologize for taking so long to respond.
Webtester cannot execute JavaScript. It does not simulate all the functionality of a web browser, it generates HTTP requests and examines the responses. Furthermore, it does not have the ability to parse and verify JavaScript.
If clicking the image generates an HTTP request, then you should be able to test that request using webtester. A plug in for Firefox called "Live HTTP Headers" is very useful for determining what HTTP requests are being sent/received between your browser and the web server.
If this information does not help you please let me know and I will see if I can provide anything more useful for you.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I can't log into my websitetester site. Ever since you went live I've had these problems. It tells me my password is incorrect for the account. When I change my password, it says it was a success than again, doesn't except it. Can someone
"PLEASE" help me???
Sandra Silvestri
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If you need help with webtester, feel free to post to this forum. I am monitoring it and will respond as quickly as possible.
Hi,
I am using Web tester to test my web application.
I have a page on which asychronous call is made when user click on button using XXMLHttp object and data is retrieved and dispalyed in table.
Can anyone please tell me how to write testcases xml for such situation because entire page is not getting refreshed only table is refreshed with new data retrieved from server.
You might not be able to use the proxy to create a test case for this situation, but you should be able to manually create a test case.
Although you are using the XMLHttp object, it is making an HTTP call to a webserver, and receiving some data as a response. Your test case simply needs to call the necessary URL, pass the required data, and check the response for regular expressions that indicate the response was correct.
Webtester cannot emulate javascript, but it is designed to emulate HTTP calls that a browser would make. So, if you can identify the URLs, data, and expected response for your XMLHttp calls test cases you create should still be valid.
Hi
I am trying to click following image with clickLinkWithImage() -
<tr>
<td align="right">
<a href="javascript:checkselection();"><img src="/images/buttons/edit_white.gif" width="70" height="20" border="0" name="edit"></a>
</td>
</tr>
The checkselection is contained in an external file account_summary.js and this file is referenced in the source code as follows:
<script type="text/javascript" language="JavaScript" src="/admin/account_summary.js"></script>
Due to this external reference this java script is not being executed. Is there any way out to click this image successfully(with javascript executed), given that you can not change the webpage.
account_summary.js is given as follows (if in worst case i have to convert this javascript into some java code kindly tell me how to do that )--
function checkselection() {
41 var tests = "";
42 if (readOnly) {
43 clickedNodes = getClickedNodes();
44 if (clickedNodes.length == 0) return;
45 else {
46 tests = clickedNodes[0].id;
47 }
48 if (tests == "") {
49 showWindowerror("/admin/warningeditwindoid.asp?warningtype=review");
50 return false;
51 }
52
53 if (document.theForm.mType.value.toUpperCase() != "DC") {
54 if (tests.toUpperCase().indexOf("MBG") != -1)
55 document.theForm.action = "/admin/reviewBatchOrder.asp";
56 else
57 document.theForm.action = "/admin/reviewTest.asp";
58 }
59
60 document.theForm.tests.value = tests;
61 document.theForm.submit();
62
63 } else {
64 if (document.theForm.list2.length == 0) {
65 if (readOnly) {
66 showWindowerror("/admin/warningeditwindoid.asp?warningtype=review");
67 } else {
68 showWindowerror("/admin/warningeditwindoid.asp?warningtype=noselect");
69 }
70 } else {
71 for(var i=0; i<document.theForm.list2.options.length; i++) { //select all tests
72 document.theForm.list2.options[i].selected = true;
73 if (i > 0) tests += ",";
74 tests += document.theForm.list2.options[i].value;
75 }
76 if (monitorCnt > 0) {
77 document.theForm.tType.value = "MONITOR";
78 if (document.theForm.mType.value.toUpperCase() == "DC")
79 document.theForm.action = "/admin/multi_edit_singleURL.asp";
80 else
81 document.theForm.action = "/admin/multi_edit_LastMile.asp";
82 }
83 else if (grpCnt == 1)
84 //document.theForm.action = "/admin/edit_summary.asp";
85 document.theForm.action = "/admin/editFolder.asp";
86 else if (mbgCnt == 1)
87 document.theForm.action = "/admin/batchOrder.asp?vType=E";
88 else {
89 document.theForm.tType.value = "TRANSACTION";
90 if (document.theForm.mType.value.toUpperCase() == "DC")
91 document.theForm.action = "/admin/multi_edit_transaction.asp";
92 else
93 document.theForm.action = "/admin/multi_edit_LastMile.asp";
94 }
95
96 document.theForm.tests.value = tests;
First of all, I apologize for taking so long to respond.
Webtester cannot execute JavaScript. It does not simulate all the functionality of a web browser, it generates HTTP requests and examines the responses. Furthermore, it does not have the ability to parse and verify JavaScript.
If clicking the image generates an HTTP request, then you should be able to test that request using webtester. A plug in for Firefox called "Live HTTP Headers" is very useful for determining what HTTP requests are being sent/received between your browser and the web server.
If this information does not help you please let me know and I will see if I can provide anything more useful for you.
I can't log into my websitetester site. Ever since you went live I've had these problems. It tells me my password is incorrect for the account. When I change my password, it says it was a success than again, doesn't except it. Can someone
"PLEASE" help me???
Sandra Silvestri