3

I'm testing a web application in which all web controls are loaded dynamically using AJAX. I have a test script project in java Eclipse IDE.

Here is my problem. If, for example, I am debugging a test script for my last module, I have to go through all my dependent modules first and execute each one's script before I can debug my last module. It is a very time consuming and boring task to execute the scripts for previous modules every time.

Is there a way I can bypass my dependent module test script execution in Eclipse?

0

Your dependent code should be moved to a method in a POM that is called by any test(s) that needs it. For example, a login method in the LoginPage POM can be called by any test as a first step for an authenticated test case flow.

  • Let say my ItemFillUp page is there which can not be open unless I login to my system, But now as my case ItemFillUp page is release and under testing so I am creating script for that. In this ItemFillUp module there is one another AJEX Window. I directly wants to get my script launch this window once I open the ItemFillUp page. – Ishekh Jun 2 '17 at 4:30
  • Your Test would look something like: Login(), then NavigateTo(ItemFillUp), and then OpenAjaxWindow(); – kirbycope Jun 2 '17 at 14:36
  • Yes, it same like you said. – Ishekh Jun 3 '17 at 13:15
0

I also faced similar problem,Now what I will do is put debugger in catch block and drag it up if any case fails. Also we can use JavaScript to validate web element interactions. Something like document.getElementById("id").click() from browser console.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.