Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Including self writen command to the formatter

View previous topic View next topic Go down

Including self writen command to the formatter

Post by Thomas0286 on Wed Sep 11, 2013 8:19 pm

Hi,

i have writen a command for Selenium IDE as user extension. Now i like to include it to the Java Formatter. When doing this it says "unknown command" after converting. How can i correcly include my code to the formatter?

Thx in advance,

Thomas

Thomas0286

Posts : 4
Join date : 2013-09-11
Location : Dresden, Germany

Back to top Go down

Re: Including self writen command to the formatter

Post by ccox on Tue Sep 17, 2013 2:38 am

Why not just write the command in Java?

ccox
Master
Master

Posts : 205
Join date : 2012-01-06
Age : 31
Location : Denver, CO

Back to top Go down

Re: Including self writen command to the formatter

Post by Thomas0286 on Wed Sep 18, 2013 12:35 am

How do you mean that?
My Problem is that i need the SeleniumIDE Command. The Selenium IDE Test Case will be converted to selenium Webdriver (java) format later.

Thomas0286

Posts : 4
Join date : 2013-09-11
Location : Dresden, Germany

Back to top Go down

Re: Including self writen command to the formatter

Post by ccox on Wed Sep 18, 2013 12:59 am

If you are already converting the scripts to Java, write the command in Java when you convert them over. It doesn't make sense to have the formatter magically convert js to Java. Plus you would have to write the command in Java for the formatter to work anyway(if it's even available for you to add commands to the formatter).

ccox
Master
Master

Posts : 205
Join date : 2012-01-06
Age : 31
Location : Denver, CO

Back to top Go down

Re: Including self writen command to the formatter

Post by Thomas0286 on Wed Sep 18, 2013 2:00 am

I don't get it...

how can i do this?

I need some aditional commands for seleniumIDE. E.g. i have a command to write in a TinyMCE Window(i know this is possible by adding the RunScript command, but it should be as easy to use as possible). I Record the Testcase with SeleniumIDE, then i chose where the command has to be included. Then i like to export it.

Can u tell me the steps i have to take?

Thx in advance,

Thomas

Thomas0286

Posts : 4
Join date : 2013-09-11
Location : Dresden, Germany

Back to top Go down

Re: Including self writen command to the formatter

Post by ccox on Wed Sep 18, 2013 2:11 am

Steps:
1) Stop thinking about the IDE formatter and do it manually
2) Write your command in Java
3) When you export your IDE scripts to Java, replace the line where it says unsupported command with your Java command.

ccox
Master
Master

Posts : 205
Join date : 2012-01-06
Age : 31
Location : Denver, CO

Back to top Go down

Re: Including self writen command to the formatter

Post by Thomas0286 on Wed Sep 18, 2013 2:18 am

Can i perform step 3 automaticly?
The problem is that it would be great if i could handle this converting thing with the formatter.
It would be a solution for my diploma thesis. The Task is that users with low to very low programming skills also can create good Testcases which can also handle dynamic webpages. I have writen a lot of aditional commands for the IDE and they work good. But now i have the problem to create a Java file from them. It is no good solution to open these files again and edit them. Do u have any idea to solve that?

Thomas0286

Posts : 4
Join date : 2013-09-11
Location : Dresden, Germany

Back to top Go down

Re: Including self writen command to the formatter

Post by ccox on Wed Sep 18, 2013 2:50 am

Unfortunately I think the only way to do this would be to write your own formatter add-in for IDE.  

One possible solution is running these on Selenium RC from the command prompt.  You wouldn't need to export the test cases at all and could run them against other browsers.  

Should these users have any Java development experience? Are the commands too complex for them to create? 

Another suggestion would be to add the code in the form of comments to Selenium IDE.  When they export it, I think the comments will export as well. Then they can just uncomment the code.  I know it's a manual workaround, but it could work for beginners

ccox
Master
Master

Posts : 205
Join date : 2012-01-06
Age : 31
Location : Denver, CO

Back to top Go down

Re: Including self writen command to the formatter

Post by Sponsored content Today at 3:47 pm


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum